/* =============================================
   JYG Marketing - Custom Design System
   Computer Systems Design & IT Services
   ============================================= */

:root {
  --deep-navy: #0A1929;
  --navy: #0F2744;
  --slate: #1A3550;
  --steel: #1E3D5C;
  --teal: #0D95A8;
  --teal-bright: #10B5CB;
  --coral: #E85D3F;
  --coral-light: #F0715A;
  --gold: #D4A853;
  --gold-light: #E8C46E;
  --white: #F2F6FA;
  --off-white: #E6ECF3;
  --light-gray: #B0C0D0;
  --mid-gray: #7088A0;
  --dark-text: #0A1929;
  --body-bg: #F2F6FA;
  --card-bg: #FFFFFF;
  --border-subtle: #D8E2EC;
  --shadow-sm: 0 2px 8px rgba(10, 25, 41, 0.08);
  --shadow-md: 0 6px 24px rgba(10, 25, 41, 0.12);
  --shadow-lg: 0 12px 40px rgba(10, 25, 41, 0.18);
  --shadow-xl: 0 20px 60px rgba(10, 25, 41, 0.24);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
}

*,
*::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-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-text);
  background-color: var(--body-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--deep-navy);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
li {
  margin-bottom: 0.5rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background-color: var(--teal-bright);
  border-color: var(--teal-bright);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background-color: var(--white);
  color: var(--deep-navy);
  transform: translateY(-2px);
}
.btn-gold {
  background-color: var(--gold);
  color: var(--deep-navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-coral {
  background-color: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-coral:hover {
  background-color: var(--coral-light);
  border-color: var(--coral-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--deep-navy);
  border-bottom: 1px solid rgba(242, 246, 250, 0.08);
  transition: all var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-xl);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}
.nav-links a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--light-gray);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background-color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  border-radius: 3px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================
   HOMEPAGE - HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--deep-navy);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-geometry {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-geometry .polygon-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 120%;
  background: linear-gradient(160deg, var(--teal) 0%, var(--navy) 60%);
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%, 10% 40%);
  opacity: 0.3;
}
.hero-bg-geometry .polygon-2 {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 40%;
  height: 60%;
  background: linear-gradient(200deg, var(--coral) 0%, transparent 70%);
  clip-path: polygon(20% 0%, 100% 10%, 80% 100%, 0% 90%);
  opacity: 0.15;
}
.hero-bg-geometry .grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 246, 250, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 246, 250, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-bg-geometry .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-bg-geometry .orb-1 {
  width: 400px;
  height: 400px;
  background-color: var(--teal);
  top: -100px;
  left: -100px;
  opacity: 0.12;
}
.hero-bg-geometry .orb-2 {
  width: 300px;
  height: 300px;
  background-color: var(--coral);
  bottom: -80px;
  right: 5%;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-text h1 .highlight {
  display: inline;
  background: linear-gradient(135deg, var(--teal-bright), var(--coral-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .hero-subtitle {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: 420px;
}
.hero-card-stack .stack-card {
  position: absolute;
  background-color: var(--navy);
  border: 1px solid rgba(242, 246, 250, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-slow);
}
.hero-card-stack .stack-card:nth-child(1) {
  top: 0;
  left: 0;
  width: 85%;
  height: 55%;
  z-index: 3;
  background-color: var(--steel);
}
.hero-card-stack .stack-card:nth-child(2) {
  top: 25%;
  left: 10%;
  width: 80%;
  height: 50%;
  z-index: 2;
  background-color: var(--slate);
}
.hero-card-stack .stack-card:nth-child(3) {
  top: 50%;
  left: 5%;
  width: 85%;
  height: 45%;
  z-index: 1;
  background-color: var(--navy);
}
.stack-card .card-metric {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal-bright);
}
.stack-card .card-label {
  font-size: 0.9rem;
  color: var(--light-gray);
  margin-top: 0.25rem;
}
.stack-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--mid-gray);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-scroll-indicator .scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--mid-gray), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* =============================================
   HOMEPAGE - VALUES STRIP
   ============================================= */
.values-strip {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
}
.values-strip .values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.value-item {
  text-align: center;
  padding: 1rem;
}
.value-item .value-number {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.value-item .value-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-navy);
}

/* =============================================
   HOMEPAGE - SERVICES CASCADE
   ============================================= */
.services-section {
  padding: 6rem 0;
  background-color: var(--body-bg);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 149, 168, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  background-color: rgba(13, 149, 168, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--mid-gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.services-cascade {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.service-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.service-card:nth-child(odd) {
  transform: translateY(-20px);
}
.service-card:nth-child(even) {
  transform: translateY(20px);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card:nth-child(even):hover {
  transform: translateY(12px);
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.service-card:hover::after {
  transform: scaleX(1);
}
.service-card:nth-child(2)::after { background: linear-gradient(90deg, var(--coral), var(--gold)); }
.service-card:nth-child(3)::after { background: linear-gradient(90deg, var(--gold), var(--teal)); }
.service-card:nth-child(4)::after { background: linear-gradient(90deg, var(--teal-bright), var(--coral)); }
.service-card:nth-child(5)::after { background: linear-gradient(90deg, var(--gold-light), var(--teal)); }
.service-card:nth-child(6)::after { background: linear-gradient(90deg, var(--coral-light), var(--gold)); }

.service-card .service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--body-bg);
  border-radius: var(--radius-md);
}
.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}
.service-card p {
  color: var(--mid-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.65;
}

/* =============================================
   HOMEPAGE - TECHNOLOGY CONSTELLATION
   ============================================= */
.tech-section {
  padding: 6rem 0;
  background-color: var(--deep-navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.tech-section .section-header h2 {
  color: var(--white);
}
.tech-section .section-header p {
  color: var(--light-gray);
}

.tech-constellation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
}
.tech-constellation::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(13, 149, 168, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232, 93, 63, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.tech-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background-color: var(--navy);
  border: 1px solid rgba(242, 246, 250, 0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.tech-node:hover {
  background-color: var(--slate);
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(13, 149, 168, 0.2);
}
.tech-node .tech-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.tech-node .tech-domain {
  font-size: 0.8rem;
  color: var(--teal-bright);
  font-weight: 500;
}

/* =============================================
   HOMEPAGE - ABOUT SECTION
   ============================================= */
.about-section {
  padding: 6rem 0;
  background-color: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-shape {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: var(--radius-xl);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-shape::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--teal-bright), var(--coral), var(--gold));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.3;
}
.about-shape-inner {
  text-align: center;
  color: var(--white);
  padding: 2rem;
}
.about-shape-inner .about-big-num {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.about-shape-inner .about-big-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--light-gray);
}

.about-text h2 {
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--mid-gray);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.about-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--deep-navy);
}
.about-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =============================================
   HOMEPAGE - PROCESS TIMELINE
   ============================================= */
.process-section {
  padding: 6rem 0;
  background-color: var(--body-bg);
  position: relative;
}
.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--teal), var(--coral), var(--gold));
  transform: translateX(-50%);
  border-radius: 3px;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}
.timeline-step:nth-child(odd) {
  flex-direction: row;
}
.timeline-step:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background-color: var(--white);
  border: 3px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.timeline-step:nth-child(even) .timeline-marker {
  border-color: var(--coral);
  color: var(--coral);
}

.timeline-content {
  width: 42%;
  background-color: var(--card-bg);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.timeline-step:nth-child(odd) .timeline-content {
  margin-right: auto;
}
.timeline-step:nth-child(even) .timeline-content {
  margin-left: auto;
}
.timeline-content h4 {
  margin-bottom: 0.5rem;
}
.timeline-content p {
  color: var(--mid-gray);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* =============================================
   HOMEPAGE - CTA SECTION
   ============================================= */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(160deg, var(--deep-navy) 0%, var(--navy) 50%, var(--slate) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(13, 149, 168, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-section p {
  color: var(--light-gray);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}
.cta-section .btn {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: var(--deep-navy);
  color: var(--light-gray);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}
.footer-col p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer-col ul a {
  color: var(--light-gray);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-col ul a:hover {
  color: var(--teal-bright);
}
.footer-bottom {
  border-top: 1px solid rgba(242, 246, 250, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--mid-gray);
}
.footer-bottom a {
  color: var(--mid-gray);
}
.footer-bottom a:hover {
  color: var(--white);
}

/* =============================================
   PAGE BANNER (Privacy / Terms)
   ============================================= */
.page-banner {
  padding: 8rem 0 4rem;
  background: linear-gradient(160deg, var(--deep-navy), var(--navy));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(13, 149, 168, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, rgba(232, 93, 63, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-banner h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.page-banner .banner-meta {
  color: var(--light-gray);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* =============================================
   PRIVACY PAGE - SIDE NAV LAYOUT
   ============================================= */
.privacy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
  position: relative;
}

.privacy-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.privacy-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 3px solid var(--border-subtle);
}
.privacy-toc li {
  margin-bottom: 0;
}
.privacy-toc a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--mid-gray);
  font-weight: 500;
  border-left: 3px solid transparent;
  margin-left: -3px;
  transition: all var(--transition);
}
.privacy-toc a:hover,
.privacy-toc a.active {
  color: var(--teal);
  border-left-color: var(--teal);
  background-color: rgba(13, 149, 168, 0.04);
}

.privacy-content {
  min-width: 0;
}
.privacy-section {
  margin-bottom: 3.5rem;
  padding: 2.5rem;
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.privacy-section:target {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--teal);
}
.privacy-section .section-num {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 5rem;
  font-weight: 800;
  color: #E9F6F8;
  line-height: 1;
  pointer-events: none;
}
.privacy-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--deep-navy);
  position: relative;
  z-index: 1;
}
.privacy-section p {
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.privacy-section ul {
  color: var(--mid-gray);
  line-height: 1.8;
}
.privacy-section ul li {
  margin-bottom: 0.5rem;
}

/* =============================================
   TERMS PAGE - MODULAR CARD GRID
   ============================================= */
.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 0 5rem;
}

.terms-card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.terms-card:hover {
  box-shadow: var(--shadow-md);
}
.terms-card:nth-child(odd) {
  border-top: 4px solid var(--teal);
}
.terms-card:nth-child(even) {
  border-top: 4px solid var(--coral);
}
.terms-card .card-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 1rem;
}
.terms-card:nth-child(even) .card-icon-label {
  color: var(--coral);
}
.terms-card h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.terms-card p {
  color: var(--mid-gray);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.terms-card ul {
  color: var(--mid-gray);
  line-height: 1.75;
}
.terms-card ul li {
  margin-bottom: 0.4rem;
}
.terms-card-full {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy), var(--deep-navy));
  color: var(--white);
  border-top: 4px solid var(--gold);
}
.terms-card-full h2 {
  color: var(--white);
}
.terms-card-full p {
  color: var(--light-gray);
}
.terms-card-full ul {
  color: var(--light-gray);
}
.terms-card-full .card-icon-label {
  color: var(--gold);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-text .hero-subtitle {
    max-width: none;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-card-stack {
    height: 320px;
    max-width: 500px;
    margin: 0 auto;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .services-cascade {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    transform: none;
  }
  .service-card:nth-child(odd):hover,
  .service-card:nth-child(even):hover {
    transform: translateY(-6px);
  }
  .values-strip .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  .privacy-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .privacy-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-left: none;
  }
  .privacy-toc a {
    border-left: none;
    margin-left: 0;
    padding: 0.4rem 0.8rem;
    background-color: var(--body-bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
  }
  .privacy-toc a.active {
    background-color: var(--teal);
    color: var(--white);
  }
  .terms-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--deep-navy);
    flex-direction: column;
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid rgba(242, 246, 250, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-card-stack {
    height: 260px;
  }
  .services-cascade {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .tech-constellation {
    gap: 1rem;
  }
  .tech-node {
    padding: 1rem 1.25rem;
  }
  .process-timeline::before {
    left: 24px;
  }
  .timeline-step,
  .timeline-step:nth-child(odd),
  .timeline-step:nth-child(even) {
    flex-direction: row;
  }
  .timeline-marker {
    left: 24px;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .timeline-content {
    width: calc(100% - 70px);
    margin-left: 70px !important;
    margin-right: 0 !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .container {
    padding: 0 1.25rem;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .page-banner h1 { font-size: 2rem; }
}
