/* =============================================
   NODEMINT — STYLESHEET
   Colors: Graphite #1F2933 | Dark Teal #0E3D3D
            Mint #A7F3D0 | Warm Gray #F2F4F5
============================================= */

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

:root {
  --graphite:   #1F2933;
  --dark-teal:  #0E3D3D;
  --mint:       #A7F3D0;
  --mint-dim:   #6EDCB0;
  --warm-gray:  #F2F4F5;
  --white:      #ffffff;
  --text-muted: #6B7A8D;
  --border:     rgba(31,41,51,0.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

/* ── DARK MODE ── */
[data-theme="dark"] {
  --graphite:   #f0f4f8;
  --warm-gray:  #1a2230;
  --white:      #111827;
  --text-muted: #94a3b8;
  --border:     rgba(255,255,255,0.08);
  --dark-teal:  #4ecda4;
}
[data-theme="dark"] body { background: #111827; color: #f0f4f8; }
[data-theme="dark"] .nav.scrolled { background: rgba(17,24,39,0.95); }
[data-theme="dark"] .nav-mobile { background: rgba(17,24,39,0.97); }
[data-theme="dark"] .service-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .faq-item { background: #1e2a3a; }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea { background: #1e2a3a; color: #f0f4f8; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .portfolio-card { background: #1e2a3a; }
[data-theme="dark"] .client-logo-wrap { background: #1e2a3a; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .client-logo-wrap--light { background: #2a3545; }
[data-theme="dark"] .stack-item { background: #1e2a3a; }
[data-theme="dark"] .hero { background: linear-gradient(160deg,#111827 0%,#0d1f2d 50%,#0a1628 100%); }
[data-theme="dark"] .page-loader { background: #111827; }

/* Sections that must stay dark — their backgrounds use vars that flip in dark mode */
[data-theme="dark"] .footer { background: #0d1117; }
[data-theme="dark"] .cookie-banner { background: #161f2e; }
[data-theme="dark"] .about { background: #0d1a2a; color: #ffffff; }
[data-theme="dark"] .stats { background: #0E3D3D; }
[data-theme="dark"] .cta-banner { background: linear-gradient(135deg, #0E3D3D 0%, #0a2a2a 100%); }
[data-theme="dark"] .cta-inner .btn-primary { background: var(--mint); color: #1F2933; }
[data-theme="dark"] .techstack { background: #111827; }
[data-theme="dark"] .faq { background: #0f1923; }

/* Nav logo — swap between light and dark SVG */
.nav-logo .logo-dark { display: none; }
[data-theme="dark"] .nav-logo .logo-light { display: none; }
[data-theme="dark"] .nav-logo .logo-dark { display: block; }

/* Process step number circles */
[data-theme="dark"] .step-num { background: #1F2933; }

/* About section "Work With Us" button — dark text on mint bg */
[data-theme="dark"] .about-text .btn-primary { color: #1F2933; }

/* CTA banner heading + subtext */
[data-theme="dark"] .cta-inner h2 { color: #ffffff; }
[data-theme="dark"] .cta-inner p { color: rgba(255,255,255,0.65); }

/* Logos with dark elements need a light card bg in dark mode */
[data-theme="dark"] .client-logo-wrap--light-bg { background: #e8edf2; border-color: rgba(0,0,0,0.08); }

body {
  font-family: var(--font);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── UTILITY ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #0E3D3D 0%, #A7F3D0 60%, #6EDCB0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-teal);
  background: rgba(14,61,61,0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-tag.light {
  color: var(--mint);
  background: rgba(167,243,208,0.15);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}
.section-header h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-muted); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--graphite);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover { background: var(--dark-teal); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,61,61,0.25); }
.btn-primary svg, .btn-ghost svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--graphite);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(31,41,51,0.15);
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--dark-teal); color: var(--dark-teal); }

.btn-nav {
  display: inline-block;
  background: var(--graphite);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.btn-nav:hover { background: var(--dark-teal); }

.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-full {
  height: 36px;
  width: auto;
  display: block;
}
.logo-full--footer {
  filter: brightness(0) invert(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--dark-teal); }

.dark-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--graphite);
  transition: var(--transition);
  flex-shrink: 0;
}
.dark-toggle:hover { border-color: var(--dark-teal); color: var(--dark-teal); }
.dark-toggle svg { width: 16px; height: 16px; }
.dark-toggle .icon-moon { display: none; }
[data-theme="dark"] .dark-toggle .icon-sun  { display: none; }
[data-theme="dark"] .dark-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--dark-teal); }
.nav-mobile a:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #ffffff 0%, #F8FFFE 50%, #F2F4F5 100%);
  overflow: hidden;
  padding-top: 68px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-teal);
  border: 1.5px solid rgba(14,61,61,0.2);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease forwards;
}

.hero-headline {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  overflow-wrap: break-word;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-pillars {
  display: flex;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.8s 0.4s ease both;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 20px;
}
.pillar:first-child { padding-left: 0; }
.pillar svg { width: 18px; height: 18px; color: var(--dark-teal); }

.pillar-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.8s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollBob 2s ease-in-out infinite;
}

/* ── SERVICES ── */
.services {
  padding: 120px 0;
  background: var(--white);
}

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

.service-card {
  padding: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: default;
  background: var(--white);
}
.service-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(14,61,61,0.08);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(14,61,61,0.06), rgba(167,243,208,0.15));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--dark-teal);
}
.service-icon svg { width: 30px; height: 30px; }

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--graphite);
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.service-tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-teal);
  background: rgba(14,61,61,0.07);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── ABOUT ── */
.about {
  padding: 120px 0;
  background: var(--graphite);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-bg-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nodes-svg { width: 100%; height: 100%; }

.about .section-tag { color: var(--mint); background: rgba(167,243,208,0.12); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #ffffff;
}

.about-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text .btn-primary {
  background: var(--mint);
  color: var(--graphite);
  margin-top: 8px;
}
.about-text .btn-primary:hover { background: var(--mint-dim); box-shadow: 0 8px 24px rgba(167,243,208,0.3); }

.about-pillars { display: flex; flex-direction: column; gap: 24px; }

.pillar-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  transition: var(--transition);
}
.pillar-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(167,243,208,0.25);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  background: rgba(167,243,208,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--mint);
}
.pillar-icon svg { width: 20px; height: 20px; }

.pillar-card h4 { font-size: 17px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.pillar-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ── PROCESS ── */
.process {
  padding: 120px 0;
  background: var(--warm-gray);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--mint);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--graphite);
}
.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--dark-teal), var(--mint));
  margin-top: 27px;
  opacity: 0.3;
}

/* ── PORTFOLIO ── */
.portfolio {
  padding: 120px 0;
  background: var(--warm-gray);
}

.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.portfolio-card {
  background: var(--white);
  border-radius: 24px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}
.portfolio-card:hover {
  box-shadow: 0 24px 64px rgba(14,61,61,0.1);
  transform: translateY(-4px);
}

.portfolio-card-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  align-items: center;
}

.portfolio-info {
  padding: 56px;
}

.portfolio-client {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.portfolio-logo {
  height: 110px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  filter: contrast(1.15) saturate(1.2);
}
.portfolio-logo--dark {
  background: #1a1a2e;
  border-radius: 10px;
  padding: 8px 16px;
}

.portfolio-logo--square {
  height: 100px;
  width: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.portfolio-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.portfolio-badge--live {
  background: rgba(110,220,176,0.15);
  color: #0a7a5a;
  border: 1px solid rgba(110,220,176,0.4);
}
.portfolio-badge--done {
  background: rgba(14,61,61,0.08);
  color: var(--dark-teal);
}

.portfolio-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--graphite);
  margin-bottom: 16px;
  line-height: 1.2;
}

.portfolio-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.portfolio-tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-teal);
  background: rgba(14,61,61,0.07);
  padding: 5px 12px;
  border-radius: 100px;
}

.portfolio-card-inner--reverse {
  grid-template-columns: 380px 1fr;
}
.portfolio-card-inner--reverse .portfolio-preview {
  border-radius: 22px 0 0 22px;
}

.portfolio-preview {
  background: #0d0d0d;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 22px 22px 0;
  padding: 40px 32px;
}
.portfolio-preview--zymra { background: #111d14; }
.portfolio-preview--codo  { background: #0f2010; }
.portfolio-preview--silvery {
  background: #0a0a0a;
  border-radius: 0 22px 22px 0;
}

.portfolio-logo-large {
  width: 75%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

.phone-mockup {
  width: 200px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}
.phone-mockup::before {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  margin: 6px auto 10px;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #000;
}
.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
}

@media (max-width: 1024px) {
  .portfolio-card-inner,
  .portfolio-card-inner--reverse { grid-template-columns: 1fr; }
  .portfolio-card-inner--reverse { direction: ltr; }
  .portfolio-card-inner--reverse .portfolio-preview {
    border-radius: 0 0 22px 22px;
    order: 2;
  }
  .portfolio-card-inner--reverse .portfolio-info { order: 1; }
  .portfolio-preview,
  .portfolio-preview--silvery {
    border-radius: 0 0 22px 22px;
    min-height: 300px;
    padding: 40px;
  }
  .phone-mockup { width: 160px; }
}

@media (max-width: 768px) {
  .portfolio { padding: 80px 0; }
  .portfolio-info { padding: 32px 24px; }
  .portfolio-title { font-size: 22px; }
}

/* ── CLIENTS ── */
.clients {
  background: var(--warm-gray);
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.clients-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.client-logo-wrap {
  height: 110px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.client-logo-wrap:hover {
  box-shadow: 0 8px 24px rgba(14,61,61,0.1);
  transform: translateY(-2px);
}

.client-logo-wrap img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.client-logo-wrap--dark,
.client-logo-wrap--square {
  background: #111827;
  border-color: rgba(255,255,255,0.06);
}

.client-logo-wrap--square img {
  max-height: 90px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo-wrap { height: 90px; }
}

/* ── STATS ── */
.stats {
  padding: 80px 0;
  background: var(--dark-teal);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  divide: true;
}

.stat {
  text-align: center;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat:last-child { border-right: none; }

.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  color: var(--mint);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── CONTACT ── */
.contact {
  padding: 120px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.contact-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--graphite);
  font-weight: 500;
}
.contact-item svg { width: 20px; height: 20px; color: var(--dark-teal); flex-shrink: 0; }

.contact-form {
  background: var(--warm-gray);
  padding: 48px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--graphite); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(31,41,51,0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--graphite);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7A8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--dark-teal);
  box-shadow: 0 0 0 3px rgba(14,61,61,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #b0bec8; }

/* ── FOOTER ── */
.footer {
  background: var(--graphite);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--mint); }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  text-decoration: none;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  background: var(--mint);
  color: var(--graphite);
  transform: translateY(-3px);
}
[data-theme="dark"] .social-icon:hover { color: #1F2933; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBob {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.6); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }

  .hero-scroll { display: none; }
  .hero-ctas { margin-bottom: 40px; }
  .hero-pillars { padding-bottom: 24px; }

  .services, .about, .process, .contact { padding: 80px 0; }
  .stats { padding: 60px 0; }

  .section-header { margin-bottom: 48px; }
  .section-header p { font-size: 15px; }

  .hero-content { padding: 60px 24px; }
  .hero-headline { font-size: 42px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }

  .about-grid { gap: 40px; }

  .process-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 20px;
    border-left: 2px solid var(--border);
  }
  .step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 40px 0;
    margin-left: -29px;
  }
  .step-num { margin-bottom: 0; flex-shrink: 0; }
  .step-connector { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }

  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .services, .about, .process, .contact { padding: 64px 0; }
  .stats { padding: 48px 0; }
  .section-header { margin-bottom: 40px; }

  .hero-content { padding: 48px 16px; }
  .hero-headline { font-size: clamp(24px, 7.5vw, 34px); }
  .hero-badge { font-size: 10px; }

  .pillar { font-size: 11px; padding: 0 10px; }
  .hero-pillars { flex-wrap: wrap; gap: 12px; }
  .pillar-sep { display: none; }

  .service-card { padding: 20px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(odd) { border-right: none; }
  .stat:last-child { border-bottom: none; }

  .contact-form { padding: 20px; border-radius: 16px; }

  .logo-full { height: 30px; }
}

/* Narrow/folded phones (Galaxy Z Fold folded, older small phones) */
@media (max-width: 360px) {
  .container { padding: 0 12px; }

  .hero-content { padding: 40px 12px; }
  .hero-headline { letter-spacing: -0.02em; }
  .hero-sub { font-size: 15px; }
  .hero-badge { padding: 6px 12px; }

  .section-header h2 { font-size: 26px; }

  .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 14px; }

  .service-card { padding: 16px; }
  .service-card h3 { font-size: 17px; }

  .contact-form { padding: 16px; }

  .logo-full { height: 26px; }
}

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  animation: loaderAutoHide 0.4s ease 3s forwards;
  pointer-events: auto;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}
@keyframes loaderAutoHide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader-logo {
  width: 64px;
  height: 64px;
  animation: loaderPulse 1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.85); opacity: 0.5; }
}

/* ── SKELETON LOADER ── */
.phone-screen { position: relative; }
.phone-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 28px;
  z-index: 1;
}
.phone-screen.loaded::before { display: none; }
.phone-screen img { position: relative; z-index: 2; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--graphite);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 90;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--dark-teal); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ── WHATSAPP BUTTON ── */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition), bottom 0.4s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }
.whatsapp-btn.lift { bottom: 88px; }
.whatsapp-btn svg { width: 28px; height: 28px; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--graphite);
  z-index: 200;
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 14px; color: rgba(255,255,255,0.75); }
.cookie-inner a { color: var(--mint); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.cookie-decline {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}
.cookie-decline:hover { color: white; }

/* ── TECH STACK ── */
.techstack {
  padding: 120px 0;
  background: var(--white);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--warm-gray);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--graphite);
  transition: var(--transition);
  text-align: center;
}
.stack-item:hover {
  border-color: var(--mint);
  background: rgba(167,243,208,0.08);
  transform: translateY(-3px);
}
.stack-icon { width: 40px; height: 40px; flex-shrink: 0; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-teal) 0%, #0a2a2a 100%);
  padding: 80px 0;
}
.cta-inner {
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
}
.cta-inner .btn-primary {
  background: var(--mint);
  color: var(--graphite);
  font-size: 16px;
  padding: 16px 36px;
}
.cta-inner .btn-primary:hover { background: var(--mint-dim); }

/* ── FAQ ── */
.faq {
  padding: 120px 0;
  background: var(--warm-gray);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--mint); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--graphite);
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--dark-teal);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .techstack { padding: 80px 0; }
  .faq { padding: 80px 0; }
  .cta-banner { padding: 60px 0; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}
