/* ========================================
   img-mcp — Landing page styles
   ======================================== */

:root {
  --bg: #0b0d10;
  --bg-elevated: #11141a;
  --surface: #161a23;
  --surface-2: #1e2330;
  --border: #262b3a;
  --text: #f5f7fa;
  --text-muted: #9aa3b2;
  --primary: #7c5cff;
  --primary-hover: #6347e0;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max-width: 1160px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #33e0bd;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(11, 13, 16, 0.7);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(11, 13, 16, 0.9);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo:hover {
  color: var(--text);
}

.logo img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.nav .button {
  margin-left: 4px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s var(--ease-out), background 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.28);
}

.button-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.35);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.16) 0%, transparent 70%);
  filter: blur(40px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.11) 0%, transparent 70%);
  filter: blur(50px);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.18);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(110deg, #fff 0%, #a78bfa 40%, #00d4aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Sections */
section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Trust bar */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 20, 26, 0.5);
}

.trust .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-logos span {
  color: #6b7280;
  font-weight: 700;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.trust-logos span:hover {
  color: var(--text);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How it works */
.steps {
  background: linear-gradient(180deg, transparent 0%, rgba(124, 92, 255, 0.04) 50%, transparent 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.step-number {
  position: absolute;
  top: -18px;
  left: 32px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}

.step-card h3 {
  margin: 14px 0 10px;
  font-size: 1.15rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Terminal preview */
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.terminal-copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.terminal-copy:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.terminal-body {
  padding: 22px;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d4d4d4;
}

.terminal-body .comment { color: #6a9955; }
.terminal-body .prompt { color: var(--accent); }
.terminal-body .command { color: #e7ecf3; }
.terminal-body .string { color: #ce9178; }

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.roadmap-status {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roadmap-status.shipped {
  background: rgba(0, 212, 170, 0.14);
  color: var(--accent);
}

.roadmap-status.planned {
  background: rgba(124, 92, 255, 0.14);
  color: #a78bfa;
}

.roadmap-status.research {
  background: rgba(154, 163, 178, 0.12);
  color: var(--text-muted);
}

.roadmap-item h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.roadmap-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CTA section */
.cta {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12) 0%, rgba(0, 212, 170, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.12) 0%, transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 14px 0 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--text-muted);
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 680px;
    margin: 0 auto;
  }

  .hero-meta,
  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px;
    gap: 14px;
    align-items: flex-start;
  }

  .nav.open {
    display: flex;
  }

  .nav .button {
    margin-left: 0;
    width: 100%;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .feature-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    padding: 44px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .feature-card:hover {
    transform: none;
  }
}
