/* ============================================================
   CHESS REV — Landing Page Stylesheet
   Version: 1.0.0
   Author:  Anuj Gupta
   
   Design System:
   - Colors derived from the app's theme_config.dart
   - Primary: #B56CFF (Purple)   Secondary: #5ED0FF (Cyan)
   - Background: #08070D → #120D19 gradient
   - Typography: Inter (body) + JetBrains Mono (code/tech)
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ──────────────────── */
:root {
  /* ─ Colors ─ */
  --clr-bg:             #08070D;
  --clr-bg-alt:         #120D19;
  --clr-surface:        #16111D;
  --clr-surface-elevated: #22192D;
  --clr-surface-muted:  #100D16;
  --clr-surface-border: rgba(157, 107, 255, 0.15);

  --clr-primary:        #B56CFF;
  --clr-primary-soft:   #8E59FF;
  --clr-primary-glow:   rgba(181, 108, 255, 0.25);
  --clr-secondary:      #5ED0FF;
  --clr-secondary-glow: rgba(94, 208, 255, 0.15);
  --clr-success:        #87E34D;
  --clr-warning:        #FFB357;
  --clr-danger:         #FF6B78;

  --clr-text:           #F0EDF5;
  --clr-text-muted:     rgba(240, 237, 245, 0.6);
  --clr-text-subtle:    rgba(240, 237, 245, 0.38);

  /* ─ Typography ─ */
  --ff-body:            'Inter', system-ui, -apple-system, sans-serif;
  --ff-mono:            'JetBrains Mono', 'Fira Code', monospace;
  --ff-display:         'Inter', system-ui, -apple-system, sans-serif;

  --fs-xs:    0.75rem;   /* 12px */
  --fs-sm:    0.875rem;  /* 14px */
  --fs-base:  1rem;      /* 16px */
  --fs-md:    1.125rem;  /* 18px */
  --fs-lg:    1.25rem;   /* 20px */
  --fs-xl:    1.5rem;    /* 24px */
  --fs-2xl:   2rem;      /* 32px */
  --fs-3xl:   2.5rem;    /* 40px */
  --fs-4xl:   3.25rem;   /* 52px */
  --fs-hero:  4rem;      /* 64px */

  /* ─ Spacing ─ */
  --sp-xs:    0.25rem;
  --sp-sm:    0.5rem;
  --sp-md:    1rem;
  --sp-lg:    1.5rem;
  --sp-xl:    2rem;
  --sp-2xl:   3rem;
  --sp-3xl:   4rem;
  --sp-4xl:   6rem;
  --sp-section: 7rem;

  /* ─ Radius ─ */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill: 100px;

  /* ─ Shadows ─ */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px var(--clr-primary-glow), 0 0 80px rgba(181, 108, 255, 0.08);
  --shadow-glow-cyan: 0 0 40px var(--clr-secondary-glow), 0 0 80px rgba(94, 208, 255, 0.06);

  /* ─ Transitions ─ */
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;

  /* ─ Layout ─ */
  --max-width:    1200px;
  --nav-height:   72px;
}


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

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--clr-secondary);
}

::selection {
  background: var(--clr-primary-soft);
  color: #fff;
}


/* ── Utility Classes ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-warm {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-warning) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--primary {
  background: rgba(181, 108, 255, 0.12);
  color: var(--clr-primary);
  border: 1px solid rgba(181, 108, 255, 0.2);
}

.badge--secondary {
  background: rgba(94, 208, 255, 0.1);
  color: var(--clr-secondary);
  border: 1px solid rgba(94, 208, 255, 0.18);
}


/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth);
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
}

.btn:hover::after {
  opacity: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-soft));
  color: #fff;
  box-shadow: 0 4px 20px rgba(181, 108, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(181, 108, 255, 0.45);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-surface-border);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 40px;
  font-size: var(--fs-md);
  border-radius: var(--radius-lg);
}

.btn svg,
.btn .btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* ── Section Titles ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-md);
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-primary));
}

.section-eyebrow::after {
  background: linear-gradient(90deg, var(--clr-primary), transparent);
}

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--duration-base) var(--ease-smooth);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 13, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.navbar.scrolled::before {
  opacity: 1;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 1;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -0.02em;
}

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

.navbar__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  list-style: none;
}

.navbar__links a {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 4px;
  position: relative;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 1px;
  transition: width var(--duration-base) var(--ease-smooth);
}

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

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  padding: 10px 22px !important;
  font-size: var(--fs-sm) !important;
}

/* Mobile nav toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-smooth);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--sp-3xl)) 0 var(--sp-4xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* Animated grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(181, 108, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 108, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 30s linear infinite;
}

@keyframes gridShift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Ambient glow orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(181, 108, 255, 0.18);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(94, 208, 255, 0.12);
  top: 60%;
  right: -5%;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(142, 89, 255, 0.14);
  bottom: 15%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-15px, 15px) scale(0.95); }
}

/* Gradient overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 7, 13, 0.3) 0%,
    rgba(8, 7, 13, 0.6) 50%,
    var(--clr-bg) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.hero__text {
  max-width: 600px;
}

.hero__badge {
  margin-bottom: var(--sp-lg);
}

.hero__title {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-lg);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-2xl);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--sp-2xl);
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__stat-value {
  font-family: var(--ff-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--clr-text);
  display: block;
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--clr-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Hero mockup side */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mockup {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(181, 108, 255, 0.1);
  animation: mockupFloat 6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero__mockup img {
  width: auto;
  max-width: 100%;
  max-height: 480px;
  display: block;
  margin: 0 auto;
}

.hero__mockup-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  background: radial-gradient(circle, var(--clr-primary-glow), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}


/* ── Features Section ───────────────────────────────────────── */
.features {
  padding: var(--sp-section) 0;
  position: relative;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}

.feature-card {
  background: linear-gradient(
    135deg,
    rgba(22, 17, 29, 0.8),
    rgba(34, 25, 45, 0.5)
  );
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 108, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  font-size: 24px;
  background: rgba(181, 108, 255, 0.1);
  border: 1px solid rgba(181, 108, 255, 0.15);
}

.feature-card__icon--cyan {
  background: rgba(94, 208, 255, 0.1);
  border-color: rgba(94, 208, 255, 0.15);
}

.feature-card__icon--green {
  background: rgba(135, 227, 77, 0.1);
  border-color: rgba(135, 227, 77, 0.15);
}

.feature-card__icon--orange {
  background: rgba(255, 179, 87, 0.1);
  border-color: rgba(255, 179, 87, 0.15);
}

.feature-card__icon--pink {
  background: rgba(255, 107, 120, 0.1);
  border-color: rgba(255, 107, 120, 0.15);
}

.feature-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  color: var(--clr-text);
}

.feature-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}


/* ── Feature Showcase (Alternating) ─────────────────────────── */
.showcase {
  padding: var(--sp-section) 0;
}

.showcase__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
  margin-bottom: var(--sp-4xl);
}

.showcase__item:last-child {
  margin-bottom: 0;
}

.showcase__item--reverse {
  direction: rtl;
}

.showcase__item--reverse > * {
  direction: ltr;
}

.showcase__image {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--clr-surface-border);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-smooth);
}

.showcase__image:hover {
  transform: scale(1.02);
}

.showcase__image img {
  max-width: 100%;
  max-height: 380px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.showcase__text {
  max-width: 500px;
}

.showcase__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-md);
}

.showcase__title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--sp-md);
}

.showcase__desc {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
}

.showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.showcase__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  background: rgba(181, 108, 255, 0.08);
  color: var(--clr-text-muted);
  border: 1px solid rgba(181, 108, 255, 0.1);
}


/* ── Under the Hood Section ─────────────────────────────────── */
.tech-section {
  padding: var(--sp-section) 0;
  position: relative;
}

.tech-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-surface-border), transparent);
}

.tech__architecture {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
  margin-bottom: var(--sp-3xl);
}

.tech-card {
  background: linear-gradient(
    180deg,
    rgba(22, 17, 29, 0.6),
    rgba(16, 13, 22, 0.9)
  );
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease-smooth);
}

.tech-card:hover {
  border-color: rgba(94, 208, 255, 0.25);
}

.tech-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.tech-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(94, 208, 255, 0.08);
  border: 1px solid rgba(94, 208, 255, 0.12);
  flex-shrink: 0;
}

.tech-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
}

.tech-card__label {
  font-size: var(--fs-xs);
  color: var(--clr-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tech-card__body {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.tech-card__body ul {
  list-style: none;
  padding: 0;
}

.tech-card__body li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.tech-card__body li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--clr-secondary);
  font-size: 12px;
}

/* Tech metrics strip */
.tech__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-3xl);
}

.metric-card {
  background: rgba(22, 17, 29, 0.5);
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  transition: all var(--duration-base) var(--ease-smooth);
}

.metric-card:hover {
  border-color: rgba(181, 108, 255, 0.3);
  transform: translateY(-2px);
}

.metric-card__value {
  font-family: var(--ff-mono);
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: 4px;
  display: block;
}

.metric-card__value--purple { color: var(--clr-primary); }
.metric-card__value--cyan   { color: var(--clr-secondary); }
.metric-card__value--green  { color: var(--clr-success); }
.metric-card__value--orange { color: var(--clr-warning); }

.metric-card__label {
  font-size: var(--fs-xs);
  color: var(--clr-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Tech stack pills */
.tech__stack {
  text-align: center;
}

.tech__stack-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-lg);
}

.tech__stack-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-sm);
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  background: rgba(22, 17, 29, 0.7);
  color: var(--clr-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--duration-fast) var(--ease-smooth);
  text-decoration: none;
}

.tech-pill:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}


/* ── About / Mission Section ────────────────────────────────── */
.about {
  padding: var(--sp-section) 0;
  position: relative;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}

.about__text-block {
  max-width: 560px;
}

.about__quote {
  font-size: var(--fs-xl);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--clr-text-muted);
  padding-left: var(--sp-lg);
  border-left: 3px solid var(--clr-primary);
  margin-bottom: var(--sp-xl);
}

.about__description {
  font-size: var(--fs-base);
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
}

.about__card {
  background: linear-gradient(
    135deg,
    rgba(22, 17, 29, 0.7),
    rgba(34, 25, 45, 0.4)
  );
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-2xl);
}

.about__dev-header {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.about__dev-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.about__dev-name {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.about__dev-role {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.about__dev-links {
  display: flex;
  gap: var(--sp-md);
  margin-top: var(--sp-sm);
}

.about__dev-links a {
  color: var(--clr-text-subtle);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.about__dev-links a:hover {
  color: var(--clr-primary);
}

.about__dev-bio {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.about__value {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

.about__value-icon {
  color: var(--clr-success);
  font-size: 16px;
  line-height: 1.7;
  flex-shrink: 0;
}


/* ── CTA / Download Banner ──────────────────────────────────── */
.cta-banner {
  padding: var(--sp-4xl) 0;
  position: relative;
}

.cta-banner__inner {
  background: linear-gradient(
    135deg,
    rgba(181, 108, 255, 0.08),
    rgba(94, 208, 255, 0.05)
  );
  border: 1px solid var(--clr-surface-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-3xl) var(--sp-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(181, 108, 255, 0.06), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(94, 208, 255, 0.04), transparent 50%);
  animation: ctaGlow 10s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(180deg); }
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-md);
}

.cta-banner__subtitle {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 500px;
  margin: 0 auto var(--sp-xl);
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}


/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: var(--sp-3xl) 0 var(--sp-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(8, 7, 13, 0.8);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
}

.footer__brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer__brand-desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-subtle);
  line-height: 1.7;
  max-width: 300px;
}

.footer__col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-md);
}

.footer__col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer__col-links a {
  font-size: var(--fs-sm);
  color: var(--clr-text-subtle);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer__col-links a:hover {
  color: var(--clr-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: var(--clr-text-subtle);
}

.footer__socials {
  display: flex;
  gap: var(--sp-md);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-subtle);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.footer__social-link:hover {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}


/* ── Scroll Reveal Animations ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              transform var(--duration-slow) var(--ease-smooth);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }
.reveal-delay-6 { transition-delay: 600ms; }


/* ── Counter Animation ──────────────────────────────────────── */
@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}


/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --fs-hero: 3rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.625rem;
    --sp-section: 5rem;
  }

  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__mockup {
    max-width: 340px;
  }

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

  .showcase__item,
  .showcase__item--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
  }

  .showcase__text {
    max-width: 100%;
    margin: 0 auto;
  }

  .showcase__tags {
    justify-content: center;
  }

  .tech__architecture {
    grid-template-columns: 1fr;
  }

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

  .about__content {
    grid-template-columns: 1fr;
  }

  .about__text-block {
    max-width: 100%;
    text-align: center;
  }

  .about__quote {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--clr-primary);
    padding-top: var(--sp-lg);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --fs-hero: 2.25rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.375rem;
    --sp-section: 3.5rem;
  }

  .container {
    padding: 0 var(--sp-md);
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(8, 7, 13, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: calc(var(--nav-height) + var(--sp-xl)) var(--sp-xl) var(--sp-xl);
    transition: right var(--duration-base) var(--ease-smooth);
    border-left: 1px solid var(--clr-surface-border);
    gap: var(--sp-sm);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    font-size: var(--fs-base);
    padding: var(--sp-sm) 0;
    width: 100%;
  }

  .navbar__toggle {
    display: flex;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--sp-lg);
    align-items: center;
  }

  .hero__mockup {
    max-width: 280px;
  }

  .tech__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .about__values {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn--lg {
    width: 100%;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  :root {
    --fs-hero: 1.875rem;
  }

  .tech__metrics {
    grid-template-columns: 1fr;
  }
}


/* ── Print styles ───────────────────────────────────────────── */
@media print {
  .navbar,
  .hero__bg,
  .hero__visual,
  .cta-banner {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
