/* ==========================================================================
   GoFast AI — Standalone Landing
   Design language mirrored from the main app (tailwind.config.js + globals.css)

   Palette (from the app):
     oyster   #5576f9   primary
     mana     #4065f9   primary hover / deep
     aqua     #00e0fe   accent / gradient end
     comet    #5b5f78   heading text
     stone    #9a9db2   muted body text
     ghost    #f9fafe   very soft bg
     antiflash#f2f2f5   soft bg
     pearl    #1f2129   dark surface
     vulcan   #16181d   darker surface
     heart    #6600cc   deep violet accent
   ========================================================================== */

:root {
  --oyster: #5576f9;
  --mana: #4065f9;
  --crayoln: #2b54f8;
  --palatinate: #274cdf;
  --aqua: #00e0fe;
  --spiro: #22e5ff;
  --heart: #6600cc;

  --comet: #5b5f78;
  --stone: #9a9db2;
  --club: #8186a0;
  --bay: #52566d;
  --cloud: #383c4b;
  --pearl: #1f2129;
  --vulcan: #16181d;

  --ghost: #f9fafe;
  --antiflash: #f2f2f5;
  --zircon: #dbdde4;

  /* Gradients used by the app */
  --grad-top-left: #30b8c9;
  --grad-top-right: #4b6fdd;
  --grad-bottom-right: #6b4bdd;
  --grad-bottom-left: #4b6fdd;

  --brand-gradient: linear-gradient(90deg, var(--aqua) 0%, var(--oyster) 100%);
  --brand-gradient-45: linear-gradient(135deg, var(--aqua) 0%, var(--oyster) 60%, var(--heart) 120%);

  --bg: #ffffff;
  --bg-soft: var(--ghost);
  --bg-muted: var(--antiflash);
  --surface: #ffffff;
  --border: var(--zircon);

  --text: var(--comet);
  --text-strong: var(--cloud);
  --text-muted: var(--stone);
  --text-invert: #ffffff;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;

  /* Tailwind's shadow-staticButton, rebuilt */
  --shadow-button:
    0 10px 0 -10px rgb(43 84 248 / 0.7),
    0 20px 10px -20px rgb(43 84 248 / 0.7),
    0 30px 20px -25px rgb(43 84 248 / 0.7);

  --shadow-static:
    0 10px 0 -10px rgb(151 163 184 / 0.5),
    0 20px 10px -20px rgb(151 163 184 / 0.5),
    0 30px 20px -25px rgb(151 163 184 / 0.5),
    0 40px 30px -30px rgb(151 163 184 / 0.5),
    0 50px 50px -35px rgb(151 163 184 / 0.5);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c10;
    --bg-soft: #101217;
    --bg-muted: #161922;
    --surface: #141721;
    --border: #2a2e3d;

    --text: #e6e8f2;
    --text-strong: #ffffff;
    --text-muted: #8f94a8;
    --text-invert: #0b0c10;
  }
}

/* ---------- Reset / base ------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Inter", "InterVariable", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "salt";
  font-size: clamp(15px, 0.9vw + 12px, 17px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgb(85 118 249 / 0.25);
  color: var(--text-strong);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  color: var(--text-strong);
}

/* ---------- Layout: split shell ----------------------------------------- */
/* Mobile: wallpaper sits on top as a compact banner, then content flows. */
/* Desktop (>= 900px): side-by-side split with content on the left. */
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

@media (min-width: 900px) {
  .shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1400px) {
  .shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
}

/* ---------- Content column ---------------------------------------------- */
.content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 5vw, 1.75rem) clamp(1.1rem, 5vw, 1.75rem)
    clamp(1.5rem, 5vw, 2rem);
  background:
    radial-gradient(1200px 600px at -10% -20%, rgb(85 118 249 / 0.06), transparent 60%),
    var(--bg);
  overflow: hidden;
  order: 2;
}

@media (min-width: 900px) {
  .content {
    padding: clamp(2rem, 3vw, 3.5rem);
    min-height: 100dvh;
    order: 1;
  }
}

.content-inner {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

/* ---------- Header / brand ---------------------------------------------- */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(0.45rem, 1.5vw, 0.95rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text-strong);
}

.brand-logo {
  height: clamp(32px, 3vw, 40px);
  width: auto;
  display: block;
  user-select: none;
}

.brand-logo--dark { display: none; }

@media (prefers-color-scheme: dark) {
  .brand-logo--light { display: none; }
  .brand-logo--dark  { display: block; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero-title {
  font-size: clamp(1.85rem, 5.5vw + 0.25rem, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  /* margin-top: auto pairs with margin-bottom: auto on .meta to vertically
     center the hero/features/meta block in the leftover space between the
     brand header and the pitch footer. */
  margin: auto 0 1.1rem;
  color: var(--text-strong);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.hero-title .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
  display: inline-block;
}

.hero-lead {
  /* Larger bottom margin introduces a clear break between the hero (title + lead)
     and the features grid so they read as two distinct sections. */
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: var(--text);
  font-size: clamp(0.98rem, 0.4vw + 0.9rem, 1.125rem);
  line-height: 1.6;
  max-width: 44ch;
}

/* ---------- Feature list ------------------------------------------------ */
/*
  Bento grid (XY / XZ) from ~560px up:
    [ X — Automate ] [ Y — Operational ]
    [     (tall)   ] [ Z — Flexible      ]

  Narrow screens: single column, full-width rows.
*/
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .features {
    /* ~41% / ~59% — left (X) vs right (Y + Z) */
    grid-template-columns: minmax(0, 45fr) minmax(0, 65fr);
    grid-template-rows: auto auto;
    gap: 0.9rem;
    align-items: stretch;
  }

  /* X: left column, spans both rows */
  .features li:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  /* Y: top-right */
  .features li:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  /* Z: bottom-right */
  .features li:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (min-width: 900px) {
  .features {
    gap: 1rem;
  }
}

.features li {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.15rem;
  padding: 1.25rem 1.35rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 0;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

/* Tall X cell: stack icon + title vertically, centered */
@media (min-width: 560px) {
  .features li:nth-child(1) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.1rem;
    padding: 1.35rem 1.4rem 1.45rem;
  }
}

@media (min-width: 900px) {
  .features li {
    gap: 1.15rem 1.35rem;
    padding: 1.35rem 1.5rem 1.4rem;
  }

  .features li:nth-child(1) {
    gap: 1.2rem;
    padding: 1.5rem 1.55rem 1.6rem;
  }
}

@media (hover: hover) {
  .features li:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--oyster) 45%, var(--border));
    box-shadow: 0 10px 30px -20px rgb(85 118 249 / 0.45);
  }
}

.feature-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-gradient-45);
  box-shadow: 0 10px 22px -10px rgb(85 118 249 / 0.7);
}

@media (min-width: 900px) {
  .feature-ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}

.feature-ic svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 900px) {
  .feature-ic svg {
    width: 22px;
    height: 22px;
  }
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-text strong {
  display: block;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

@media (min-width: 900px) {
  .feature-text strong {
    font-size: 1.05rem;
  }
}

/* ---------- Trust / meta row ------------------------------------------- */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  row-gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  /* Breathing room under the pill row before the pitch footer. */
  padding-bottom: 0.85rem;
  /* margin-bottom: auto pairs with margin-top: auto on .hero-title */
  margin-bottom: auto;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--stone);
  opacity: 0.6;
}

/* ---------- Visual column (wallpaper) ----------------------------------- */
.visual {
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
  order: 1;
  /* Compact banner on mobile — roughly 28% of the viewport, capped. */
  height: clamp(190px, 30dvh, 300px);
  width: 100%;
}

@media (min-width: 900px) {
  .visual {
    order: 2;
    height: auto;
    min-height: 100dvh;
  }
}

.visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

/* Brand color wash sits on top of the photo so everything belongs to the same palette */
.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgb(85 118 249 / 0.14) 0%,
      rgb(43 84 248 / 0.08) 40%,
      rgb(43 84 248 / 0.02) 70%,
      transparent 100%
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Mobile: fade the BOTTOM of the banner into the content background for a seamless handoff. */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 55%,
    var(--bg) 100%
  );
  pointer-events: none;
}

@media (min-width: 900px) {
  .visual::after {
    /* Same pattern as mobile: fade only at the shared seam (left edge → content).
       Rest of the photo stays clean — no full-panel overlay or blur. */
    background: linear-gradient(
      to right,
      var(--bg) 0%,
      transparent 28%
    );
  }
}

/* Fallback gradient if the image fails to load */
.visual--fallback {
  background:
    radial-gradient(120% 80% at 20% 15%, var(--aqua), transparent 55%),
    radial-gradient(120% 80% at 85% 85%, var(--heart), transparent 55%),
    linear-gradient(135deg, var(--oyster) 0%, var(--mana) 50%, var(--heart) 100%);
}
.visual--fallback img { display: none; }

/* ---------- Pitch / footer callout (merged from former visual-card) ----- */
.pitch {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.25rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--oyster) 28%, var(--border));
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--oyster) 10%, transparent) 0%,
      color-mix(in srgb, var(--heart) 6%, transparent) 100%
    ),
    var(--surface);
  box-shadow: 0 20px 40px -30px rgb(85 118 249 / 0.45);
}

.pitch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--oyster) 65%, var(--text-muted));
}

.pitch-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgb(0 224 254 / 0.22);
}

.pitch-title {
  font-size: clamp(1.05rem, 1vw + 0.75rem, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-strong);
}

.pitch-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pitch-legal {
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid color-mix(in srgb, var(--oyster) 16%, var(--border));
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---------- Meta: narrow screens ---------------------------------------- */
@media (max-width: 420px) {
  .meta-dot {
    display: none;
  }
}

/* ---------- Motion ------------------------------------------------------ */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title,
.hero-lead,
.features,
.meta,
.pitch {
  animation: rise 0.7s var(--ease) both;
}

.hero-title     { animation-delay: 0.05s; }
.hero-lead      { animation-delay: 0.1s; }
.features       { animation-delay: 0.15s; }
.meta           { animation-delay: 0.22s; }
.pitch          { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Focus ring (accessibility) ---------------------------------- */
:focus-visible {
  outline: 2px solid var(--oyster);
  outline-offset: 3px;
  border-radius: 6px;
}
