@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg-gradient: linear-gradient(160deg, #f2f1ef 0%, #eae8e4 40%, #e2e0db 75%, #d8d6d0 100%);
  --surface-0: rgba(255, 255, 255, 0.5);
  --surface-1: rgba(255, 255, 255, 0.7);
  --surface-2: rgba(255, 255, 255, 0.9);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.16);

  --text-0: #1a1917;
  --text-1: #5a5854;
  --text-2: #9a9890;

  --accent: #3d6e8a;
  --accent-bright: #2d5a74;
  --accent-dim: rgba(61, 110, 138, 0.1);
  --accent-glow: rgba(61, 110, 138, 0.18);

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 18px;
  --nav-h: 66px;
  --max-w: 1080px;
  --col-gap: 20px;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-0);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Didact Gothic', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-0);
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 500; font-family: 'DM Sans', sans-serif; }

p { color: var(--text-1); line-height: 1.75; }

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

/* ─── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 100px 0; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-intro {
  max-width: 560px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── NAVIGATION ──────────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 200;
  border-bottom: 1px solid var(--border);
  background: rgba(242, 241, 239, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) opacity(0.82);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-0); }
.nav-links a.active { color: var(--text-0); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(90, 141, 171, 0.3);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.07);
  color: var(--text-0);
  border-color: var(--border-hover);
}

/* ─── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: background 0.25s, border-color 0.25s;
}
.card:hover {
  background: var(--surface-1);
  border-color: var(--border-hover);
}

/* ─── GRIDS ───────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--col-gap);
}

/* ─── HERO (shared) ───────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 96px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
  --ink-x: -999px;
  --ink-y: -999px;
  --ink-opacity: 0;
}

/* static ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: -80px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(61, 110, 138, 0.05) 0%, transparent 68%);
  pointer-events: none;
}

/* orb canvas sits behind hero text */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo img { height: 22px; display: block; filter: brightness(0) opacity(0.82); }

.footer-nav {
  list-style: none;
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-1); }

.footer-copy {
  font-size: 12px;
  color: var(--text-2);
}

/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.38s; }
.d5 { animation-delay: 0.48s; }

/* ─── DIVIDERS ────────────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ─── FORM ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.form-group input,
.form-group textarea {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-0);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-2);
}

.form-error {
  font-size: 13px;
  color: #e07070;
  margin-top: 8px;
}

.form-success {
  font-size: 15px;
  color: #7cc9a0;
}

/* ─── APP CARDS ───────────────────────────────────────────── */
.app-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  transition: background 0.25s, border-color 0.25s;
}

.app-card:hover {
  background: var(--surface-1);
  border-color: var(--border-hover);
}

.app-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-icon-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Didact Gothic', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(90, 141, 171, 0.2);
}

.app-body { flex: 1; }

.app-body h3 { margin-bottom: 8px; }

.app-body p { margin-bottom: 20px; }

.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: all 0.2s;
}
.store-badge:hover {
  color: var(--text-0);
  border-color: var(--border-hover);
}

.store-badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ─── CLIENT TAGS ─────────────────────────────────────────── */
.client-tag {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: 0.03em;
}

/* ─── TEAM ────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-1);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s;
}

.team-photo img:hover { filter: grayscale(0%); }

.team-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }

/* ─── STAT ROW ────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  background: var(--surface-0);
  padding: 36px 32px;
}

.stat-num {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--text-0);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
  .hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 64px; }
  .nav-inner { padding: 0 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .app-card {
    flex-direction: column;
    padding: 28px;
    gap: 20px;
  }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
