/* ============================================================
   Kuo Hui — Computer Systems Design & Services
   Unique Palette: Deep Void + Electric Cyan + Violet + Amber
   Mobile-First — min-width breakpoints at 640, 1024, 1280
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* palette */
  --void:        #080816;
  --void-light:  #0e0e22;
  --surface:     #151530;
  --surface-alt: #1c1c3a;
  --border-subtle: #222244;

  --cyan:        #00e0ff;
  --cyan-dim:    #0099b3;
  --violet:      #7c5cff;
  --violet-dim:  #5a3fd4;
  --amber:       #ff7a1a;
  --amber-hover: #ff8f40;
  --rose:        #ff3b6e;

  --text:        #eaeaef;
  --text-muted:  #9494b0;
  --text-dim:    #6a6a88;

  /* typography */
  --font-body:   'Segoe UI', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --fs-xs:   clamp(0.69rem, 0.5vw + 0.6rem, 0.79rem);
  --fs-sm:   clamp(0.83rem, 0.6vw + 0.72rem, 0.94rem);
  --fs-base: clamp(1rem,   0.8vw + 0.84rem, 1.15rem);
  --fs-md:   clamp(1.2rem, 1.0vw + 0.90rem, 1.45rem);
  --fs-lg:   clamp(1.55rem, 1.6vw + 1.1rem, 2.1rem);
  --fs-xl:   clamp(2.0rem, 2.8vw + 1.2rem, 3.2rem);
  --fs-2xl:  clamp(2.6rem, 4.5vw + 1.3rem, 4.8rem);

  /* spacing */
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.2rem;
  --space-2xl: 5rem;

  /* layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* shadows */
  --shadow-cyan:  0 0 30px rgba(0, 224, 255, 0.15);
  --shadow-violet: 0 0 30px rgba(124, 92, 255, 0.15);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-btn:    0 0 18px rgba(255, 122, 26, 0.35);

  /* transitions */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* focus */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* selection */
::selection {
  background: var(--violet);
  color: #fff;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-2xl);
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
}

.section-title {
  margin-bottom: var(--space-md);
  color: #fff;
}

.section-desc {
  color: var(--text-muted);
  max-width: 620px;
  font-size: var(--fs-md);
  line-height: 1.7;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding-block: var(--space-sm);
  transition: background 0.35s var(--ease-smooth),
              box-shadow 0.35s var(--ease-smooth);
}

.site-header.scrolled {
  background: rgba(8, 8, 22, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  height: 56px;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: var(--fs-md);
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

/* desktop nav */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: width 0.25s var(--ease-smooth);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  display: none;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  transition: background 0.25s, box-shadow 0.25s;
}

.nav-cta:hover {
  background: var(--amber-hover);
  box-shadow: var(--shadow-btn);
}

/* hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}

.mobile-menu a:hover { color: #fff; }

.mobile-cta {
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-md);
  padding: 0.7rem 2rem;
  border-radius: var(--radius-full);
  margin-top: var(--space-md);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 6rem 4rem;
  overflow: hidden;
}

/* background geometric shapes */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}

.hero-orb--cyan {
  width: 420px; height: 420px;
  background: var(--cyan);
  top: -100px; right: -120px;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--violet {
  width: 320px; height: 320px;
  background: var(--violet);
  bottom: -80px; left: -80px;
  animation: orbFloat 10s ease-in-out 2s infinite;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,224,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: var(--fs-md);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(255, 122, 26, 0.5);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--shadow-cyan);
}

.btn-ghost {
  color: var(--cyan);
  padding: 0.45rem 0;
  border-radius: 0;
  border-bottom: 2px solid var(--cyan);
}

.btn-ghost:hover {
  color: #fff;
  border-color: #fff;
}

/* hero visual element (abstract circuit svg) */
.hero-visual {
  display: none;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--void-light);
  position: relative;
}

.services .section-label,
.services .section-title,
.services .section-desc {
  text-align: center;
}

.services .section-desc {
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 0;
}

.service-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 0.04;
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-subtle);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
  color: #fff;
}

.service-card p {
  position: relative;
  z-index: 1;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-inner {
  width: 70%;
  height: 70%;
  position: relative;
}

.about-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.about-node--1 { top: 10%; left: 20%; }
.about-node--2 { top: 30%; left: 60%; animation: nodePulse 2s ease-in-out 0.3s infinite; }
.about-node--3 { top: 60%; left: 30%; animation: nodePulse 2s ease-in-out 0.7s infinite; }
.about-node--4 { top: 70%; left: 70%; }
.about-node--5 { top: 45%; left: 45%; animation: nodePulse 2s ease-in-out 0.5s infinite; }

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 8px var(--cyan); }
  50%      { box-shadow: 0 0 22px var(--cyan), 0 0 40px var(--violet); }
}

.about-edge {
  position: absolute;
  background: var(--border-subtle);
  height: 1px;
  transform-origin: left center;
}

.about-edge--1 { top: 12%; left: 20%; width: 40%; transform: rotate(15deg); }
.about-edge--2 { top: 28%; left: 42%; width: 25%; transform: rotate(-35deg); }
.about-edge--3 { top: 58%; left: 28%; width: 35%; transform: rotate(25deg); }
.about-edge--4 { top: 44%; left: 44%; width: 22%; transform: rotate(-10deg); }

.about-text .section-label { margin-bottom: var(--space-sm); }

.about-text h2 {
  margin-bottom: var(--space-md);
  color: #fff;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
  font-size: var(--fs-sm);
}

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

.about-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.about-meta-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  border: 1px solid var(--border-subtle);
}

.about-meta-item h4 {
  font-size: var(--fs-sm);
  color: #fff;
  margin-bottom: 2px;
}

.about-meta-item p {
  font-size: var(--fs-xs);
  margin-bottom: 0;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--void-light);
}

.process .section-label,
.process .section-title,
.process .section-desc {
  text-align: center;
}

.process .section-desc {
  margin-inline: auto;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  padding-top: calc(var(--space-xl) + 22px);
  transition: border-color 0.35s, box-shadow 0.35s;
}

.process-step:hover {
  border-color: var(--violet);
  box-shadow: var(--shadow-violet);
}

.process-step::after {
  counter-increment: step;
  content: '0' counter(step);
  position: absolute;
  top: -18px;
  left: var(--space-xl);
  background: var(--violet);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--fs-sm);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
}

.process-step h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
  color: #fff;
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.industry-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color 0.35s, transform 0.35s;
}

.industry-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.industry-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.industry-card h4 {
  font-size: var(--fs-sm);
  color: #fff;
  font-weight: 600;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: linear-gradient(135deg, var(--surface), var(--void-light));
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-info h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  border: 1px solid var(--border-subtle);
}

.contact-detail h4 {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-detail p,
.contact-detail a {
  font-size: var(--fs-base);
  color: #fff;
  font-weight: 600;
  transition: color 0.25s;
}

.contact-detail a:hover {
  color: var(--cyan);
}

/* form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--void-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: var(--fs-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.1);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: var(--fs-base);
}

.form-feedback {
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  min-height: 1.5em;
}

.form-feedback.success { color: #00e676; }
.form-feedback.error   { color: var(--rose); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  text-align: center;
  padding-block: var(--space-2xl);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,224,255,0.06), rgba(124,92,255,0.06));
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--void);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo { margin-bottom: var(--space-md); }

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: var(--fs-sm);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.footer-bottom nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom nav a {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  transition: color 0.25s;
}

.footer-bottom nav a:hover { color: var(--cyan); }

/* ============================================================
   POLICY / TERMS PAGES
   ============================================================ */
.policy-page {
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: var(--space-2xl);
  background: var(--void-light);
}

.policy-page .container {
  max-width: 800px;
}

.policy-page h1 {
  font-size: var(--fs-2xl);
  color: #fff;
  margin-bottom: var(--space-sm);
}

.policy-page .last-updated {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--cyan);
  margin-bottom: var(--space-xl);
}

.policy-page h2 {
  font-size: var(--fs-lg);
  color: #fff;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.policy-page p,
.policy-page li {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1rem); /* 16px minimum */
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.policy-page ul,
.policy-page ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.policy-page ul { list-style: disc; }
.policy-page ol { list-style: decimal; }

.policy-page a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page a:hover { color: #fff; }

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color 0.25s;
}

.policy-back:hover { color: var(--cyan); }

/* ============================================================
   RESPONSIVE — 640px
   ============================================================ */
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .about-meta { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
  .mobile-menu { display: none; }

  .hero {
    padding-block: 6rem 6rem;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
  }

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

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .industries-grid { grid-template-columns: repeat(6, 1fr); }
  .about-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr 1.2fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — 1280px
   ============================================================ */
@media (min-width: 1280px) {
  :root {
    --space-2xl: 6rem;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

/* stagger children */
.stagger > * { opacity: 0; }
.stagger.visible > *:nth-child(1) { animation: fadeInUp 0.5s 0.05s var(--ease-out) both; }
.stagger.visible > *:nth-child(2) { animation: fadeInUp 0.5s 0.15s var(--ease-out) both; }
.stagger.visible > *:nth-child(3) { animation: fadeInUp 0.5s 0.25s var(--ease-out) both; }
.stagger.visible > *:nth-child(4) { animation: fadeInUp 0.5s 0.35s var(--ease-out) both; }
.stagger.visible > *:nth-child(5) { animation: fadeInUp 0.5s 0.45s var(--ease-out) both; }
.stagger.visible > *:nth-child(6) { animation: fadeInUp 0.5s 0.55s var(--ease-out) both; }
