/* ─── Variables ─── */
:root {
  --bg: #080808;
  --bg-elevated: #111111;
  --bg-card: #0d0d0d;
  --text: #f2f0eb;
  --text-muted: #8a8880;
  --text-dim: #5c5a54;
  --accent: #c8bfb0;
  --accent-dim: rgba(200, 191, 176, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --header-h: 72px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1280px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  flex-shrink: 0;
  z-index: 101;
}

.logo img {
  height: clamp(21px, 2.875vw, 28px);
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-list a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.75);
  transition: color 0.25s;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-login {
  color: var(--accent) !important;
}

body.page-exit {
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--text);
}

.lang-divider {
  width: 1px;
  height: 12px;
  background: var(--border);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle.open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 3rem) var(--pad-x) 4rem;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.35) 0%, rgba(8, 8, 8, 0.15) 40%, rgba(8, 8, 8, 0.75) 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.5) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(242, 240, 235, 0.7);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: var(--pad-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
  animation: float 3s ease-in-out infinite;
}

.scroll-hint:hover { color: var(--text); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Sections ─── */
.section {
  padding: clamp(5rem, 12vw, 9rem) 0;
  border-top: 1px solid var(--border);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-index {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-content-col p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── Philosophy ─── */
.section-philosophy {
  background: var(--bg-elevated);
}

.section-header-center {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 1rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillars li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.3s;
}

.pillars li:hover {
  background: var(--bg-card);
}

.pillar-num {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── Services ─── */
.section-side-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
}

.services-grid li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s, padding-left 0.3s var(--ease);
  position: relative;
}

.services-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.services-grid li:hover {
  color: var(--text);
  padding-left: 1rem;
}

.services-grid li:hover::before {
  width: 6px;
}

/* ─── Approach ─── */
.approach-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.approach-text p {
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.approach-text p + p {
  margin-top: 1rem;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  border-left: 1px solid var(--border);
}

.approach-steps li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.approach-steps li:last-child {
  border-bottom: none;
}

.step-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ─── Technology ─── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.tech-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.tech-features li {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s;
}

.tech-features li:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.tech-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.tech-ring {
  width: clamp(200px, 30vw, 280px);
  height: clamp(200px, 30vw, 280px);
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.tech-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tech-ring-brand {
  line-height: 1;
}

.tech-ring-partnership {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.tech-ring-x {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1;
  opacity: 0.65;
}

.tech-ring-s35-logo {
  height: 0.72rem;
  width: auto;
  display: block;
}

.tech-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

/* ─── Contact ─── */
.section-contact {
  background: var(--bg-elevated);
  border-top: none;
}

.contact-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 1rem 0 1.5rem;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-regions {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ─── Footer ─── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  height: 14px;
  width: auto;
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav-list { display: none; }
  .menu-toggle { display: flex; }

  .section-grid,
  .approach-card,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .approach-steps {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .approach-steps li {
    padding-left: 0;
  }

  .scroll-hint { display: none; }
}

@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .stats { flex-direction: column; gap: 1.5rem; }
  .tech-features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero-overlay {
    background: var(--bg);
  }
  .scroll-hint,
  .tech-ring::before { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
