/* ============================================================
   SachTech.ai — company site styles
   Dark theme, cyan/violet gradient accents, Inter type.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg-0: #0b1120;
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --surface: rgba(30, 41, 59, 0.55);
  --surface-solid: #131c31;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);

  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-3: #22d3ee;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.16));

  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 40px -18px rgba(2, 6, 23, 0.75);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 20px 60px -20px rgba(56, 189, 248, 0.35);

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-1);
  line-height: 1.6;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
  scroll-margin-top: 88px;
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-head.center .eyebrow::before {
  display: none;
}

h1,
h2,
h3 {
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 300;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
}

.btn-primary {
  background: var(--gradient);
  color: #06121f;
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(56, 189, 248, 0.75);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

.btn-lg {
  padding: 0.95rem 1.7rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 0.7rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn).active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-inner {
  max-width: 820px;
}

.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.05);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.8rem;
}

.hero .pill b {
  color: var(--accent);
  font-weight: 600;
}

.hero .pill .ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: ping 2.2s var(--ease) infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 1.4rem;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 620px;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3.2rem;
}

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
  max-width: 760px;
}

.stat .num {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat .label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* Glow backdrop */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.glow--hero-1 {
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 68%);
  top: -12%;
  right: -8%;
  animation: float 9s ease-in-out infinite;
}

.glow--hero-2 {
  width: 40vw;
  max-width: 520px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.22), transparent 68%);
  bottom: -20%;
  left: -10%;
  animation: float 11s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -24px) scale(1.08); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Trusted by ---------- */
.logos {
  border-block: 1px solid var(--border);
  background: rgba(11, 17, 32, 0.4);
}

.logos-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.4rem);
  padding-block: 2rem;
}

.logos-label {
  width: 100%;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.logo-word {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--muted);
  opacity: 0.72;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.logo-word svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.logo-word:hover {
  opacity: 1;
  color: var(--text);
}

/* ---------- Generic card ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
      rgba(56, 189, 248, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}

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

.card:hover::after {
  opacity: 1;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.service .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service .icon svg {
  width: 26px;
  height: 26px;
}

.service h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.service p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  background: rgba(148, 163, 184, 0.05);
}

/* ---------- Work / case studies ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
}

.case {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.case-media {
  height: 168px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.case-media .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}

.case-media--1 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.case-media--2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.case-media--3 { background: linear-gradient(135deg, #8b5cf6, #38bdf8); }

.case-media svg {
  width: 62px;
  height: 62px;
  color: rgba(255, 255, 255, 0.9);
}

.case-body {
  padding: clamp(1.4rem, 3vw, 1.8rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.case-body p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1.3rem;
}

.case-result {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.case-result .metric {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.case-result .metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Products ---------- */
.product {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  padding: 0;
  align-items: stretch;
}

.product-media {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #059669, #22c55e);
}

.product-media .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 18, 31, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.product-media svg {
  width: 104px;
  height: 104px;
  color: rgba(255, 255, 255, 0.95);
}

.product-body {
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.product-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.product-logo img {
  width: 100%;
  height: 100%;
}

.product-head h3 {
  font-size: 1.5rem;
  line-height: 1.1;
}

.product-tagline {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-body > p {
  color: var(--muted);
  font-size: 0.98rem;
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

@media (max-width: 760px) {
  .product {
    grid-template-columns: 1fr;
  }
  .product-media {
    min-height: 180px;
  }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.5rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(19, 28, 49, 0.4);
}

.step .step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
  display: inline-block;
}

.step h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: radial-gradient(ellipse 70% 90% at 50% 0%, rgba(30, 41, 59, 0.6), transparent 70%);
}

.testimonial-viewport {
  max-width: 820px;
  margin-inline: auto;
  position: relative;
}

.testimonial {
  display: none;
  text-align: center;
  animation: fade-in 0.5s var(--ease);
}

.testimonial.active {
  display: block;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.testimonial .quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  font-weight: 700;
}

.testimonial blockquote {
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1.5;
  margin: 0.4rem auto 1.8rem;
  max-width: 720px;
}

.testimonial blockquote b {
  font-weight: 600;
  color: var(--accent);
}

.testimonial-author {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #06121f;
  background: var(--gradient);
  flex-shrink: 0;
}

.testimonial-author .who {
  text-align: left;
}

.testimonial-author .name {
  font-weight: 600;
}

.testimonial-author .role {
  color: var(--muted);
  font-size: 0.88rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
}

.dot-btn {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.dot-btn.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.values {
  display: grid;
  gap: 1rem;
}

.value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value .icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
}

.value .icon svg {
  width: 22px;
  height: 22px;
}

.value h3 {
  font-size: 1.08rem;
  margin-bottom: 0.25rem;
}

.value p {
  color: var(--muted);
  font-size: 0.94rem;
}

.about-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.2rem;
}

.about-panel .stat .num {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(129, 140, 248, 0.14));
  border: 1px solid var(--border-strong);
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.cta-band .glow--cta {
  width: 60%;
  aspect-ratio: 2 / 1;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-list {
  display: grid;
  gap: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.contact-item .icon svg {
  width: 20px;
  height: 20px;
}

.contact-item span.sub {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 2rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.04);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
}

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

#contact-form {
  scroll-margin-top: 100px;
}

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

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(11, 17, 32, 0.55);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

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

.field .error-msg {
  display: none;
  color: #fca5a5;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.field.invalid input,
.field.invalid textarea {
  border-color: #f87171;
}

.field.invalid .error-msg {
  display: block;
}

.form-note {
  color: var(--muted-2);
  font-size: 0.8rem;
  margin-top: 0.9rem;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.form-success.show {
  display: block;
  animation: fade-in 0.4s var(--ease);
}

.form-success .check {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

.form-success .check svg {
  width: 30px;
  height: 30px;
}

.form-success h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-0);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.8rem;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 17, 32, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem var(--gutter) 1.4rem;
    transform: translateY(-140%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .nav-menu a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }
  .nav-menu .btn {
    margin-top: 1rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
  }
  .about-panel {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
