/* iQLABS studio site — shared light theme aligned with iqweb.ai tokens */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-muted: #eef2f7;
  --ink: #0a2540;
  --ink-soft: #1a1f36;
  --body: #425466;
  --muted: #6b7c93;
  --border: #e6ebf1;
  --border-strong: #d8dee8;
  --accent: #635bff;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 91, 255, 0.08);
  --accent-text: #635bff;
  --teal: #00d4aa;
  --ok: #0d9488;
  --ok-soft: #ecfdf5;
  --shadow-sm: 0 2px 5px rgba(50, 50, 93, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 13px 27px rgba(50, 50, 93, 0.08), 0 3px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 30px 60px rgba(50, 50, 93, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
  --max-width: 1140px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12%;
  width: min(720px, 68vw);
  height: min(1200px, 120vh);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 92% 48% at 84% 0%, rgba(99, 91, 255, 0.16), transparent 68%),
    radial-gradient(ellipse 78% 48% at 68% 28%, rgba(0, 212, 170, 0.1), transparent 66%);
  filter: blur(72px);
  opacity: 0.85;
}

.shell-inner {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

.nav-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-title:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* Hero — home */
.hero-home {
  margin-top: 56px;
  margin-bottom: 48px;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

.hero-home h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  max-width: 14ch;
}

.hero-sub {
  margin: 0;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.section-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary,
.section-cta {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.section-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-secondary,
.hero-link {
  border-color: var(--border-strong);
  background: var(--bg);
  color: var(--body);
}

.btn-secondary:hover,
.hero-link:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Hero — inner / legal pages */
.hero-page {
  margin-top: 40px;
  margin-bottom: 24px;
  max-width: 780px;
}

.hero-page h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.hero-page h1 .accent {
  color: var(--accent-text);
}

.hero-page .hero-sub {
  max-width: 68ch;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Sections */
.section {
  margin-top: 48px;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 8px;
}

.section-head-copy {
  min-width: 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-subtitle {
  margin: 0;
  color: var(--body);
  line-height: 1.65;
  max-width: 72ch;
  font-size: 0.9375rem;
}

/* Product lead card */
.product-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
}

.product-lead-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border: 1px solid rgba(99, 91, 255, 0.18);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-lead-card:hover {
  border-color: rgba(99, 91, 255, 0.32);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-lead-card h3 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.product-lead-aside {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.product-lead-aside h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.product-lead-aside p,
.product-lead-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 91, 255, 0.15);
}

.feature-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.feature-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.feature-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.feature-item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 600;
}

.feature-item span {
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Cards & grids */
.card-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

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

.card,
.step,
.contact-card,
.policy-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover,
.step:hover,
.contact-card:hover,
.policy-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
}

.card-title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.card-copy,
.contact-card p,
.policy-card p {
  margin: 0;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

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

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.step p {
  margin: 0;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.trust-strip {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--body);
  font-size: 0.8125rem;
  font-weight: 500;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.contact-card h3,
.policy-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.info-list,
.policy-points {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--body);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.info-list li,
.policy-points li {
  margin: 8px 0;
}

.info-list strong {
  color: var(--ink);
}

.policy-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.inline-link,
.email-link,
.policy-link {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 91, 255, 0.25);
  padding-bottom: 1px;
}

.inline-link:hover,
.email-link:hover,
.policy-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* Legal content */
.hero-shell {
  display: block;
  margin-top: 40px;
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.hero-h1 span {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--body);
  letter-spacing: -0.01em;
}

.legal-block {
  margin-top: 20px;
  max-width: 64rem;
}

.legal-block h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}

.legal-block h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--ink);
}

.legal-block p,
.legal-block li {
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.7;
}

.legal-block ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

/* Closing & footer */
.closing-statement {
  padding: 48px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing-philosophy,
.closing-inner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body);
  font-style: italic;
}

.wd-footer {
  padding: 40px 24px 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
}

.wd-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wd-footer-meta {
  color: var(--muted);
  line-height: 1.5;
}

.wd-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.wd-footer-links a {
  color: var(--body);
  font-size: 0.8125rem;
  text-decoration: none;
}

.wd-footer-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.wd-footer-right {
  color: var(--muted);
  font-size: 0.8125rem;
}

.wd-footer-right a {
  color: var(--accent-text);
}

.wd-footer-links .dot {
  opacity: 0.5;
  color: var(--muted);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 600ms cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 70ms; }
.reveal-delay-2 { transition-delay: 140ms; }
.reveal-delay-3 { transition-delay: 210ms; }
.reveal-delay-4 { transition-delay: 280ms; }

/* Responsive */
@media (max-width: 960px) {
  .product-lead,
  .grid-3,
  .grid-2,
  .steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .section-cta {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .page-shell::before {
    right: -28%;
    opacity: 0.65;
    filter: blur(56px);
  }

  .nav {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-center {
    display: none;
  }

  .hero-home h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .shell-inner {
    padding-inline: 20px;
  }

  .section {
    padding: 22px 18px;
  }

  .hero-actions,
  .hero-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary,
  .section-cta,
  .nav-cta {
    width: 100%;
  }
}

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-link,
  .nav-cta,
  .card,
  .step,
  .contact-card,
  .policy-card,
  .product-lead-card,
  .btn-primary,
  .btn-secondary,
  .section-cta {
    transition: none;
  }

  .btn-primary:hover,
  .nav-cta:hover,
  .section-cta:hover {
    transform: none;
  }
}
