/* ========================================
   Zen Life Labs - Design System & Styles
   ======================================== */

:root {
  --navy-900: #0A1628;
  --navy-800: #0F1E36;
  --navy-700: #132442;
  --navy-600: #1A3154;
  --navy-500: #243F6B;
  --teal: #00C9A7;
  --teal-dark: #00A88C;
  --teal-light: #00E8C1;
  --blue-accent: #0EA5E9;
  --blue-dark: #0284C7;
  --gold: #F0B90B;
  --gold-light: #FCD34D;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-50: #F1F5F9;
  --gray-100: #E2E8F0;
  --gray-200: #CBD5E1;
  --gray-300: #94A3B8;
  --gray-400: #64748B;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1E293B;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-on-dark: #F8FAFC;
  --text-muted-on-dark: #94A3B8;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 20px 48px rgba(10, 22, 40, 0.16);
  --transition: 0.25s ease;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--teal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-900);
}

h1 { font-size: 3rem; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

/* ---- NAVIGATION ---- */
.nav {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--teal);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--blue-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy-900);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted-on-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--teal);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy-900);
  color: var(--text-muted-on-dark);
  padding: 4rem 2rem 2rem;
  margin-top: 0;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--navy-600);
}
.footer-brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted-on-dark);
}
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--text-muted-on-dark);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--teal);
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom a {
  color: var(--teal-light);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-body);
  line-height: 1;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--teal-light);
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 201, 167, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--navy-900);
}
.btn-white {
  background: var(--white);
  color: var(--navy-900);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* ---- SECTION ---- */
.section {
  padding: 5rem 2rem;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  background: rgba(0, 201, 167, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 40%, #0A2E3F 100%);
  color: var(--text-on-dark);
  padding: 7rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(0, 201, 167, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--off-white), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-content {
  max-width: 580px;
}
.hero-badge {
  display: inline-block;
  background: rgba(0, 201, 167, 0.15);
  border: 1px solid rgba(0, 201, 167, 0.3);
  color: var(--teal-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 24px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero-title span {
  color: var(--teal);
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted-on-dark);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mockup {
  background: var(--navy-600);
  border: 2px solid var(--navy-500);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  width: 100%;
  max-width: 500px;
}
.hero-mockup-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.hero-mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.hero-mockup-dot:nth-child(1) { background: #FF5F57; }
.hero-mockup-dot:nth-child(2) { background: #FFBD2E; }
.hero-mockup-dot:nth-child(3) { background: #28CA41; }
.hero-mockup-line {
  height: 8px;
  background: var(--navy-500);
  border-radius: 4px;
  margin-bottom: 10px;
}
.hero-mockup-line.short { width: 65%; }
.hero-mockup-line.medium { width: 80%; }
.hero-mockup-line.long { width: 92%; }
.hero-mockup-line.teal {
  background: var(--teal);
  width: 50%;
  opacity: 0.8;
}
.hero-mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
  margin-top: 1.5rem;
}
.hero-mockup-bar {
  flex: 1;
  background: linear-gradient(to top, var(--teal), var(--blue-accent));
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
}
.hero-mockup-bar:nth-child(1) { height: 60%; }
.hero-mockup-bar:nth-child(2) { height: 85%; }
.hero-mockup-bar:nth-child(3) { height: 50%; }
.hero-mockup-bar:nth-child(4) { height: 95%; }
.hero-mockup-bar:nth-child(5) { height: 72%; }
.hero-mockup-bar:nth-child(6) { height: 88%; }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--teal);
  font-weight: 700;
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---- STATS ---- */
.stats {
  background: var(--navy-900);
  padding: 4rem 2rem;
  position: relative;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--text-muted-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---- PROCESS ---- */
.process {
  background: var(--white);
}
.process-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--gray-100);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--gray-100);
  transition: all var(--transition);
}
.process-step:hover .process-num {
  border-color: var(--teal);
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(0, 201, 167, 0.1);
}
.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--navy-900);
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- CTA SECTION ---- */
.cta {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 201, 167, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted-on-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ---- CONTACT BAR ---- */
.contact-bar {
  max-width: var(--max-width);
  margin: -3rem auto 0;
  position: relative;
  z-index: 10;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border: 1px solid var(--gray-100);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--teal);
  flex-shrink: 0;
}
.contact-item h4 {
  font-size: 0.95rem;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}
.contact-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   PRIVACY / LEGAL PAGES
   ======================================== */
.legal-hero {
  background: var(--navy-900);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 4px solid var(--teal);
}
.legal-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}
.legal-hero p {
  color: var(--text-muted-on-dark);
  font-size: 1.05rem;
}
.legal-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}
.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.legal-toc h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.legal-toc a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.legal-toc a:hover,
.legal-toc a.active {
  background: var(--navy-900);
  color: var(--teal);
  border-left-color: var(--teal);
}
.legal-content {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 3rem;
}
.legal-content h2 {
  font-size: 1.8rem;
  color: var(--navy-900);
  margin-bottom: 1rem;
  margin-top: 3rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-100);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 1.2rem;
  color: var(--navy-700);
  margin: 1.5rem 0 0.75rem;
}
.legal-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content ul {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
}
.legal-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}
.legal-content .highlight-box {
  background: var(--navy-900);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--teal);
}
.legal-content .highlight-box p {
  color: var(--text-muted-on-dark);
  margin-bottom: 0.5rem;
}
.legal-content .highlight-box strong {
  color: var(--teal);
}

/* ========================================
   TERMS OF SERVICE - Unique Layout
   ======================================== */
.tos-hero {
  background: linear-gradient(135deg, var(--navy-900), #0C2548);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.tos-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--blue-accent));
}
.tos-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}
.tos-hero p {
  color: var(--text-muted-on-dark);
  font-size: 1.05rem;
}
.tos-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.tos-section {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  margin-bottom: 2rem;
  position: relative;
  transition: box-shadow var(--transition);
}
.tos-section:hover {
  box-shadow: var(--shadow-md);
}
.tos-section-num {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(240, 185, 11, 0.35);
}
.tos-section h2 {
  font-size: 1.5rem;
  color: var(--navy-900);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding-bottom: 0;
  border-bottom: none;
}
.tos-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.tos-section ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}
.tos-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.error-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.error-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 201, 167, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 167, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.error-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.error-code {
  font-size: 12rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--teal), var(--blue-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 24px rgba(0, 201, 167, 0.3));
}
.error-divider {
  width: 80px;
  height: 4px;
  background: var(--teal);
  margin: 1.5rem auto;
  border-radius: 2px;
}
.error-title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}
.error-desc {
  font-size: 1.1rem;
  color: var(--text-muted-on-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.error-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.error-visual {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}
.error-circuit {
  width: 200px;
  height: 200px;
  position: relative;
}
.error-circuit-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(0, 201, 167, 0.5);
}
.error-circuit-node:nth-child(1) { top: 10%; left: 50%; }
.error-circuit-node:nth-child(2) { top: 30%; left: 20%; }
.error-circuit-node:nth-child(3) { top: 30%; left: 80%; }
.error-circuit-node:nth-child(4) { top: 60%; left: 40%; }
.error-circuit-node:nth-child(5) { top: 60%; left: 60%; }
.error-circuit-node:nth-child(6) { top: 90%; left: 50%; }
.error-circuit-line {
  position: absolute;
  background: rgba(0, 201, 167, 0.25);
}
.error-circuit-line.h { height: 2px; }
.error-circuit-line.v { width: 2px; }
.error-circuit-line:nth-child(7)  { top: 11%; left: 20%; width: 30%; }
.error-circuit-line:nth-child(8)  { top: 31%; left: 20%; width: 60%; }
.error-circuit-line:nth-child(9)  { top: 61%; left: 40%; width: 20%; }
.error-circuit-line:nth-child(10) { top: 61%; left: 20px; height: 29%; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-bar {
    grid-template-columns: 1fr;
  }
  .legal-body {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .hero-title { font-size: 2.2rem; }
  .hero { padding: 4rem 1.5rem 3rem; min-height: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 3rem 1.5rem; }
  .legal-content { padding: 1.5rem; }
  .tos-section { padding: 2rem 1.5rem; }
  .tos-section-num { left: 15px; }
  .nav-inner { padding: 0 1rem; }
  .nav-links { gap: 1.5rem; }
  .error-code { font-size: 7rem; }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}
