/* =========================================================
   Novari Labs — minimal styles
   ========================================================= */

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

:root {
  --bg: #070710;
  --bg-2: #0a0a14;
  --fg: #f3f3f7;
  --fg-dim: #9a9ab0;
  --fg-muted: #6b6b84;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --card: rgba(255,255,255,0.02);
  --violet: #8b5cf6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --emerald: #10b981;
  --grad-1: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --nav-h: 76px;
  /* Particle phone — mirrors JS: phoneH = max(320, min(H*0.72, 640)) */
  --phone-h: clamp(320px, 72vh, 640px);
  --phone-top: calc(50vh - var(--phone-h) / 2);
  --phone-bottom: calc(50vh + var(--phone-h) / 2);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
dl { margin: 0; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) { .container { padding: 0 20px; } }

/* =========================================================
   Noise
   ========================================================= */
.noise {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Global soft background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 10%, rgba(139, 92, 246, 0.12), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(236, 72, 153, 0.08), transparent 65%);
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   Particle canvas
   ========================================================= */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(7, 7, 16, 0.72);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.nav-inner .brand { justify-self: start; }
.nav-inner .nav-links { justify-self: center; }
.nav-inner .nav-social { justify-self: end; }
.nav-inner .nav-toggle { justify-self: end; grid-column: 3; grid-row: 1; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-novari {
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--fg);
}
.brand-labs {
  font-family: 'Michroma', sans-serif;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.38em;
  color: var(--fg-dim);
  opacity: 0.5;
  margin-top: 2px;
  padding-left: 1px;
}
.brand-mark { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--fg); }

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-left: 4px;
}
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  opacity: 0.75;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.nav-social a:hover {
  color: var(--fg);
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 40px; height: 40px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(2) { width: 70%; margin-left: auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(7,7,16,0.95);
    backdrop-filter: blur(20px);
    padding: 20px 32px 28px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav.menu-open .nav-links a {
    padding: 14px 0;
    font-size: 18px;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  background: transparent;
  color: inherit;
  font-family: inherit;
  isolation: isolate;
}
.btn-primary {
  color: var(--fg);
  background: linear-gradient(180deg, rgba(20, 20, 35, 0.85), rgba(10, 10, 20, 0.85));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 10px 40px -10px rgba(139, 92, 246, 0.45),
    0 4px 18px -8px rgba(236, 72, 153, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.10) 50%, rgba(245, 158, 11, 0.14));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 60px -12px rgba(139, 92, 246, 0.6),
    0 8px 28px -10px rgba(236, 72, 153, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary > * { position: relative; z-index: 2; }
.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(7, 7, 16, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(10, 10, 20, 0.7);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100vh;
  padding: var(--nav-h) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-vignette {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1100px, 96vw);
  height: min(680px, 82vh);
  background: radial-gradient(
    ellipse at center,
    rgba(7, 7, 16, 0.42) 0%,
    rgba(7, 7, 16, 0.32) 36%,
    rgba(7, 7, 16, 0.14) 62%,
    transparent 85%
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}
.hero-inner {
  width: 100%;
  max-width: 960px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  position: absolute;
  top: calc(var(--phone-top) + var(--phone-h) * 0.045);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10,10,20,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: var(--fg-dim);
  z-index: 3;
  white-space: nowrap;
  transform: translateX(-50%);
}
[data-reveal].hero-tag {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}
[data-reveal].hero-tag.in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 10vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 32px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.hero-title .word.in {
  transform: translateY(0);
  opacity: 1;
}
.hero-title .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--fg-dim);
}

.gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradmove 8s ease-in-out infinite;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.12em;
}
@keyframes gradmove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: clamp(15px, 1.15vw, 18px);
  color: #c9c9dc;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(7, 7, 16, 0.9);
}
.hero-sub-hint {
  display: inline-block;
  margin-left: 6px;
  color: #8585a3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
}

.hero-actions {
  position: absolute;
  /* Button anchored slightly above the iPhone's bottom edge. */
  top: calc(var(--phone-bottom) - 70px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 3;
}
[data-reveal].hero-actions {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}
[data-reveal].hero-actions.in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--fg-muted) 50%, transparent 50%);
  background-size: 1px 6px;
  animation: scrollmove 1.6s linear infinite;
}
@keyframes scrollmove {
  from { background-position: 0 0; }
  to { background-position: 0 6px; }
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .hero-title .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .gradient-text, .scroll-line { animation: none; }
}

/* =========================================================
   Sections generic
   ========================================================= */
.section {
  padding: clamp(90px, 12vw, 160px) 0;
  position: relative;
}
.section-head {
  max-width: 760px;
  margin-bottom: 72px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 24px;
}
.eyebrow-num {
  color: var(--violet);
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
}
.section-title .italic { font-style: italic; font-weight: 300; }
.section-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-dim);
  max-width: 600px;
  line-height: 1.55;
  margin: 20px 0 0;
}

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: 32px 32px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(236, 72, 153, 0.06), transparent 70%),
    var(--card);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
  /* Flex column so the tag divider sits at the bottom, aligned across both cards. */
  display: flex;
  flex-direction: column;
}
/* Animated gradient border on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,246,0.6), rgba(236,72,153,0.5) 50%, rgba(245,158,11,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 2;
}
/* Decorative corner blob, behind content */
.service-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 65%);
  filter: blur(12px);
  opacity: 0.55;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after {
  opacity: 0.85;
  transform: translate(-10px, 10px) scale(1.05);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.28);
  color: var(--violet);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 24px -12px rgba(139, 92, 246, 0.4);
}
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 20, 0.5);
}
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.service-card p {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.service-card p:last-of-type { margin-bottom: 0; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: auto 0 0;   /* pushes the divider to the bottom of the card */
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}
.service-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.015);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.service-card:hover .service-tags li {
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--fg);
  background: rgba(139, 92, 246, 0.06);
}

.services-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
}
@media (max-width: 860px) { .services-grid.two-col { grid-template-columns: 1fr; } }

/* =========================================================
   Apps
   ========================================================= */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .apps-grid { grid-template-columns: 1fr; } }

.app-card {
  position: relative;
  padding: 36px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
  /* Flex column so the .app-meta divider line sits at the bottom of the card,
     aligned across cards even when descriptions have different line counts. */
  display: flex;
  flex-direction: column;
}
.app-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.18) 50%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.app-card:hover::before { opacity: 1; }

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.app-icon-water {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 60%, #10b981 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}
.app-icon-game {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

.app-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.app-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.app-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.app-desc {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  list-style: none;
  margin: auto 0 0;   /* pushes the meta block to the bottom of the card */
}
.app-meta li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* =========================================================
   About
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; gap: 40px; } }

.about-lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--fg);
  margin: 24px 0 20px;
}
.about-body {
  color: var(--fg-dim);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.about-right {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
@media (max-width: 860px) { .about-right { position: static; } }
.about-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.about-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 18px;
}
.about-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 20px;
  font-size: 14.5px;
}
.about-dl dt { color: var(--fg-muted); }
.about-dl dd { margin: 0; color: var(--fg); }

/* =========================================================
   Contact
   ========================================================= */
.section.contact {
  /* Tighter top/bottom padding so the card fits in a single desktop viewport. */
  padding: clamp(56px, 7vw, 96px) 0;
}
.contact-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(139, 92, 246, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(236, 72, 153, 0.15), transparent 60%),
    #0a0a14;
}
.contact-inner {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
}
.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 10px 0 10px;
}
.contact-title .italic { font-style: italic; font-weight: 300; }
.contact-desc {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 520px;
}

.contact-form { max-width: 680px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field {
  display: block;
  margin-bottom: 12px;
}
.field-label {
  display: block;
  font-size: 12.5px;
  color: var(--fg-dim);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.04);
}
.field textarea {
  resize: vertical;
  min-height: 72px;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 12px;
  color: var(--fg-muted);
  margin: 0;
  max-width: 320px;
}
.form-success {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  font-size: 14px;
  flex-direction: column;
  gap: 4px;
}
.form-success:not([hidden]) { display: flex; }
[hidden] { display: none !important; }
.form-success strong { color: var(--emerald); }
.form-success span { color: var(--fg-dim); }

.contact-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--fg-dim);
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.contact-email {
  color: var(--fg);
  font-weight: 500;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  border-bottom: 1px solid var(--violet);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: #050510;
  position: relative;
  z-index: 2;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag {
  color: var(--fg-dim);
  font-size: 13.5px;
  max-width: 340px;
  margin: 0;
  line-height: 1.55;
}
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--fg); }

.footer-legal {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--fg-muted);
}
.footer-company {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.footer-company strong {
  color: var(--fg-dim);
  font-weight: 500;
}

/* =========================================================
   Legal pages
   ========================================================= */
.legal-page {
  padding: calc(var(--nav-h) + 64px) 0 80px;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}
.legal-inner {
  max-width: 780px;
  margin: 0 auto;
}
.legal-head {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.legal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.legal-intro {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.6;
  margin: 0 0 36px;
}
.legal-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 48px 0 14px;
}
.legal-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
  margin: 28px 0 8px;
  color: var(--fg);
}
.legal-body p, .legal-body li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-dim);
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 14px 0; padding-left: 22px; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--fg); font-weight: 500; }
.legal-body a {
  color: var(--violet);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.legal-body a:hover { border-bottom-color: var(--violet); }
.legal-toc {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  margin-bottom: 40px;
}
.legal-toc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal-toc li {
  padding: 3px 0;
  font-size: 13.5px;
  break-inside: avoid;
}
.legal-toc a {
  color: var(--fg-dim);
  transition: color 0.3s var(--ease);
  border: none;
}
.legal-toc a:hover { color: var(--fg); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fg-dim);
  margin-bottom: 28px;
  transition: color 0.3s var(--ease);
}
.back-link:hover { color: var(--fg); }
