/* ==========================================================================
   RobinGPT — Landing page
   Self-contained design system. Deliberately separate from /css/style.css
   (the app's own stylesheet) so this page can be built, changed, or
   redeployed without ever touching the application.
   ========================================================================== */
:root {
  --bg: #08120D;
  --bg-elev-1: #0D1912;
  --bg-elev-2: #12241A;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #35D07F;
  --accent-soft: rgba(53, 208, 127, 0.12);
  --accent-glow: rgba(53, 208, 127, 0.22);

  --text-primary: #F4F7F5;
  --text-secondary: #9FB0A6;
  --text-tertiary: #728479;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1160px;
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent-soft); color: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #052013; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Ambient background — a single soft glow, not repeated per-section */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 560px at 18% -10%, rgba(53, 208, 127, 0.09), transparent 60%),
    radial-gradient(700px 460px at 100% 8%, rgba(53, 208, 127, 0.05), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 18, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.nav-brand img { border-radius: 6px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #052013;
  font-weight: 600;
  font-size: 13.5px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--accent-glow); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 64px 24px 40px; }
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  animation: fade-up 0.6s var(--ease) both;
}
.hero-title {
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 10px;
  animation: fade-up 0.6s var(--ease) 0.05s both;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 27px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.3;
  animation: fade-up 0.6s var(--ease) 0.1s both;
}
.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fade-up 0.6s var(--ease) 0.15s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #052013;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
  animation: fade-up 0.6s var(--ease) 0.2s both;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  animation: fade-up 0.6s var(--ease) 0.25s both;
}
.hero-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #052013;
  flex-shrink: 0;
}
.hero-badge strong { color: var(--accent); font-weight: 700; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero phone mockup ---- */
.hero-visual { display: flex; justify-content: center; animation: fade-up 0.7s var(--ease) 0.2s both; }
.mockup { position: relative; width: 100%; max-width: 340px; }
.mockup-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.mockup-frame {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 34px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.mockup-notch {
  width: 60px; height: 6px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-pill);
  margin: 0 auto 12px;
}
.mockup-screen {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  min-height: 380px;
}
.mockup-topbar { display: flex; gap: 6px; margin-bottom: 16px; }
.mockup-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.mockup-address {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-elev-1); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 16px;
}
.mockup-address-text { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-secondary); }
.mockup-analyze { font-size: 11.5px; font-weight: 700; color: var(--accent); }
.mockup-status {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.mockup-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: mockup-pulse 1.1s ease-in-out infinite; }
@keyframes mockup-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.mockup-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.mockup-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 9px;
}
.mockup-val { font-family: var(--font-mono); color: var(--text-primary); font-weight: 600; }
.mockup-val.shine {
  color: transparent;
  background: linear-gradient(90deg, var(--bg-elev-2) 25%, rgba(255,255,255,0.08) 50%, var(--bg-elev-2) 75%);
  background-size: 200% 100%;
  border-radius: 5px;
  animation: mockup-shine 1.6s ease-in-out infinite;
  min-width: 46px;
  text-align: right;
}
@keyframes mockup-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.mockup-val.resolved { color: var(--text-primary); background: none; animation: none; }

.mockup-summary {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-secondary); line-height: 1.6;
  background: var(--accent-soft); border: 1px solid rgba(53,208,127,0.2);
  border-radius: var(--radius-md); padding: 12px;
}
.mockup-summary em { font-style: normal; color: var(--text-primary); }
.mockup-summary-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex-shrink: 0; }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding: 88px 24px; }
.section--muted { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012) 20%, rgba(255,255,255,0.012) 80%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-inner--narrow { max-width: 720px; text-align: center; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.section-sub { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 44px; max-width: 480px; }
.about-text {
  color: var(--text-secondary);
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
}
.about-text strong { color: var(--text-primary); }

/* ---- Feature cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(53, 208, 127, 0.3); background: var(--bg-elev-2); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ---- Timeline ---- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 17px; left: 6%; right: 6%;
  height: 1px;
  background: var(--border-strong);
}
.timeline-step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.timeline-index {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); font-weight: 600;
  z-index: 1;
}
.timeline-step h3 { font-size: 15.5px; font-weight: 500; color: var(--text-primary); line-height: 1.5; max-width: 220px; }

/* ---- Network badges ---- */
.network-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.network-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg-elev-1);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
}
.network-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* ---- Final CTA ---- */
.cta-final { padding: 20px 24px 100px; }
.cta-final-inner {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.cta-final-inner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 50% 0%, var(--accent-glow), transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}
.cta-final-inner h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; margin-bottom: 10px; position: relative; }
.cta-final-inner p { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 28px; position: relative; }
.cta-final-inner .btn-primary { position: relative; animation: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--border); padding: 36px 24px 20px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 6px; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.footer-tagline { font-size: 12.5px; color: var(--text-tertiary); }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; }
.footer-links a { font-size: 13.5px; color: var(--text-secondary); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-chain-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(53, 208, 127, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.footer-legal { max-width: var(--max-w); margin: 0 auto; font-size: 12px; color: var(--text-tertiary); }

/* ==========================================================================
   Scroll-reveal (respects prefers-reduced-motion via the rule at the top)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive — mobile-first breakpoints, not a desktop scale-down
   ========================================================================== */
@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero { padding: 96px 24px 60px; }
}

@media (max-width: 859px) {
  .nav-links { display: none; }
  .hero-copy { max-width: 100%; text-align: left; }
  .hero-visual { order: -1; margin-bottom: 8px; }
  .mockup { max-width: 300px; }
}

@media (max-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { display: none; }
  .timeline-step { flex-direction: row; align-items: flex-start; padding-bottom: 26px; padding-left: 0; }
  .timeline-step:not(:last-child) { position: relative; }
  .timeline-step:not(:last-child)::after {
    content: "";
    position: absolute; left: 17px; top: 36px; bottom: 0;
    width: 1px; background: var(--border-strong);
  }
  .timeline-step h3 { max-width: none; padding-top: 6px; }
  .section { padding: 64px 20px; }
  .cta-final-inner { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 12px 16px; }
  .nav-brand span { display: none; }
  .hero { padding: 40px 16px 32px; }
  .hero-title { font-size: 38px; }
  .hero-headline { font-size: 20px; }
  .btn-primary { width: 100%; justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .network-badges { gap: 8px; }
  .network-badge { padding: 8px 14px; font-size: 12.5px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Touch targets — keep every interactive element comfortably tappable */
@media (pointer: coarse) {
  .nav-cta, .btn-primary, .footer-links a, .nav-links a { min-height: 40px; display: inline-flex; align-items: center; }
}
