:root {
  --bg: #06100c;            /* deep green-black */
  --fg: #eafdf6;
  --muted: #a8d8c8;         /* muted mint */
  --accent: #14c79e;        /* logo teal-green */
  --accent-2: #5ce6b8;      /* light mint */
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(10, 26, 21, 0.74);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  min-height: 100svh; /* fit the SMALL viewport: iOS URL bar must not push the CTA below the fold */
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Background ===== */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }

.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* Canvas fallback is hidden by default — it only appears (via JS) if the
   video genuinely fails to load. This way no graphic shows while the video
   buffers; the poster image is displayed instead. */
.bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: none; }

.bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 70% 12%, rgba(20,199,158,0.16), transparent 55%),
    radial-gradient(90% 70% at 20% 90%, rgba(92,230,184,0.16), transparent 50%),
    linear-gradient(180deg, rgba(6,16,12,0.30) 0%, rgba(6,16,12,0.48) 55%, rgba(6,16,12,0.94) 100%);
}

/* Soft dreamy glow vignette instead of a tech grid */
.bg-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 35%, rgba(92,230,184,0.07), transparent 70%);
  mix-blend-mode: screen;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px);
}
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 180px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,16,12,0.78) 0%, rgba(6,16,12,0.45) 45%, transparent 100%);
}

.brand { display: flex; align-items: center; }

.brand-logo {
  height: clamp(40px, 5.5vw, 56px);
  width: auto; display: block;
  filter:
    drop-shadow(0 2px 6px rgba(0,0,0,0.85))
    drop-shadow(0 0 14px rgba(0,0,0,0.6));
}

.header-cta {
  color: var(--fg); text-decoration: none; font-size: 0.95rem;
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .25s, background .25s;
}
.header-cta:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

/* ===== Hero ===== */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 40px clamp(20px, 6vw, 80px) 80px;
  gap: 22px;
}

.eyebrow {
  letter-spacing: 5px; font-size: 0.78rem; color: var(--muted);
  text-transform: uppercase; font-weight: 500;
}

.headline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 1.05;
  max-width: 16ch;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);
}

.accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.subhead {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  max-width: 46ch;
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

.points {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 16px 22px;
  margin-top: 12px;
}
.point {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 9px 26px 9px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(201,167,90,0.85);
  background: linear-gradient(180deg, rgba(12,28,21,0.22), rgba(6,16,12,0.12));
  box-shadow:
    inset 0 0 0 1px rgba(232,200,127,0.18),
    inset 0 1px 10px rgba(0,0,0,0.25),
    0 6px 22px rgba(0,0,0,0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.point:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(232,200,127,0.25), 0 12px 30px rgba(0,0,0,0.45);
}

.point-badge {
  position: relative; flex: none;
  width: clamp(46px, 6vw, 58px); height: clamp(46px, 6vw, 58px);
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(201,167,90,0.7);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.4), 0 0 10px rgba(201,167,90,0.12);
}
.point-badge .ic {
  width: clamp(22px, 3vw, 28px); height: clamp(22px, 3vw, 28px);
  color: #5fd38c;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

.point-copy { display: flex; flex-direction: column; text-align: left; line-height: 1.12; }
.point-copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: #f2e6c2;
  letter-spacing: .3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 0 12px rgba(0,0,0,0.4);
}
.point-copy em {
  font-style: normal;
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  font-weight: 400;
  color: #c4ddcd;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.point-copy .hl { color: #6fe3ab; font-weight: 500; }

.hero-actions { margin-top: 34px; }

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-size: 1.05rem; font-weight: 500;
  color: #061018; cursor: pointer;
  padding: 15px 30px; border: none; border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 40px rgba(20,199,158,0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(20,199,158,0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; justify-content: center; margin-top: 6px; }

/* Image button (Get Early Access artwork) */
.btn-image {
  display: inline-block; padding: 0; border: none; background: none;
  cursor: pointer; line-height: 0;
  transition: transform .2s ease, filter .2s ease;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.45));
}
.btn-image img {
  display: block;
  width: clamp(200px, 27vw, 300px);
  height: auto;
}
.btn-image:hover { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 16px 40px rgba(20,199,158,0.5)); }
.btn-image:active { transform: translateY(0) scale(1); }

/* ===== Footer ===== */
.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 22px; color: var(--muted); font-size: 0.85rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.site-footer .dot { opacity: 0.5; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 50; display: none; }
.modal.open { display: block; }

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 4, 8, 0.7);
  backdrop-filter: blur(8px);
  animation: fade .25s ease;
}

.modal-card {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 40px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: pop .3s cubic-bezier(.2,.9,.3,1.2);
}

/* ===== Ornate artwork modal ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.modal-card.ornate {
  /* The artwork is taller than wide (1141/1378), so on short viewports
     (landscape phones) cap the width by the available HEIGHT via the
     aspect ratio — the percent-positioned fields stay aligned and the
     whole card always fits on screen. dvh entry wins where supported. */
  width: min(440px, calc(100vw - 32px), calc((100vh - 24px) * 1141 / 1378));
  width: min(440px, calc(100vw - 32px), calc((100dvh - 24px) * 1141 / 1378));
  aspect-ratio: 1141 / 1378;
  height: auto;
  padding: 0; border: none; border-radius: 0;
  background: url("assets/lets-talk-bg2.png") center / 100% 100% no-repeat;
  backdrop-filter: none;
  box-shadow: none;
  filter: drop-shadow(0 26px 55px rgba(0,0,0,0.6));
}
.modal-card.ornate form { position: absolute; inset: 0; }

/* Functional fields positioned over the painted boxes (percent of card). */
.ot-field {
  position: absolute;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.72rem, 2.5vw, 0.92rem);
  color: #f3e7c4;
  background: #02140f;            /* opaque, covers the painted example text */
  border: 1px solid transparent;  /* keep the painted gold border visible */
  border-radius: 6px;
  padding: 0 12px;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
}
.ot-field::placeholder { color: rgba(220,205,160,0.45); }
.ot-field:focus {
  box-shadow: 0 0 0 1.5px rgba(70,210,160,0.85), 0 0 14px rgba(20,199,158,0.25) inset;
}
.ot-field:user-invalid { border-color: #e06b73; }

/* Positions measured from the artwork (percent of the card). */
.ot-first   { left: 12.8%; width: 33.6%; top: 34.1%; height: 5.4%; }
.ot-last    { left: 52.2%; width: 34.8%; top: 34.1%; height: 5.4%; }
.ot-email   { left: 12.8%; width: 74.2%; top: 48.1%; height: 5.4%; }
.ot-company { left: 12.8%; width: 74.2%; top: 62.1%; height: 5.4%; }

.ot-usecase {
  left: 12.8%; width: 74.2%; top: 76.1%; height: 5.4%;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23c4a252' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: rgba(220,205,160,0.7);
}
.ot-usecase:valid { color: #f3e7c4; }
.ot-usecase option { background: #08231a; color: #f3e7c4; }

/* Transparent hot-zones over painted graphics */
.ot-submit {
  position: absolute; left: 17%; width: 66%; top: 84%; height: 9%;
  background: transparent; border: none; cursor: pointer; padding: 0;
  border-radius: 10px;
  transition: filter .2s, transform .15s;
}
.ot-submit:hover { filter: brightness(1.12) drop-shadow(0 0 12px rgba(20,199,158,0.5)); }
.ot-submit:active { transform: translateY(1px); }

.ot-close {
  position: absolute; left: 83%; width: 10%; top: 8%; height: 7%;
  background: transparent; border: none; cursor: pointer; padding: 0;
  border-radius: 50%;
}
.ot-close:hover { filter: brightness(1.25); }

.ot-status {
  position: absolute; left: 12.8%; width: 74.2%; top: 93.5%;
  margin: 0; font-size: 0.78rem; text-align: center; min-height: 1em;
}
.form-status { margin-top: 12px; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #6ee7b8; }
.form-status.err { color: #ff9aa2; }
.form-status.hint { color: #e8c87f; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===== Compact phones: header → hero → CTA must fit ONE screen, no scroll ===== */
@media (max-width: 600px) {
  .site-header { padding: 14px 20px; }
  .brand-logo { height: 38px; }
  .headline { max-width: 100%; font-size: clamp(2.4rem, 11vw, 3rem); }
  .subhead { font-size: 0.95rem; line-height: 1.5; }
  .hero { padding: 8px 20px 20px; gap: 14px; }
  .points { gap: 10px; margin-top: 4px; }
  .point { padding: 6px 18px 6px 10px; gap: 10px; }
  .point-badge { width: 40px; height: 40px; }
  .point-badge .ic { width: 20px; height: 20px; }
  .point-copy strong { font-size: 1.15rem; }
  .hero-actions { margin-top: 12px; }
  .btn-image img { width: 180px; }
  .site-footer { padding: 12px; font-size: 0.78rem; }
}

/* ===== Touch devices forcing a wide layout viewport ("Desktop site" mode on
   phones, wide WebViews): the page gets zoomed out, so lift the size floors
   to stay readable. Real desktops (fine pointers) are unaffected. ===== */
@media (pointer: coarse) and (min-width: 700px) and (max-width: 1100px) {
  html { font-size: 20px; }
  .headline { font-size: clamp(4.2rem, 7.5vw, 6rem); }
  .btn-image img { width: clamp(250px, 30vw, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video, .bg-canvas { animation: none; }
  .modal-card, .modal-backdrop { animation: none; }
}
