/* ============================================================
   REMC Technology Solutions — "Circuit Noir" design system
   ============================================================ */

:root {
  --bg:          #0B1426;
  --bg-raise:    #111C33;
  --bg-card:     rgba(23, 35, 60, .6);
  --line:        rgba(140, 165, 210, .14);
  --line-strong: rgba(140, 165, 210, .26);
  --text:        #E8EEF9;
  --text-dim:    #9FB0CE;
  --blue:        #3B82F6;
  --blue-deep:   #1D4ED8;
  --grad:        linear-gradient(120deg, #3B82F6, #1D4ED8);
  --glow-blue:   rgba(59, 130, 246, .28);
  --accent-text: #60A5FA;
  --btn-text:    #FFFFFF;
  --ghost-bg:    rgba(23, 35, 60, .5);
  --header-bg:   rgba(11, 20, 38, .85);
  --chip-bg:     rgba(17, 28, 51, .94);
  --banner-bg:   rgba(17, 28, 51, .75);
  --alt-bg:      rgba(17, 28, 51, .6);
  --footer-bg:   rgba(8, 15, 30, .9);
  --input-bg:    rgba(8, 15, 30, .7);
  --grid-line:   rgba(140, 165, 210, .05);
  --shadow-c:    rgba(0, 0, 0, .45);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --container: 1180px;
}

/* ---------- Light theme ---------- */
html[data-theme="light"] {
  --bg:          #F7F9FC;
  --bg-raise:    #FFFFFF;
  --bg-card:     #FFFFFF;
  --line:        rgba(15, 31, 61, .10);
  --line-strong: rgba(15, 31, 61, .18);
  --text:        #0F1F3D;
  --text-dim:    #4D5E80;
  --blue:        #1D4ED8;
  --blue-deep:   #1740B0;
  --grad:        linear-gradient(120deg, #1D4ED8, #2563EB);
  --glow-blue:   rgba(29, 78, 216, .16);
  --accent-text: #1D4ED8;
  --btn-text:    #FFFFFF;
  --ghost-bg:    #FFFFFF;
  --header-bg:   rgba(247, 249, 252, .9);
  --chip-bg:     #FFFFFF;
  --banner-bg:   #FFFFFF;
  --alt-bg:      #EEF3FA;
  --footer-bg:   #0F1F3D;
  --input-bg:    #FFFFFF;
  --grid-line:   rgba(15, 31, 61, .05);
  --shadow-c:    rgba(20, 40, 90, .10);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.015em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: 10px 18px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Atmosphere ---------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 60% 40% at 80% -5%, rgba(29,78,216,.08), transparent 60%), var(--bg);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: var(--btn-text);
  box-shadow: 0 8px 22px -10px var(--glow-blue);
}
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost {
  background: var(--ghost-bg); color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-nav { padding: 10px 22px; font-size: 14.5px; }

/* Button loading state (contact form) */
.btn-spinner {
  display: none; width: 17px; height: 17px; flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: btn-spin .6s linear infinite;
}
.btn.is-loading { cursor: progress; opacity: .9; pointer-events: none; }
.btn.is-loading:hover { transform: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn:disabled { cursor: not-allowed; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-spinner { animation-duration: 1.2s; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 22px; height: 76px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--text); cursor: pointer;
  transition: border-color .25s, color .25s, transform .25s;
}
.theme-toggle:hover { border-color: var(--accent-text); color: var(--accent-text); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
html:not(.js) .theme-toggle { display: none; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  letter-spacing: .12em; color: var(--text);
}
.brand-sub {
  font-family: var(--font-body); font-size: 9.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent-text);
}

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a:not(.btn) {
  font-weight: 600; font-size: 15px; color: var(--text-dim);
  position: relative; padding: 4px 0; transition: color .2s;
}
.main-nav a:not(.btn)::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--grad); border-radius: 2px;
  transition: width .25s ease;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--text); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--blue); display: inline-block; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  margin-bottom: 24px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { font-size: 19px; color: var(--text-dim); max-width: 560px; margin-bottom: 38px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat .stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: 32px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .stat-label { font-size: 13.5px; color: var(--text-dim); font-family: var(--font-body); }

.hero-visual { position: relative; }

/* ---------- Hero panel (credibility block) ---------- */
.hero-panel { background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: 0 20px 50px -24px var(--shadow-c); }
.hp-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hp-row:last-of-type { border-bottom: 0; }
.hp-ic { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.hp-row b { display: block; font-family: var(--font-display); }
.hp-row span { color: var(--text-dim); font-size: 14px; }
.hp-foot { margin-top: 16px; font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.hp-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 17.5px; }

.section-alt {
  background: linear-gradient(180deg, transparent, var(--alt-bg) 18%, var(--alt-bg) 82%, transparent);
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  position: relative;
  scroll-margin-top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -18px var(--shadow-c);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 30px -18px var(--shadow-c);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(29,78,216,.10));
  border: 1px solid var(--line-strong);
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--accent-text); }

.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 18px; }
.service-link {
  font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .25s ease;
}
.service-link:hover { gap: 12px; }

.service-num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-body); font-size: 12px; color: var(--text-dim); opacity: .55;
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .3s;
}
.why-item:hover { border-color: var(--line-strong); }
.why-check {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(29,78,216,.12));
  border: 1px solid var(--line-strong);
  color: var(--accent-text); font-weight: 800;
}
.why-item h3 { font-size: 17.5px; margin-bottom: 6px; }
.why-item p { color: var(--text-dim); font-size: 15px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.process-step {
  position: relative; padding: 28px 24px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.process-step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--font-body); font-size: 13px; color: var(--accent-text);
  display: block; margin-bottom: 14px; letter-spacing: .2em;
}
.process-step h3 { font-size: 17.5px; margin-bottom: 8px; }
.process-step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; text-align: center;
  background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px var(--shadow-c);
  border-radius: 22px;
  padding: 72px 36px; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.cta-banner p { color: var(--text-dim); max-width: 520px; margin: 0 auto 34px; }

/* ---------- Services page ---------- */
.page-hero { padding: 170px 0 70px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); font-weight: 800; margin-bottom: 18px; }
.page-hero p { color: var(--text-dim); font-size: 18px; max-width: 620px; margin: 0 auto; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-body); font-size: 12px;
  padding: 5px 13px; border-radius: 99px;
  border: 1px solid var(--line-strong); color: var(--accent-text);
  background: rgba(59,130,246,.05);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.about-photo { position: relative; }
.about-photo img {
  border-radius: 20px; width: 100%;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -24px var(--shadow-c);
}
.about-photo::before {
  content: ''; position: absolute; inset: -14px auto auto -14px;
  width: 110px; height: 110px; border-radius: 20px 0 0 0;
  border-top: 2px solid var(--blue); border-left: 2px solid var(--blue);
  opacity: .7;
}
.about-photo::after {
  content: ''; position: absolute; inset: auto -14px -14px auto;
  width: 110px; height: 110px; border-radius: 0 0 20px 0;
  border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue);
  opacity: .7;
}
.founder-card {
  margin-top: 30px; padding: 22px 26px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.founder-card .f-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.founder-card .f-role { font-family: var(--font-body); font-size: 12.5px; color: var(--accent-text); letter-spacing: .12em; }

.about-content h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 20px; }
.about-content p { color: var(--text-dim); margin-bottom: 18px; }
.about-content p strong { color: var(--text); }

.exp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0; }
.exp-box {
  text-align: center; padding: 22px 14px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.exp-box .e-num {
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.exp-box .e-label { font-size: 13px; color: var(--text-dim); font-family: var(--font-body); }

/* Story (team voice — full width, constrained for readability) */
.about-story { max-width: 820px; margin: 0 auto; }

/* ---------- Meet the team ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 30px; margin-top: 54px;
  max-width: 920px; margin-left: auto; margin-right: auto;
}
.team-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px -34px var(--shadow-c);
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .4s ease, box-shadow .4s ease;
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 44px 90px -30px var(--shadow-c);
}

/* Media + overlaid identity */
.tc-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-raise); }
.tc-media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.team-card:hover .tc-media img { transform: scale(1.045); }
.tc-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top,
    rgba(7,13,26,.92) 0%, rgba(7,13,26,.55) 26%, rgba(7,13,26,0) 52%);
}
.tc-head {
  position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1;
}
.tc-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.12; color: #F4F8FF;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.tc-role {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 9px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  color: #BFD3F5; letter-spacing: .02em;
}
.tc-role::before {
  content: ''; width: 16px; height: 2px; border-radius: 2px;
  background: var(--grad);
}

/* Body */
.tc-body { display: flex; flex-direction: column; padding: 24px 26px 28px; flex: 1; }
.tc-bio { color: var(--text-dim); font-size: 14.5px; line-height: 1.66; margin-bottom: 22px; }
.tc-stack-label {
  display: block; font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent-text);
  margin-bottom: 12px;
}
.tc-body .tag-row { margin-top: auto; }

/* Mission / vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  padding: 36px 30px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px var(--shadow-c);
  position: relative; overflow: hidden;
}
.mv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad);
}
.mv-card h3 { font-size: 20px; margin-bottom: 12px; }
.mv-card p { color: var(--text-dim); font-size: 15.5px; }

/* Timeline */
.timeline { position: relative; padding-left: 34px; display: grid; gap: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px;
  background: var(--grad);
  opacity: .45;
}
.tl-item { position: relative; }
.tl-item::before {
  content: ''; position: absolute; left: -31px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue);
  box-shadow: 0 0 12px var(--glow-blue);
}
.tl-item .tl-date { font-family: var(--font-body); font-size: 12px; color: var(--accent-text); letter-spacing: .1em; }
.tl-item h3 { font-size: 17px; margin: 6px 0 4px; }
.tl-item p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }

.contact-info { display: grid; gap: 18px; }
.info-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 26px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px var(--shadow-c);
  transition: border-color .3s;
}
.info-card:hover { border-color: var(--line-strong); }
.info-card .service-icon { width: 46px; height: 46px; margin: 0; flex-shrink: 0; }
.info-card .service-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 16px; margin-bottom: 4px; }
.info-card a, .info-card span.val { color: var(--text-dim); font-size: 15px; transition: color .2s; }
.info-card a:hover { color: var(--accent-text); }

.contact-form-wrap {
  padding: 40px 38px; border-radius: 20px;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -28px var(--shadow-c);
  backdrop-filter: blur(8px);
}
.contact-form-wrap h2 { font-size: 24px; margin-bottom: 8px; }
.contact-form-wrap > p { color: var(--text-dim); font-size: 15px; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13.5px; font-weight: 700;
  font-family: var(--font-body); letter-spacing: .06em;
  color: var(--text-dim); margin-bottom: 8px;
}
.form-group label .req { color: var(--accent-text); }
.form-control {
  width: 100%; padding: 13px 16px;
  background: var(--input-bg);
  border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--text); font-family: var(--font-body); font-size: 15.5px;
  transition: border-color .25s, box-shadow .25s;
}
.form-control:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,124,246,.18);
}
.form-control::placeholder { color: #5B6B8C; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393A3C2' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
textarea.form-control { resize: vertical; min-height: 130px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Alerts */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; border-radius: 12px; margin-bottom: 26px;
  font-size: 15px;
}
.alert-success { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35); color: #6EE7B7; }
.alert-error   { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); color: #FCA5A5; }
html[data-theme="light"] .alert-success { background: rgba(6,118,71,.07); border-color: rgba(6,118,71,.3); color: #067647; }
html[data-theme="light"] .alert-error   { background: rgba(180,35,24,.06); border-color: rgba(180,35,24,.3); color: #B42318; }

/* ---------- Privacy / legal ---------- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 21px; margin: 36px 0 12px; }
.legal-content p, .legal-content li { color: var(--text-dim); margin-bottom: 12px; }
.legal-content ul { padding-left: 22px; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 140px 24px 80px; }
.error-code {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1;
}
.error-page h1 { font-size: 26px; margin: 14px 0 10px; }
.error-page p { color: var(--text-dim); margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: var(--footer-bg);
  color: rgba(255,255,255,.78);
  overflow: hidden;
}
.footer-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 200px; border-radius: 50%;
  background: rgba(59,130,246,.1); filter: blur(80px); pointer-events: none;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px;
  padding: 64px 0 44px;
}
.footer-brand p { color: rgba(255,255,255,.65); font-size: 14.5px; margin-top: 18px; max-width: 300px; }
.footer-brand .brand-name, .footer-brand .brand-sub { color: #fff; }
.footer-col { display: grid; gap: 11px; align-content: start; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 12.5px; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; margin-bottom: 6px;
}
.footer-col a, .footer-addr { color: rgba(255,255,255,.72); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(255,255,255,.10); padding: 22px 0 26px;
  color: rgba(255,255,255,.55); font-size: 13.5px;
}
.footer-tag { font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,.45); }

/* ---------- Reveal animations ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero { padding-top: 160px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { padding: 26px 20px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-actions { margin-left: auto; }
  .brand-sub { letter-spacing: .14em; font-size: 8.5px; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 26px;
    transform: translateY(-130%); transition: transform .35s ease;
    z-index: 99;
  }
  .main-nav.open { transform: none; }
  .main-nav a:not(.btn) { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav .btn-nav { margin-top: 14px; justify-content: center; }

  .services-grid, .why-grid, .mv-grid, .form-row, .process-grid, .team-grid { grid-template-columns: 1fr; }
  .team-grid { max-width: 400px; gap: 26px; }
  .exp-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 140px 0 70px; }
  .section { padding: 64px 0; }
  .hero-stats { gap: 26px; }
  .contact-form-wrap { padding: 28px 22px; }
}
