/* ================================================================
   SECODE — Design System
   Type: Sora (display) + Inter (body)
   Palette: near-black bg · vivid blue accent · indigo secondary
   ================================================================ */

:root {
  --bg:          #050709;
  --surface:     #0a0e18;
  --surface-2:   #0d1320;
  --border:      rgba(255, 255, 255, 0.07);
  --border-hi:   rgba(59, 130, 246, 0.28);
  --text:        #EEF4FF;
  --muted:       #7A8BA8;
  --accent:      #3B82F6;
  --accent-2:    #6366F1;
  --accent-glow: rgba(59, 130, 246, 0.14);

  --f-display: 'Sora', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;

  --t-hero: clamp(2.4rem, 5.2vw, 3.75rem);
  --t-h2:   clamp(1.625rem, 2.8vw, 2.125rem);
  --t-h3:   1.0625rem;

  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  48px;
  --sp-xl:  80px;
  --sp-2xl: 120px;

  --r:    12px;
  --r-lg: 18px;
  --max:  1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--sp-md); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--sp-md);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.brand-mark { flex-shrink: 0; }
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  margin-left: 6px;
}
.nav-cta:hover { background: #60a5fa !important; color: #fff !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 220ms var(--ease), opacity 180ms;
}

/* Language toggle */
.lang-toggle {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-left: 8px;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.lang-toggle[aria-pressed="true"] {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

/* Floating right-side language button */
.lang-toggle {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.11) 0%, transparent 68%);
}
.hero-grid-pat {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.027) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: center;
  padding-top: var(--sp-xl);
  padding-bottom: 72px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
h1 {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 22px;
}
.gradient-word {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 50ch;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 9px;
  transition: background 180ms var(--ease), box-shadow 200ms var(--ease), transform 160ms var(--ease);
}
.btn-primary:hover {
  background: #60a5fa;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.38);
  transform: translateY(-1px);
  color: #fff;
}
.btn-primary--lg { font-size: 1rem; padding: 14px 26px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 9px;
  border: 1px solid var(--border);
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
}
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0A66C2;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 9px;
  transition: background 180ms var(--ease);
}
.btn-linkedin:hover { background: #0d7ad9; color: #fff; }

/* Link-style button used for footer/contact replacements */
.btn-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.btn-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-email {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.footer-email:hover { color: #9fd9ff; text-decoration: underline; }

/* ── Hero Diagram ─────────────────────────────────────────── */
.hero-diagram {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.03);
}
.hero-diagram svg { display: block; width: 100%; height: auto; }

/* ── Hero strip ───────────────────────────────────────────── */
.hero-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.045);
  padding: 15px 0;
}
.hero-strip p {
  text-align: center;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── Stats ────────────────────────────────────────────────── */
.stats {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}
.stat { text-align: center; padding: var(--sp-md); }
.stat-n {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  line-height: 1.1;
}
.stat-l {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ── Section labels & titles ──────────────────────────────── */
.section-label {
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: var(--sp-lg);
  color: var(--text);
}

/* ── Trust ────────────────────────────────────────────────── */
.trust {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills span {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
  cursor: default;
}
.pills span:hover { color: var(--text); border-color: var(--border-hi); }

/* ── Services ─────────────────────────────────────────────── */
.services {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px 28px;
  overflow: hidden;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), transform 200ms var(--ease);
}
.service-card::after {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.service-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(59,130,246,0.06);
  transform: translateY(-4px);
}
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 42px; height: 42px;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card > p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
.deliverables {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deliverables li {
  color: var(--muted);
  font-size: 0.8125rem;
  padding-left: 16px;
  position: relative;
}
.deliverables li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Why ──────────────────────────────────────────────────── */
.why {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px 22px;
  transition: border-color 200ms var(--ease);
}
.why-card:hover { border-color: var(--border-hi); }
.why-num {
  display: block;
  font-family: var(--f-display);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.why-card h4 {
  font-family: var(--f-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.why-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }

/* ── Results ──────────────────────────────────────────────── */
.results {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: var(--sp-md);
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 30px 22px;
  text-align: center;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.result-card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.result-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--text) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  line-height: 1;
}
.result-card > p { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.results-note { color: var(--muted); font-size: 0.8125rem; text-align: center; }

/* ── About ────────────────────────────────────────────────── */
.about {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: center;
}
.about-lead {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 56ch;
}
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.about-pills span {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  padding: 6px 14px;
  border-radius: 100px;
}
.photo-frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface) 0%, #0d1828 100%);
  aspect-ratio: 3 / 4;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.12);
  font-size: 0.8125rem;
}

/* ── Devmetry ─────────────────────────────────────────────── */
.devmetry {
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--border);
}
.devmetry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(13, 19, 40, 0.8) 100%);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-lg);
  padding: 48px 52px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.devmetry-content .section-label { margin-bottom: 8px; }
.devmetry-content h2 {
  font-family: var(--f-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.devmetry-content p {
  color: var(--muted);
  max-width: 50ch;
  line-height: 1.7;
  margin-bottom: 24px;
}
.devmetry-wordmark {
  flex-shrink: 0;
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.18;
  user-select: none;
}

/* ── Final CTA ────────────────────────────────────────────── */
.final-cta { padding: var(--sp-2xl) 0; }
.cta-box {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}
.cta-box h2 {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-xl);
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand > p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 30ch;
}
.footer-email { color: var(--accent); font-size: 0.875rem; font-weight: 500; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.footer-nav strong {
  display: block;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav li { color: var(--muted); font-size: 0.875rem; }
.footer-nav a { color: var(--muted); transition: color 160ms var(--ease); }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--sp-sm) 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom span { color: var(--muted); font-size: 0.8125rem; }

/* ── Reveal animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-diagram { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .devmetry-card { flex-direction: column; padding: 32px; }
  .devmetry-wordmark { display: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 68px 0 0;
    background: rgba(5, 7, 9, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-sm);
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease);
    border-bottom: 1px solid var(--border);
  }
  body.nav-open .nav { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { text-align: center; margin-left: 0 !important; }
  .why-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 48px; padding-bottom: 48px; }
  /* move floating language button to bottom-right on narrow screens */
  .lang-toggle { top: auto; bottom: 20px; right: 16px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow-dot { animation: none; }
}

/* ── Modal (booking) ───────────────────────────────────── */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1400; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.modal-dialog { position: relative; width: 100%; max-width: 520px; background: linear-gradient(180deg, rgba(10,14,24,0.96), rgba(6,8,12,0.96)); border: 1px solid rgba(255,255,255,0.04); padding: 22px; border-radius: 12px; box-shadow: 0 30px 60px rgba(2,6,23,0.8); color: var(--text); z-index: 10; }
.modal-dialog h3 { margin-top: 0; margin-bottom: 12px; font-family: var(--f-display); font-size: 1.25rem; }
.modal-dialog label { display:block; font-size:0.8125rem; color:var(--muted); margin-top:12px; margin-bottom:6px; }
.modal-dialog input, .modal-dialog textarea { width:100%; padding:10px 12px; border-radius:8px; border:1px solid rgba(255,255,255,0.04); background: rgba(255,255,255,0.02); color:var(--text); }
.modal-close { position:absolute; top:10px; right:12px; background:transparent; border:0; color:var(--muted); font-size:18px; cursor:pointer; }
.modal-success { padding:18px; text-align:center; }

@media (max-width:640px) {
  .modal-dialog { margin: 0 16px; }
}
