/* Gencloud's landing page. Palette from the Gencloud mark's sky-to-indigo gradient (assets/logo.svg). */
:root {
  --bg: 246 249 253; --bg-alt: 238 244 251; --card: 255 255 255;
  --ink: 16 28 46; --ink-2: 52 66 88; --muted: 91 107 130;
  --line: 220 231 245; --accent: 107 116 196; --accent-hover: 88 96 176; --sky: 116 200 242;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: 9 13 21; --bg-alt: 13 18 29; --card: 21 27 40;
    --ink: 233 241 251; --ink-2: 200 212 228; --muted: 147 164 188;
    --line: 30 40 58; --accent: 128 137 214; --accent-hover: 150 158 226; --sky: 116 200 242;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: rgb(var(--bg)); color: rgb(var(--ink));
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(100deg, rgb(var(--sky)), rgb(var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: background .15s, transform .15s, border-color .15s;
}
.btn-primary { background: rgb(var(--accent)); color: #fff; box-shadow: 0 8px 24px -10px rgb(var(--accent) / .7); }
.btn-primary:hover { background: rgb(var(--accent-hover)); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgb(var(--line)); color: rgb(var(--ink)); }
.btn-ghost:hover { border-color: rgb(var(--accent)); }

/* Header */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgb(var(--bg) / .8); border-bottom: 1px solid rgb(var(--line) / .6); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a.link { text-decoration: none; color: rgb(var(--ink-2)); font-size: 15px; }
nav a.link:hover { color: rgb(var(--ink)); }
nav .btn { padding: 9px 18px; font-size: 15px; }
@media (max-width: 720px) { nav a.link { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, rgb(var(--sky) / .22), transparent 70%) 15% 30% / 60% 60% no-repeat,
              radial-gradient(closest-side, rgb(var(--accent) / .22), transparent 70%) 85% 20% / 60% 60% no-repeat;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgb(var(--line)); background: rgb(var(--card) / .7); font-size: 13px; color: rgb(var(--ink-2));
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, rgb(var(--sky)), rgb(var(--accent))); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 22px 0 20px; }
.lede { font-size: 19px; color: rgb(var(--ink-2)); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure { margin-top: 22px; font-size: 14px; color: rgb(var(--muted)); }

/* The chat mock */
.chat {
  background: rgb(var(--card)); border: 1px solid rgb(var(--line)); border-radius: 20px; padding: 20px;
  box-shadow: 0 30px 80px -30px rgb(16 28 46 / .35);
}
.msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; margin-bottom: 10px; }
.msg.me { margin-left: auto; background: rgb(var(--accent)); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { background: rgb(var(--bg-alt)); color: rgb(var(--ink)); border-bottom-left-radius: 4px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
/* Sections */
section { padding: 88px 0; }
section.alt { background: rgb(var(--bg-alt)); border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p { color: rgb(var(--ink-2)); font-size: 18px; margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; font-weight: 700; color: rgb(var(--accent)); margin-bottom: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 26px; border-radius: 18px; background: rgb(var(--card)); border: 1px solid rgb(var(--line)); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, rgb(var(--sky)), rgb(var(--accent)));
}
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: rgb(var(--ink-2)); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; border-radius: 18px; background: rgb(var(--card)); border: 1px solid rgb(var(--line)); transition: transform .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); border-color: rgb(var(--accent) / .5); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: rgb(var(--accent) / .1); color: rgb(var(--accent)); }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: rgb(var(--ink-2)); font-size: 15px; }

.ai-band {
  margin-top: 28px; padding: 30px 32px; border-radius: 20px; display: flex; gap: 22px; align-items: center;
  border: 1px solid rgb(var(--accent) / .35);
  background: linear-gradient(110deg, rgb(var(--sky) / .12), rgb(var(--accent) / .14));
}
.ai-band .icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, rgb(var(--sky)), rgb(var(--accent))); }
.ai-band .icon svg { width: 26px; height: 26px; }
.ai-band h3 { margin: 0 0 4px; font-size: 20px; }
.ai-band p { margin: 0; color: rgb(var(--ink-2)); }
@media (max-width: 620px) { .ai-band { flex-direction: column; align-items: flex-start; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
.split p { color: rgb(var(--ink-2)); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(135deg, rgb(var(--sky)), rgb(var(--accent)));
}
.panel { padding: 28px; border-radius: 20px; background: rgb(var(--card)); border: 1px solid rgb(var(--line)); display: grid; gap: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgb(var(--bg-alt)); font-size: 14.5px; }
.row small { color: rgb(var(--muted)); display: block; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill.live { background: rgb(52 168 110 / .15); color: rgb(36 150 92); }
.pill.preview { background: rgb(var(--accent) / .12); color: rgb(var(--accent)); }
.pill.past { background: rgb(var(--muted) / .15); color: rgb(var(--muted)); }

/* The dashboard mock */
.dash {
  background: rgb(var(--card)); border: 1px solid rgb(var(--line)); border-radius: 20px; padding: 20px;
  display: grid; gap: 12px; box-shadow: 0 30px 80px -30px rgb(16 28 46 / .35);
}
.dash-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgb(var(--line)); font-weight: 600; font-size: 14px; }
.dash-top img { width: 26px; height: 26px; }
.dash-top .pill { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 12px 14px; border-radius: 12px; background: rgb(var(--bg-alt)); }
.stat small { display: block; font-size: 12px; color: rgb(var(--muted)); }
.stat b { display: block; font-size: 20px; letter-spacing: -0.01em; }
.stat em { font-style: normal; font-size: 12px; font-weight: 600; color: rgb(36 150 92); }
@media (max-width: 420px) { .stat b { font-size: 17px; } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; padding: 10px 14px; border-radius: 12px; background: rgb(var(--bg-alt)); }
.bars span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgb(var(--sky)), rgb(var(--accent))); }
@media (prefers-reduced-motion: no-preference) {
  .bars span { transform-origin: bottom; transform: scaleY(0); animation: grow .8s ease-out .4s forwards; }
  .bars span:nth-child(even) { animation-delay: .5s; }
  @keyframes grow { to { transform: none; } }
}

/* Other Gencore products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; padding: 26px; border-radius: 18px; background: rgb(var(--card)); border: 1px solid rgb(var(--line)); text-decoration: none; transition: transform .2s, border-color .2s; }
.product:hover { transform: translateY(-3px); border-color: rgb(var(--accent) / .5); }
.product h3 { margin: 0 0 6px; font-size: 18px; }
.product p { margin: 0 0 18px; color: rgb(var(--ink-2)); font-size: 15px; flex: 1; }
.product span { font-weight: 600; font-size: 15px; color: rgb(var(--accent)); }

.final { text-align: center; padding: 96px 0; }
.final .box {
  padding: 64px 32px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, rgb(116 200 242), rgb(107 116 196) 55%, rgb(70 78 160));
  box-shadow: 0 30px 80px -30px rgb(107 116 196 / .7);
}
.final h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.final p { font-size: 18px; opacity: .92; margin: 0 auto 30px; max-width: 34em; }
.final .btn { background: #fff; color: rgb(70 78 160); }
.final .btn:hover { transform: translateY(-1px); }

footer { padding: 32px 0 48px; color: rgb(var(--muted)); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { text-decoration: none; }
footer a:hover { color: rgb(var(--ink)); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise .7s ease-out forwards; }
  .reveal.d1 { animation-delay: .1s; } .reveal.d2 { animation-delay: .2s; } .reveal.d3 { animation-delay: .35s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
