/* ==========================================================================
   Dhairya Patel — Cloud Infrastructure & DevOps Consultant
   Custom CSS — dark, premium, SaaS-style. No frameworks.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #05070d;
  --bg-alt: #080b13;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e8ecf3;
  --muted: #94a0b8;

  --accent-1: #5b8cff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2) 50%, var(--accent-3));

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --nav-h: 72px;

  --shadow-glow: 0 0 40px rgba(91, 140, 255, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

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

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

ul {
  list-style: none;
}

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

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

h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

h3 {
  font-size: 1.15rem;
}

::selection {
  background: rgba(91, 140, 255, 0.35);
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

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

.grad-bg {
  background: var(--grad);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent-1);
  color: #fff;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s, border-color 0.25s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--grad);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: 0 4px 24px rgba(91, 140, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(91, 140, 255, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

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

.nav.scrolled {
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-mark {
  display: grid;
  place-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links > a:not(.btn) {
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  overflow: hidden;
}

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, black 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.5), transparent 70%);
}

.orb-2 {
  width: 420px;
  height: 420px;
  top: 10%;
  right: -140px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42), transparent 70%);
  animation-delay: -5s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: 35%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 70%);
  animation-delay: -9s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 38px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-logos-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  margin-bottom: 20px;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.logo-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  opacity: 0.8;
  transition: color 0.25s, opacity 0.25s, transform 0.25s var(--ease);
}

.logo-strip li:hover {
  color: var(--text);
  opacity: 1;
  transform: translateY(-2px);
}

.logo-strip svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  color: var(--muted);
  opacity: 0.7;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}

.section-alt {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(91, 140, 255, 0.06), transparent 70%),
    var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.section-sub {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---------- Grids & cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background-color 0.35s,
    box-shadow 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(91, 140, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

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

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

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.16), rgba(34, 211, 238, 0.1));
  color: var(--accent-3);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 23px;
  height: 23px;
}

/* Services */
.service-card h3 {
  margin-bottom: 10px;
}

.service-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-3);
  border-bottom: 2px solid var(--accent-3);
  transform: rotate(-45deg) scale(0.85);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.stat {
  text-align: center;
  padding: 36px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.stat:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.highlight-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.highlight-card .card-icon {
  margin-bottom: 0;
}

.highlight-card h3 {
  margin-bottom: 8px;
}

.highlight-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Case studies */
.case-card {
  padding-top: 34px;
}

.case-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-3);
  opacity: 0.9;
}

.case-card h3 {
  margin: 12px 0 12px;
  font-size: 1.25rem;
}

.case-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row li,
.chip-row li {
  padding: 5px 13px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: color 0.25s, border-color 0.25s;
}

.tag-row li:hover,
.chip-row li:hover {
  color: var(--text);
  border-color: var(--accent-1);
}

/* Tech stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stack-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}

.stack-group:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.stack-group h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-row li {
  font-size: 0.88rem;
  color: var(--text);
  padding: 7px 15px;
}

/* Engagement */
.engage-card h3 {
  margin-bottom: 10px;
}

.engage-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.engage-featured {
  border-color: rgba(91, 140, 255, 0.45);
  background: linear-gradient(160deg, rgba(91, 140, 255, 0.09), rgba(139, 92, 246, 0.05));
}

.badge {
  position: absolute;
  top: -11px;
  right: 20px;
  padding: 4px 13px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
}

/* Testimonials slider */
.slider {
  position: relative;
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 2px 20px;
  margin: -8px -2px 0;
  outline: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track > * {
  scroll-snap-align: start;
}

.slider-track:focus-visible {
  border-radius: var(--radius);
  box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.5);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
}

.slider-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.slider-btn:hover {
  color: var(--text);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

.slider-btn svg {
  width: 18px;
  height: 18px;
}

.slider-dots {
  display: flex;
  gap: 9px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: width 0.3s var(--ease), background-color 0.3s;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.35);
}

.slider-dot.active {
  width: 26px;
  background: var(--grad);
}

.quote-card {
  display: flex;
  flex-direction: column;
}

.quote-mark {
  width: 30px;
  height: 30px;
  fill: var(--accent-1);
  opacity: 0.85;
  margin-bottom: 16px;
}

.quote-card blockquote {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 24px;
  flex: 1;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--grad);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}

.about-card {
  text-align: center;
  padding: 40px 30px;
}

.about-monogram {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border-radius: 28px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.about-facts {
  margin-top: 26px;
  text-align: left;
}

.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.about-facts span {
  color: var(--muted);
}

.about-facts strong {
  font-weight: 600;
  text-align: right;
}

.about-copy h2 {
  margin-bottom: 22px;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 560px;
}

.about-copy .btn {
  margin-top: 14px;
}

/* Blog */
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-tag {
  align-self: flex-start;
  padding: 4px 13px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-3);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.07);
}

.blog-card h3 {
  font-size: 1.12rem;
  flex: 1;
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 55% 45% at 50% 100%, rgba(139, 92, 246, 0.09), transparent 70%),
    var(--bg);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.45;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.contact-line:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.contact-line .card-icon {
  margin-bottom: 0;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

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

.book-btn {
  margin-top: 12px;
  width: 100%;
}

.contact-note {
  text-align: center;
  font-size: 0.84rem;
}

/* Form */
.contact-form {
  padding: 34px 32px;
}

.contact-form:hover {
  transform: none;
  box-shadow: none;
}

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

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a0b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form-field select option {
  background: var(--bg-alt);
  color: var(--text);
}

.form-field ::placeholder {
  color: rgba(148, 160, 184, 0.55);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

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

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

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.4em;
}

.form-status.ok {
  color: #34d399;
}

.form-status.err {
  color: #f87171;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s;
  width: fit-content;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

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

  .slider-track {
    grid-auto-columns: calc((100% - 22px) / 2);
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-card {
    max-width: 420px;
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }

  .grid-2,
  .grid-3,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .slider-track {
    grid-auto-columns: 100%;
  }

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

  .container {
    width: min(var(--container), 100% - 36px);
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 26px;
    background: rgba(5, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links > a:not(.btn) {
    padding: 13px 6px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin-top: 16px;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 64px;
  }

  .hero-cta {
    margin-bottom: 56px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 340px;
  }

  .scroll-hint {
    display: none;
  }

  .highlight-card {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
