/* ==========================================================================
   Nova Consulting — Design System
   ========================================================================== */

:root {
  /* Palette */
  --bg: #f4f7fc;
  --bg-surface: #ffffff;
  --bg-dark: #061428;
  --bg-dark-2: #0a1f3d;
  --ink: #061428;
  --ink-soft: #2a3b54;
  --ink-muted: #6b7c95;
  --line: rgba(6, 20, 40, 0.08);
  --line-strong: rgba(6, 20, 40, 0.16);

  --blue-50:  #eaf2ff;
  --blue-100: #d3e3ff;
  --blue-300: #7eb0ff;
  --blue-500: #0066ff;
  --blue-600: #0052d4;
  --blue-700: #0040a8;
  --cyan: #00d4ff;
  --cyan-soft: #79e8ff;

  --gradient-hero: radial-gradient(80% 60% at 20% 10%, rgba(0, 212, 255, 0.18) 0%, transparent 60%),
                   radial-gradient(70% 60% at 90% 30%, rgba(0, 102, 255, 0.22) 0%, transparent 55%),
                   radial-gradient(60% 60% at 50% 100%, rgba(125, 176, 255, 0.20) 0%, transparent 55%),
                   linear-gradient(180deg, #f4f7fc 0%, #eaf2ff 100%);

  --gradient-dark: radial-gradient(60% 50% at 80% 0%, rgba(0, 212, 255, 0.22) 0%, transparent 60%),
                   radial-gradient(60% 50% at 0% 100%, rgba(0, 102, 255, 0.28) 0%, transparent 60%),
                   linear-gradient(180deg, #061428 0%, #0a1f3d 100%);

  --gradient-cta: linear-gradient(135deg, #0066ff 0%, #00d4ff 100%);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing & misc */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(6, 20, 40, 0.04), 0 2px 8px rgba(6, 20, 40, 0.04);
  --shadow: 0 10px 30px rgba(6, 20, 40, 0.08), 0 2px 6px rgba(6, 20, 40, 0.04);
  --shadow-lg: 0 30px 80px rgba(6, 20, 40, 0.16), 0 10px 24px rgba(6, 20, 40, 0.06);
  --shadow-glow: 0 20px 50px rgba(0, 102, 255, 0.25);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --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; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

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

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--blue-500);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: var(--ink);
}
.display-xl { font-size: clamp(2.6rem, 7vw, 6.25rem); }
.display-lg { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
.display-md { font-size: clamp(1.8rem, 4vw, 3rem); }
.display-sm { font-size: clamp(1.4rem, 3vw, 2.25rem); }

.display em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}

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

section { position: relative; }
.section { padding: clamp(64px, 10vw, 140px) 0; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; }

.grid { display: grid; gap: 24px; }
.flex { display: flex; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 32px; height: 32px;
  position: relative;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand sup {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-600);
  text-transform: uppercase;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--blue-600); }
.nav-links a.active::before {
  content: '';
  position: absolute;
  inset: auto 16px 4px;
  height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--blue-600); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: 0.25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 1.5px;
  background: var(--ink);
  transition: 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .nav-toggle span { background: transparent; }
  .nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav.open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }
  .nav.open .nav-mobile { transform: translateY(0); opacity: 1; pointer-events: auto; }
}
.nav-mobile {
  position: fixed;
  top: 72px; left: 16px; right: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s var(--ease);
}
@media (max-width: 880px) { .nav-mobile { display: block; } }
.nav-mobile a {
  display: block;
  padding: 14px 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .nav-cta {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  border-bottom: none;
  padding: 12px 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn-gradient {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.35);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 102, 255, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
.btn-light:hover { background: #fff; color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 160px 0 100px;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(6, 20, 40, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(6, 20, 40, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-inner { position: relative; z-index: 2; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-badge .dot {
  width: 24px; height: 24px;
  background: var(--gradient-cta);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}
.hero-badge .dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.6; }
}

.hero-title {
  margin-bottom: 32px;
  max-width: 16ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-aside {
  padding: 32px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-aside p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.hero-aside-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero-aside-stats div {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-aside-stats div span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Marquee */
.marquee {
  margin-top: 80px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: scroll 38s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-track span::after {
  content: '✦';
  color: var(--blue-500);
  font-style: normal;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections — common
   ========================================================================== */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lead { justify-self: end; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head .lead { justify-self: start; }
}
.section-head h2 { margin-top: 16px; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 880px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat .num sup {
  font-size: 0.4em;
  color: var(--blue-500);
  vertical-align: top;
  margin-left: 2px;
}
.stat .label {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.svc-card {
  position: relative;
  padding: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg);
}
.svc-card.feature { grid-column: span 7; min-height: 380px; }
.svc-card.small   { grid-column: span 5; }
.svc-card.third   { grid-column: span 4; }
@media (max-width: 880px) {
  .svc-card.feature, .svc-card.small, .svc-card.third { grid-column: span 12; }
}

.svc-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--blue-500);
  font-style: italic;
  margin-bottom: 24px;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--ink);
}
.svc-card p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 42ch;
}
.svc-card ul {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-card ul li {
  padding: 6px 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}
.svc-card .arrow {
  position: absolute;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.svc-card:hover .arrow {
  background: var(--ink);
  color: #fff;
  transform: rotate(-45deg);
}
.svc-card .arrow svg { width: 18px; height: 18px; }

.svc-card.feature::before {
  content: '';
  position: absolute;
  inset: auto -40% -40% auto;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ==========================================================================
   Approach — vertical timeline
   ========================================================================== */
.approach {
  background: var(--bg-dark);
  background-image: var(--gradient-dark);
  color: #fff;
  overflow: hidden;
}
.approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.approach .container { position: relative; z-index: 2; }
.approach h2 { color: #fff; }
.approach .lead { color: rgba(255, 255, 255, 0.7); }
.approach .eyebrow { color: var(--cyan); }
.approach .eyebrow::before { background: var(--cyan); }

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 48px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2) 10%, rgba(255, 255, 255, 0.2) 90%, transparent);
}
.tl-item {
  position: relative;
  padding: 28px 0 28px 100px;
}
.tl-item .marker {
  position: absolute;
  left: 24px; top: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cyan);
  font-size: 1.1rem;
  z-index: 2;
}
.tl-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #fff;
}
.tl-item p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 56ch;
}

/* ==========================================================================
   Case studies
   ========================================================================== */
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .cases { grid-template-columns: 1fr; } }

.case {
  padding: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case .case-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.case h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.case .case-result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.case .case-result .big {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case .case-result .desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 24ch;
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.quote {
  padding: clamp(48px, 8vw, 96px);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: '"';
  position: absolute;
  top: -40px; left: 40px;
  font-family: var(--font-display);
  font-size: 18rem;
  line-height: 1;
  color: var(--blue-50);
  font-weight: 400;
  pointer-events: none;
}
.quote q {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 28ch;
  quotes: none;
  margin-bottom: 40px;
}
.quote q::before, .quote q::after { content: none; }
.quote-by {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}
.quote-by .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
}
.quote-by .who {
  font-weight: 600;
  color: var(--ink);
}
.quote-by .role {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.member {
  position: relative;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
}
.member:hover {
  transform: translateY(-4px);
  border-color: var(--blue-300);
  box-shadow: var(--shadow);
}
.member .portrait {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.member h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink);
}
.member .role {
  font-size: 0.88rem;
  color: var(--blue-600);
  font-weight: 500;
  margin-bottom: 16px;
}
.member p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   Values
   ========================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.value {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value .ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--blue-600);
}
.value .ico svg { width: 24px; height: 24px; }
.value h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.value p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  padding: clamp(60px, 8vw, 96px) clamp(32px, 6vw, 64px);
  background: var(--gradient-cta);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.07 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.7;
}
.cta-band .display {
  color: #fff;
  margin: 0 auto 28px;
  max-width: 18ch;
}
.cta-band .display em {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
  background: none;
  color: rgba(255, 255, 255, 0.7);
}
.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 36px;
  max-width: 50ch;
}
.cta-band-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  background-image: var(--gradient-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(60px, 8vw, 100px) 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.footer .container { position: relative; z-index: 2; }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-top > div:first-child { grid-column: span 2; }
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p { font-size: 0.95rem; max-width: 36ch; }
.footer h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer ul a:hover { color: var(--cyan); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom .socials {
  display: flex;
  gap: 8px;
}
.footer-bottom .socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}
.footer-bottom .socials a:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(6, 20, 40, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(6, 20, 40, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 24px; max-width: 18ch; }
.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.page-hero .breadcrumb a { color: var(--blue-600); }

/* ==========================================================================
   Forms (contact + portal)
   ========================================================================== */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.98rem;
  color: var(--ink);
  transition: all 0.2s var(--ease);
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ==========================================================================
   Contact layout
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  padding: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact-info {
  display: grid;
  gap: 28px;
}
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-item .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-item h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.info-item p, .info-item a {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}
.info-item a:hover { color: var(--blue-600); }

/* Map placeholder */
.map-placeholder {
  margin-top: 32px;
  height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #cfe2ff 0%, #e7f0ff 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 102, 255, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 102, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin {
  position: relative;
  z-index: 2;
  text-align: center;
}
.map-pin .pin-dot {
  width: 24px; height: 24px;
  background: var(--blue-500);
  border-radius: 50%;
  margin: 0 auto 8px;
  box-shadow: 0 0 0 8px rgba(0, 102, 255, 0.2), 0 0 0 16px rgba(0, 102, 255, 0.1);
  animation: pulsePin 2s ease-in-out infinite;
}
@keyframes pulsePin {
  0%, 100% { box-shadow: 0 0 0 8px rgba(0, 102, 255, 0.2), 0 0 0 16px rgba(0, 102, 255, 0.1); }
  50%      { box-shadow: 0 0 0 12px rgba(0, 102, 255, 0.15), 0 0 0 24px rgba(0, 102, 255, 0.05); }
}
.map-pin span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-700);
}

/* ==========================================================================
   Portal layout
   ========================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 880px) { .portal-grid { grid-template-columns: 1fr; } }

.portal-login {
  padding: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.portal-features {
  padding: 48px;
  background: var(--bg-dark);
  background-image: var(--gradient-dark);
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.portal-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.portal-features > * { position: relative; z-index: 2; }
.portal-features h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
}
.portal-features ul li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: flex-start;
}
.portal-features ul li:last-child { border-bottom: none; }
.portal-features ul li .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.portal-features ul li .check svg { width: 12px; height: 12px; }
.portal-features ul li strong { color: #fff; display: block; margin-bottom: 2px; }
.portal-features ul li span { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }

/* Demo dashboard */
.portal-demo {
  margin-top: 48px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.demo-tabs {
  display: flex;
  gap: 4px;
}
.demo-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.demo-tab.active {
  background: var(--blue-50);
  color: var(--blue-700);
}
.demo-tab:hover:not(.active) { color: var(--ink); }
.demo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.demo-card {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}
.demo-card .lbl {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.demo-card .val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.demo-card .delta {
  font-size: 0.78rem;
  color: #00a86b;
  margin-top: 4px;
  font-weight: 500;
}
.demo-card .delta.neg { color: #d83a3a; }

.demo-chart {
  height: 160px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  position: relative;
}
.demo-chart svg { width: 100%; height: 100%; }

/* ==========================================================================
   Services page extras
   ========================================================================== */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.svc-detail:first-of-type { border-top: none; }
@media (max-width: 880px) { .svc-detail { grid-template-columns: 1fr; gap: 32px; } }

.svc-detail .left h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.svc-detail .left .svc-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--blue-500);
  margin-bottom: 16px;
}
.svc-detail .right p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.svc-detail .right .feature-list {
  display: grid;
  gap: 12px;
}
.svc-detail .right .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.svc-detail .right .feature-list li .b {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  margin-top: 8px;
  flex-shrink: 0;
}
.svc-detail .right .feature-list li strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}
.svc-detail .right .feature-list li span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--blue-300); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blue-500);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq .answer {
  padding: 0 28px 24px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
