/* ============================================================
   GraphLinq Landing — CSS
   Palette: bg #ffffff, fg #333333, primary #080810, accent #a068f8
   Font: Gilroy (Semibold 600, Medium 500)
   ============================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Gilroy', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  background: #ffffff;
  color: #333333;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ----- Custom Properties ----- */
:root {
  --bg: #ffffff;
  --fg: #333333;
  --primary: #080810;
  --surface-dark: #080810;
  --surface-mid: #303030;
  --surface-light: #f8f8f8;
  --accent: #a068f8;
  --accent-muted: #8878a8;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 64px rgba(0,0,0,0.2);
  --transition: 0.25s ease;
  --container: 1200px;
  --section-v: 96px;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(160, 104, 248, 0.12);
  transition: background var(--transition);
}

.site-header.scrolled {
  background: rgba(8, 8, 16, 0.97);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.logo-icon { flex-shrink: 0; }
.logo-text { white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: #ffffff; background: rgba(255,255,255,0.08); }

.nav-cta-secondary {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}
.nav-cta-secondary:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.nav-cta-primary {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  padding: 8px 20px;
}
.nav-cta-primary:hover { background: #b880ff; color: #ffffff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  font-family: 'Gilroy', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: background var(--transition), color var(--transition), transform 0.15s ease, box-shadow var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(160, 104, 248, 0.35);
}
.btn-primary:hover {
  background: #b880ff;
  box-shadow: 0 6px 28px rgba(160, 104, 248, 0.5);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); color: #ffffff; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(160, 104, 248, 0.1);
  color: var(--accent);
}

.btn-outline-large {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.3);
  min-height: 56px;
  padding: 0 40px;
  font-size: 1.0625rem;
}
.btn-outline-large:hover { border-color: var(--accent); color: var(--accent); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 68px;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 16, 0.55) 0%,
    rgba(8, 8, 16, 0.45) 40%,
    rgba(8, 8, 16, 0.75) 80%,
    rgba(8, 8, 16, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 120px;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: rgba(160, 104, 248, 0.18);
  border: 1px solid rgba(160, 104, 248, 0.4);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

.desktop-only { display: inline; }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-microcopy {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* Trust bar */
.trust-bar {
  position: relative;
  z-index: 1;
  background: rgba(160, 104, 248, 0.08);
  border-top: 1px solid rgba(160, 104, 248, 0.18);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 24px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 40px;
  text-align: center;
}

.trust-num {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.trust-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.trust-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   SECTIONS — General
   ============================================================ */
.section {
  padding: var(--section-v) 0;
}

.section-dark {
  background: var(--surface-dark);
  color: #ffffff;
}

.section-light {
  background: var(--surface-light);
  color: var(--fg);
}

.section-accent {
  background: linear-gradient(135deg, #0f0f22 0%, #1a0f38 100%);
  color: #ffffff;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 12px;
}

.accent-eyebrow { color: var(--accent); }

.section-dark h2,
.section-accent h2,
.section-testimonials h2 {
  color: #ffffff;
}

.section-light h2 { color: var(--primary); }

h2 {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: inherit;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-body {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
}

.section-light .section-body { color: rgba(51,51,51,0.75); }

.section-body-centered { text-align: center; }

.section-top-gap { margin-top: 64px; }

/* ----- Two-column grid ----- */
.section-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-grid.two-col.reverse .section-text { order: 2; }
.section-grid.two-col.reverse .section-visual { order: 1; }

.section-text h2 { margin-bottom: 16px; }

/* ----- Product showcase ----- */
.product-showcase {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 48px;
}

.product-screenshot {
  width: 100%;
  display: block;
}

/* ----- Feature cards ----- */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid.three-col { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(160, 104, 248, 0.35);
  transform: translateY(-2px);
}

.feature-card-dark {
  background: rgba(255,255,255,0.03);
}

.section-light .feature-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.section-light .feature-card:hover {
  border-color: rgba(160, 104, 248, 0.3);
}

.section-light .feature-card h3 { color: var(--primary); }
.section-light .feature-card p { color: rgba(51,51,51,0.7); }
.section-dark .feature-card h3 { color: #ffffff; }
.section-dark .feature-card p { color: rgba(255,255,255,0.6); }

.card-img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* ----- Section visual ----- */
.section-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.section-img.rounded-lg { border-radius: var(--radius-lg); }

.mini-cards-row {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mini-card {
  flex: 1;
  min-width: 120px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ============================================================
   VIDEO TUTORIALS
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color var(--transition), transform var(--transition);
}

.video-card:hover {
  border-color: rgba(160, 104, 248, 0.35);
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.04); }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 16, 0.25);
  transition: background var(--transition);
}

.video-card:hover .play-btn { background: rgba(8, 8, 16, 0.1); }

.video-label {
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.section-testimonials {
  position: relative;
  padding: var(--section-v) 0;
  color: #ffffff;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.testimonials-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.testimonials-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.82);
}

.testimonials-inner {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(160, 104, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(160, 104, 248, 0.5);
  transform: translateY(-2px);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(160, 104, 248, 0.4);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

blockquote {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  font-style: italic;
}

blockquote::before { content: '\201C'; }
blockquote::after  { content: '\201D'; }

cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

cite strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

cite span {
  font-size: 0.8125rem;
  color: var(--accent-muted);
}

/* ============================================================
   SOCIAL / CONNECT
   ============================================================ */
.section-connect { padding: var(--section-v) 0; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.social-card:hover {
  background: rgba(160, 104, 248, 0.12);
  border-color: rgba(160, 104, 248, 0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

.social-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.litepaper-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #000000;
  color: rgba(255,255,255,0.6);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo { margin-bottom: 16px; }

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
}

.footer-links-grid {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-v: 72px; }

  .section-grid.two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .section-grid.two-col.reverse .section-text { order: 0; }
  .section-grid.two-col.reverse .section-visual { order: 0; }

  .card-grid.three-col { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links-grid { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --section-v: 56px; }

  /* Nav */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(8, 8, 16, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; width: 100%; border-radius: 10px; }

  /* Hero */
  .hero-content { padding-top: 60px; padding-bottom: 80px; max-width: 100%; }
  .hero-h1 { font-size: 2rem; }
  .desktop-only { display: none; }
  .trust-bar-inner { flex-direction: column; gap: 0; }
  .trust-divider { width: 80%; height: 1px; }
  .trust-item { padding: 12px 16px; }

  /* Cards */
  .card-grid.three-col { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-grid { grid-column: span 1; grid-template-columns: repeat(2, 1fr); }

  .section-header { margin-bottom: 36px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .trust-num { font-size: 1.5rem; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .footer-links-grid { grid-template-columns: 1fr; }
  .section-grid.two-col { gap: 28px; }
}
