/* ============================================
   Neetu AI Solutions — Linear-inspired dark UI
   Palette: Black + Deep Blue (sky · blue · royal)
============================================ */

:root {
  /* Core surfaces */
  --bg:        #08090a;
  --bg-2:      #0d0e10;
  --surface:   #131416;
  --surface-2: #1a1b1f;
  --line:      #22252b;
  --line-2:    #2e3138;

  /* Text */
  --text:      #f5f5f7;
  --text-2:    #b4bcd0;
  --text-3:    #828590;
  --muted:     #5a5d65;

  /* Accents — deep blue */
  --accent:       #3b82f6;   /* iconic blue */
  --accent-soft:  #93c5fd;   /* sky blue */
  --accent-deep:  #1d4ed8;   /* royal blue */
  --accent-warm:  #fef3c7;   /* soft cream highlight */

  /* Gradient */
  --grad-brand: linear-gradient(135deg, #93c5fd 0%, #3b82f6 45%, #1d4ed8 100%);
  --grad-soft:  linear-gradient(135deg, rgba(59,130,246,0.22), rgba(147,197,253,0.10));
  --grad-text:  linear-gradient(90deg, #f5f5f7 0%, #e5e7eb 55%, #93c5fd 100%);
  --grad-aurora: radial-gradient(60% 60% at 50% 0%, rgba(59,130,246,0.10), transparent 70%),
                 radial-gradient(40% 45% at 85% 10%, rgba(147,197,253,0.06), transparent 70%),
                 radial-gradient(50% 50% at 10% 20%, rgba(29,78,216,0.06), transparent 70%);

  /* Shapes */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows / glow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 20px 50px -20px rgba(29,78,216,0.12), 0 8px 24px rgba(0,0,0,0.65);
  --shadow-lg: 0 40px 80px -24px rgba(29,78,216,0.18), 0 16px 48px rgba(0,0,0,0.70);
  --glow:      0 0 60px rgba(59,130,246,0.12);

  --font-display: 'Instrument Serif', 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
  --ease:   cubic-bezier(0.25, 0.8, 0.25, 1);
  --ease-2: cubic-bezier(0.16, 1, 0.3, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-2);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient grain + grid on body */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 10%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 10%, black 0%, transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 400px at 80% -10%, rgba(59,130,246,0.06), transparent 60%),
    radial-gradient(600px 500px at 10% 0%,  rgba(147,197,253,0.03), transparent 60%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.1;
}
h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.025em;
}
h3 { font-size: 1.25rem; }
p  { color: var(--text-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-soft);
  padding: 6px 14px;
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 999px;
  background: rgba(59,130,246,0.06);
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(59,130,246,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0    rgba(59,130,246,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(59,130,246,0.0); }
  100% { box-shadow: 0 0 0 0    rgba(59,130,246,0.0); }
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: grad-shift 6s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
section {
  padding: clamp(80px, 11vw, 150px) 0;
  position: relative;
  z-index: 1;
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-bottom 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(8,9,10,0.75);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity 0.2s var(--ease);
}
.brand:hover { opacity: 0.85; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  position: relative;
}
.brand-mark svg { width: 100%; height: 100%; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--text-3);
  transition: color 0.2s var(--ease);
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--text) !important;
  color: var(--bg) !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  font-weight: 500;
  margin-left: 8px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-soft) !important;
  color: var(--bg) !important;
  box-shadow: 0 8px 24px -8px rgba(147,197,253,0.6);
}
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  align-items: center; justify-content: center;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  will-change: transform;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(59,130,246,0.5);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* ============ Hero ============ */
.hero {
  padding: 110px 0 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-aurora);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  /* animated beam */
  content: "";
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(closest-side, rgba(59,130,246,0.10), transparent 70%);
  filter: blur(40px);
  pointer-events: none; z-index: 0;
  animation: hero-float 14s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.9; }
  50%      { transform: translateX(-45%) translateY(30px) scale(1.05); opacity: 1; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
  line-height: 1.08;
}
.hero .container { width: 100%; }
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: inline-block;
  transform: translateY(100%);
  animation: rise 1.1s var(--ease-2) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.24s; }
@keyframes rise {
  to { transform: translateY(0); }
}
.hero h1 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 4px;
}

.hero-sub {
  font-size: 1rem;
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--text-2);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-2) 0.5s forwards;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-2) 0.65s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-meta {
  margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-2) 0.8s forwards;
}
.hero-meta .stat strong {
  font-size: 1.5rem;
  display: block;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.hero-meta .stat span {
  font-size: 0.72rem; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  opacity: 0;
  animation: fade-up 1s var(--ease-2) 0.4s forwards;
}
/* Soft ambient glow behind the whole visual */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(closest-side, rgba(59,130,246,0.08), transparent 70%),
    radial-gradient(closest-side at 70% 70%, rgba(147,197,253,0.05), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
/* Static orthographic Earth (NASA Black Marble-style view centered over
   Africa/Europe/India/Asia). Gentle breathing animation for life. */
.orb {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background-image: url("./earth.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: orb-spin 90s linear infinite;
  z-index: 2;
  filter: drop-shadow(0 20px 50px rgba(29,78,216,0.15));
}
@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.orb::before {
  content: "";
  position: absolute; inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.14), transparent 55%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.orb-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.18);
  animation: orb-reverse 28s linear infinite;
  z-index: 1;
}
.orb-ring.r2 {
  inset: -2%;
  border-style: dashed;
  border-color: rgba(147,197,253,0.10);
  animation-duration: 40s;
}
.orb-ring.r3 {
  inset: 28%;
  border-color: rgba(59,130,246,0.12);
  animation: orb-spin 34s linear infinite;
}
@keyframes orb-reverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

/* Decorative sparkles scattered around the orb */
.spark {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--accent-soft);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(147,197,253,0.5);
  animation: twinkle 3s ease-in-out infinite;
  z-index: 3;
  opacity: 0.6;
}
.spark.s1 { top: 8%;  left: 12%; animation-delay: 0s; }
.spark.s2 { top: 18%; right: 8%; animation-delay: 0.6s; }
.spark.s3 { bottom: 12%; left: 18%; animation-delay: 1.2s; }
.spark.s4 { bottom: 20%; right: 14%; width: 6px; height: 6px; animation-delay: 1.8s; }
.spark.s5 { top: 50%;  left: 4%;  animation-delay: 2.4s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* Capability pills — slim single-line capsules floating near the orb */
.ping {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15,16,18,0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 9px 18px 9px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  animation: float 6s ease-in-out infinite;
  z-index: 4;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ping:hover { transform: translateY(-2px); border-color: rgba(59,130,246,0.35); }
.ping .ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.ping .ico.dot {
  background: transparent;
  position: relative;
}
.ping .ico.dot::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.14);
}
.ping .ico.blue {
  background: rgba(59,130,246,0.15);
  color: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.25);
}
.ping .ico.check {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.ping .label { color: var(--text); font-weight: 500; }
.ping .meta  { color: var(--text-3); }
.ping .sep   { color: var(--muted); margin: 0 4px; }

.ping.one   { top: 2%;    left: -12%;  animation-delay: 0s;    animation-duration: 7s;   }
.ping.three { top: 22%;   right: -10%; animation-delay: 1.4s;  animation-duration: 8.5s; }
.ping.two   { bottom: 14%; left: -6%;  animation-delay: 2.5s;  animation-duration: 6s;   }
.ping.six   { bottom: -3%; right: -14%; animation-delay: 0.6s; animation-duration: 7.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ============ Industries strip ============ */
.industries {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}
.industries-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.industries-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
  white-space: nowrap;
}
.industries-divider {
  width: 1px;
  height: 16px;
  background: var(--line-2);
}
.industries-grid {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.industries-grid li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: default;
}
.industries-grid li svg {
  color: var(--text-3);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.industries-grid li:hover {
  color: var(--text);
  border-color: rgba(59,130,246,0.4);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.industries-grid li:hover svg {
  color: var(--accent);
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .industries { padding: 22px 0; }
  .industries-inner { gap: 14px; }
  .industries-divider { display: none; }
  .industries-grid { gap: 6px; }
  .industries-grid li {
    padding: 6px 11px;
    font-size: 0.76rem;
  }
}

/* ============ Section head ============ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.section-head p {
  margin-top: 16px; font-size: 1.05rem;
  color: var(--text-2);
}

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.service-card {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, -10%) var(--my, -10%), rgba(59,130,246,0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { background: var(--surface-2); }

.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(147,197,253,0.15), rgba(59,130,246,0.1));
  border: 1px solid rgba(59,130,246,0.25);
  display: grid; place-items: center;
  color: var(--accent-soft);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover .service-icon {
  transform: rotate(-5deg) scale(1.05);
  border-color: var(--accent);
}
.service-card h3 { margin-bottom: 8px; color: var(--text); }
.service-card p  { font-size: 0.94rem; color: var(--text-3); }

/* ============ Projects ============ */
.projects { background: linear-gradient(180deg, transparent, rgba(13,14,16,0.7) 20%, rgba(13,14,16,0.7) 80%, transparent); }
.project-list { display: grid; gap: 32px; }
.project {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  transition: transform 0.5s var(--ease-2), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.project::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,0.04), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.project:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.project:hover::before { opacity: 1; }
.project.reverse { grid-template-columns: 1.1fr 1fr; }
.project.reverse .project-visual { order: 2; }
.project .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.project h2 { margin-bottom: 14px; color: var(--text); }
.project p  { font-size: 1rem; margin-bottom: 24px; color: var(--text-2); }
.feature-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: grid; gap: 12px;
}
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.94rem; color: var(--text-2);
}
.feature-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.project-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}

/* IREPS preview */
.visual-ireps {
  background:
    radial-gradient(400px 200px at 10% 0%, rgba(59,130,246,0.08), transparent 60%),
    linear-gradient(160deg, #0f1113 0%, #16181c 100%);
  padding: 28px;
  display: grid; place-items: center;
}
.visual-ireps::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 95%, rgba(59,130,246,0.06) 95%),
    linear-gradient(0deg,  transparent 95%, rgba(59,130,246,0.06) 95%);
  background-size: 32px 32px;
  opacity: 0.7;
}
.mini-ui {
  position: relative;
  width: 100%;
  background: rgba(19,20,22,0.9);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
.mini-ui .pill {
  display: inline-block;
  background: rgba(59,130,246,0.12);
  color: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 500;
  margin-bottom: 14px;
}
.mini-ui .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-2);
}
.mini-ui .row:last-child { border-bottom: 0; }
.mini-ui .row b { color: var(--text); font-weight: 500; }
.mini-ui .row .rank {
  background: var(--grad-brand);
  color: #0a0a0b;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}
.mini-ui .row .rank.muted {
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--line);
}

/* Soriso preview */
.visual-soriso {
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(147,197,253,0.07), transparent 60%),
    linear-gradient(160deg, #0f1113 0%, #1a1520 100%);
  padding: 28px;
  display: grid; place-items: center;
}
.soriso-phone {
  width: 62%;
  aspect-ratio: 9 / 16;
  background: #141519;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 22px 14px 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.soriso-phone::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 4px; border-radius: 99px;
  background: #2a2c31;
}
.soriso-phone h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin: 14px 0 12px;
}
.task-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--text-2);
}
.task-row .check {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
  flex-shrink: 0;
}
.task-row.done .check {
  background: var(--grad-brand);
  border-color: transparent;
  position: relative;
}
.task-row.done .check::after {
  content: "";
  position: absolute;
  top: 2px; left: 4px;
  width: 4px; height: 7px;
  border: solid #0a0a0b;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============ About ============ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about p { margin-top: 14px; font-size: 1.05rem; }
.value-list {
  display: grid; gap: 4px;
  list-style: none; padding: 0; margin: 0;
}
.value-list li {
  display: flex; gap: 20px;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.value-list li:hover {
  background: var(--surface);
  border-color: var(--line);
}
.value-list .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  min-width: 40px;
  font-weight: 400;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.value-list h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 500;
}
.value-list p {
  font-size: 0.93rem;
  color: var(--text-3);
  margin: 0;
}

/* ============ Contact ============ */
.contact { position: relative; }
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(59,130,246,0.05), transparent 70%);
  pointer-events: none;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.5), transparent 40%, transparent 60%, rgba(147,197,253,0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.contact-card h2 { margin-bottom: 16px; }
.contact-card p {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 36px;
  color: var(--text-2);
}
.contact-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.contact-meta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  color: var(--text-3); font-size: 0.9rem;
}

/* ============ Footer ============ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.92rem; color: var(--text-2); transition: color 0.2s var(--ease); }
.footer ul a:hover { color: var(--accent-soft); }
.footer .brand { margin-bottom: 14px; color: var(--text); }
.footer-tagline {
  color: var(--text-3);
  font-size: 0.9rem;
  max-width: 300px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--muted);
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-2), transform 0.9s var(--ease-2);
}
.reveal.show { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-2), transform 0.7s var(--ease-2);
}
.reveal-stagger.show > *       { opacity: 1; transform: none; }
.reveal-stagger.show > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.show > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.show > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.show > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.show > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.show > *:nth-child(6) { transition-delay: 0.40s; }

/* ============ Project detail pages ============ */
.page-hero {
  padding: 170px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 70% -20%, rgba(59,130,246,0.06), transparent 60%);
  pointer-events: none;
}
.page-hero .container { max-width: 920px; position: relative; z-index: 1; }
.page-hero .tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.page-hero h1 {
  margin-bottom: 18px;
}
.page-hero .lead {
  font-size: 1.15rem;
  max-width: 720px;
  color: var(--text-2);
}
.page-section { padding: 72px 0; }
.page-section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-section h2 { margin-bottom: 18px; }
.content-grid {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
}
.content-grid .meta {
  font-size: 0.9rem;
  color: var(--text-3);
}
.content-grid .meta strong {
  display: block; color: var(--text);
  margin-bottom: 4px;
  font-family: var(--font-body); font-weight: 500;
}
.content-grid .meta-item { margin-bottom: 24px; }

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 36px;
}
.stat-grid .stat {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.stat-grid .stat:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.stat-grid .stat strong {
  font-size: 1.9rem;
  color: var(--text);
  display: block;
  font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat-grid .stat span {
  font-size: 0.82rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: 22px;
  transition: color 0.2s var(--ease);
}
.back-link:hover { color: var(--accent-soft); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .services-grid .service-card:nth-child(2n) { border-right: none; }
  .services-grid .service-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .services-grid .service-card:nth-last-child(-n+2) { border-bottom: none; }
  .project, .project.reverse { grid-template-columns: 1fr; padding: 36px; }
  .project.reverse .project-visual { order: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 20px; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-meta { gap: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .services-grid .service-card:last-child { border-bottom: none !important; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 20px; right: 20px;
    flex-direction: column;
    background: rgba(8,9,10,0.95);
    backdrop-filter: blur(20px);
    padding: 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    gap: 10px;
  }
  .nav-links.open a { padding: 10px 14px; }
  .contact-card { padding: 48px 24px; }
  .ping { font-size: 0.7rem; padding: 6px 12px 6px 8px; }
  .ping .ico { width: 18px; height: 18px; }
  .ping.one   { top: 2%;    left: -2%; }
  .ping.three { top: 24%;   right: -2%; }
  .ping.two   { bottom: 12%; left: -2%; }
  .ping.six   { bottom: 0;  right: -2%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
