:root {
  --shell-pad: clamp(10px, 2vh, 32px);
  --bg: #f5efe4;
  --surface: rgba(255, 250, 242, 0.78);
  --surface-strong: #fff8ee;
  --text: #1e2230;
  --muted: #5d6373;
  --line: rgba(30, 34, 48, 0.12);
  --accent: #c85c3a;
  --accent-dark: #9f4326;
  --accent-soft: rgba(200, 92, 58, 0.12);
  --shadow: 0 30px 80px rgba(39, 29, 21, 0.14);
}

body[data-theme="startup"] {
  --surface: rgba(244, 251, 255, 0.74);
  --surface-strong: rgba(239, 247, 255, 0.92);
  --text: #112033;
  --muted: #3b526f;
  --line: rgba(12, 38, 77, 0.15);
  --accent: #0f7bf5;
  --accent-dark: #0a5ac7;
  --accent-soft: rgba(15, 123, 245, 0.16);
  --shadow: 0 34px 90px rgba(11, 42, 88, 0.22);
}

body[data-theme="corporate"] {
  --surface: rgba(247, 250, 252, 0.88);
  --surface-strong: #f5f9fc;
  --text: #172234;
  --muted: #46566c;
  --line: rgba(23, 34, 52, 0.12);
  --accent: #1f6f7a;
  --accent-dark: #15525a;
  --accent-soft: rgba(31, 111, 122, 0.14);
  --shadow: 0 28px 72px rgba(26, 44, 66, 0.16);
}

body[data-theme="dark"] {
  --surface: rgba(19, 23, 33, 0.88);
  --surface-strong: rgba(16, 20, 30, 0.94);
  --text: #edf2ff;
  --muted: #b2bccd;
  --line: rgba(206, 219, 246, 0.14);
  --accent: #f29c4a;
  --accent-dark: #d7781f;
  --accent-soft: rgba(242, 156, 74, 0.24);
  --shadow: 0 40px 100px rgba(3, 5, 9, 0.55);
}

body[data-theme="creative"] {
  --surface: rgba(255, 245, 232, 0.78);
  --surface-strong: rgba(255, 241, 230, 0.96);
  --text: #2a1d33;
  --muted: #644c77;
  --line: rgba(55, 25, 78, 0.13);
  --accent: #d83f76;
  --accent-dark: #b5295f;
  --accent-soft: rgba(216, 63, 118, 0.16);
  --shadow: 0 32px 84px rgba(75, 21, 63, 0.21);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(243, 210, 159, 0.65), transparent 38%),
    radial-gradient(circle at bottom right, rgba(104, 162, 150, 0.22), transparent 32%),
    linear-gradient(135deg, #f8f3ea 0%, #efe5d3 48%, #e7dcc8 100%);
}

body[data-theme="startup"] {
  background:
    radial-gradient(circle at 18% 8%, rgba(112, 247, 255, 0.44), transparent 42%),
    radial-gradient(circle at 82% 92%, rgba(53, 128, 255, 0.35), transparent 40%),
    linear-gradient(140deg, #e9f7ff 0%, #d4ebff 42%, #c6e0ff 100%);
}

body[data-theme="corporate"] {
  background:
    radial-gradient(circle at 8% 12%, rgba(127, 187, 196, 0.28), transparent 46%),
    radial-gradient(circle at 90% 90%, rgba(36, 66, 112, 0.16), transparent 42%),
    linear-gradient(145deg, #edf3f8 0%, #e4edf5 45%, #dce8f1 100%);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 10% 8%, rgba(242, 156, 74, 0.18), transparent 38%),
    radial-gradient(circle at 84% 84%, rgba(120, 168, 255, 0.18), transparent 40%),
    linear-gradient(145deg, #0d111a 0%, #111624 42%, #0b101d 100%);
}

body[data-theme="creative"] {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 170, 112, 0.36), transparent 40%),
    radial-gradient(circle at 82% 88%, rgba(196, 102, 223, 0.3), transparent 40%),
    linear-gradient(135deg, #fff1d8 0%, #ffe8d2 45%, #ffd8dd 100%);
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 100svh;
  padding: var(--shell-pad);
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.75;
  pointer-events: none;
}

.ambient-left {
  width: 240px;
  height: 240px;
  top: 8%;
  left: -60px;
  background: rgba(200, 92, 58, 0.18);
  animation: drift 14s ease-in-out infinite;
}

.ambient-right {
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: 10%;
  background: rgba(44, 111, 99, 0.14);
  animation: drift 18s ease-in-out infinite reverse;
}

.card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  width: min(1120px, 100%);
  max-height: calc(100svh - (var(--shell-pad) * 2));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero,
.contact-panel {
  padding: clamp(18px, 3vh, 48px);
  overflow: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: 0.94;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 0.98;
}

.hero-copy,
.panel-copy p,
.form-note,
.form-status {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.primary-action,
.secondary-action,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.primary-action,
.submit-button {
  border: 0;
  color: #fff7f0;
  background: linear-gradient(135deg, var(--accent) 0%, #ad4b2b 100%);
  box-shadow: 0 14px 34px rgba(173, 75, 43, 0.28);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

body[data-theme="dark"] .secondary-action {
  background: rgba(24, 30, 46, 0.84);
}

.primary-action:hover,
.secondary-action:hover,
.submit-button:hover {
  transform: translateY(-2px);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 0;
}

.details-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.36);
}

body[data-theme="dark"] .details-grid div {
  background: rgba(30, 36, 52, 0.55);
}

.details-grid dt {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.details-grid dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.contact-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    var(--surface-strong);
}

.panel-copy p {
  margin: 14px 0 0;
}

.contact-form {
  display: grid;
  gap: clamp(10px, 1.2vh, 16px);
  margin-top: clamp(14px, 2vh, 30px);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: clamp(10px, 1.3vh, 14px) 16px;
  border: 1px solid rgba(30, 34, 48, 0.16);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea {
  background: rgba(20, 25, 39, 0.88);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(173, 75, 43, 0.55);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: #fffdf8;
}

body[data-theme="dark"] .contact-form input:focus,
body[data-theme="dark"] .contact-form textarea:focus {
  background: rgba(19, 25, 40, 1);
}

.contact-form textarea {
  resize: vertical;
  min-height: clamp(92px, 12vh, 140px);
}

.submit-button {
  cursor: pointer;
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.form-note,
.form-status {
  margin: 0;
  font-size: 0.94rem;
}

.form-status[data-state="success"] {
  color: #24624a;
}

.form-status[data-state="error"] {
  color: #9f4326;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.06);
  }
}

@media (max-width: 960px) {
  .page-shell {
    --shell-pad: 12px;
  }

  .card {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .hero {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .contact-panel {
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .hero,
  .contact-panel {
    padding: 28px 22px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .submit-button {
    width: 100%;
  }
}

@media (max-height: 820px) {
  .hero-copy {
    margin-top: 14px;
  }

  .hero-actions {
    margin: 18px 0;
    gap: 10px;
  }

  .details-grid {
    margin-top: 12px;
    gap: 10px;
  }

  .details-grid div {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}