/* ═══════════════════════════════════════════
   ZELIO GLOBAL — Design System v2
   Light/Dark · Animations · Bilingual-ready
   ═══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ══════════ CSS VARIABLES ══════════ */
:root {
  /* Light theme (default) */
  --bg-primary: #FBFAF6;
  --bg-secondary: #F4F1EA;
  --bg-card: #fff;
  --bg-cell: #FBFAF6;
  --bg-cell-hover: #fff;
  --bg-header: rgba(251, 250, 246, .86);
  --text-primary: #16140E;
  --text-secondary: #46423a;
  --text-muted: #8a8478;
  --text-faint: #C9C3B5;
  --border-hard: #1C190F;
  --border-soft: #E0DBD0;
  --border-section: #EDE8DD;
  --accent: #EC4A2A;
  --accent-hover: #D43F20;
  --shadow-color: #16140E;
  --grid-line: #EDE8DD;
  --grid-line-alt: #E6E1D5;
  --card-bg: #FBFAF6;
  --logo-strip-bg: #F4F1EA;
  --status-green: #1F9D55;
  --cta-bg: #16140E;
  --cta-text: #FBFAF6;
  --footer-bg: #16140E;
  --footer-text: rgba(251, 250, 246, .6);
  --phone-bg: #fff;
  --info-card-bg: #fff;
  --toggle-bg: transparent;
  --toggle-border: var(--border-hard);
  --toggle-color: var(--text-primary);
}

[data-theme="dark"] {
  --bg-primary: #0e0e11;
  --bg-secondary: #151519;
  --bg-card: #1a1a1f;
  --bg-cell: #141418;
  --bg-cell-hover: #1c1c22;
  --bg-header: rgba(14, 14, 17, .88);
  --text-primary: #F0EDE6;
  --text-secondary: #a8a29e;
  --text-muted: #6b6560;
  --text-faint: #3d3a36;
  --border-hard: rgba(255,255,255,.14);
  --border-soft: rgba(255,255,255,.07);
  --border-section: rgba(255,255,255,.05);
  --grid-line: rgba(255,255,255,.04);
  --grid-line-alt: rgba(255,255,255,.04);
  --card-bg: #1a1a1f;
  --logo-strip-bg: #151519;
  --shadow-color: #000;
  --cta-bg: #1a1a1f;
  --cta-text: #F0EDE6;
  --footer-bg: #0a0a0d;
  --footer-text: rgba(240, 237, 230, .5);
  --phone-bg: #1a1a1f;
  --info-card-bg: #1a1a1f;
  --toggle-bg: rgba(255,255,255,.06);
  --toggle-border: rgba(255,255,255,.14);
  --toggle-color: #F0EDE6;
}

/* ══════════ RESET ══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
::selection { background: #EC4A2A; color: #fff; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.te-team-scroll { scrollbar-width: none; }
.te-team-scroll::-webkit-scrollbar { display: none; }

/* ══════════ ANIMATIONS ══════════ */
@keyframes teFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(.5deg); }
  75% { transform: translateY(4px) rotate(-.3deg); }
}
@keyframes teBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(236,74,42,.3); }
  70% { box-shadow: 0 0 0 12px rgba(236,74,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,74,42,0); }
}
@keyframes drawLine {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes cursorBlink {
  0%, 100% { border-right-color: var(--accent); }
  50% { border-right-color: transparent; }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}

/* Reveal animation classes */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.stagger-1 { transition-delay: .05s; }
.stagger-2 { transition-delay: .1s; }
.stagger-3 { transition-delay: .15s; }
.stagger-4 { transition-delay: .2s; }
.stagger-5 { transition-delay: .25s; }
.stagger-6 { transition-delay: .3s; }

/* ══════════ LAYOUT ══════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.mono { font-family: 'JetBrains Mono', monospace; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ══════════ HEADER ══════════ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hard);
  transition: background .4s ease;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px; background: var(--accent); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
  transition: transform .3s ease;
}
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.05); }
.logo-text { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--text-primary); transition: color .4s; }

/* Nav */
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
  font-family: 'JetBrains Mono', monospace; transition: color .18s;
  position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1.5px;
  background: var(--accent); transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

/* Header controls */
.header-controls { display: flex; align-items: center; gap: 10px; }
.ctrl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--toggle-border);
  background: var(--toggle-bg); border-radius: 4px; cursor: pointer;
  color: var(--toggle-color); transition: all .2s; font-size: 15px;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--toggle-border); background: var(--toggle-bg);
  border-radius: 4px; overflow: hidden; height: 36px;
}
.lang-btn span {
  padding: 0 10px; height: 100%; display: flex; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all .2s; color: var(--text-muted);
  letter-spacing: .04em;
}
.lang-btn span.active { background: var(--accent); color: #fff; }
.lang-btn span:not(.active):hover { color: var(--text-primary); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px;
  padding: 9px 16px; border-radius: 3px; border: none; cursor: pointer;
  transition: background .18s, transform .12s;
}
.btn-cta:hover { background: var(--accent-hover); }
.btn-cta:active { transform: scale(.97); }

/* Burger */
.burger {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--border-hard);
  background: transparent; border-radius: 3px; cursor: pointer; color: var(--text-primary);
}

/* Mobile menu */
.mobile-menu {
  display: none; border-top: 1px solid var(--border-hard);
  background: var(--bg-primary); padding: 8px 22px 18px; flex-direction: column;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: var(--text-primary); font-size: 15px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; padding: 13px 4px;
  border-bottom: 1px solid var(--border-section); transition: color .18s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn-cta {
  justify-content: center; font-size: 15px; padding: 13px 16px;
  margin-top: 14px; border-bottom: none;
}
.mobile-controls {
  display: flex; gap: 8px; padding: 10px 4px; border-bottom: 1px solid var(--border-section);
}

/* ══════════ HERO ══════════ */
.hero { position: relative; border-bottom: 1px solid var(--border-hard); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(900px 500px at 78% 30%, #000, transparent 78%);
  mask-image: radial-gradient(900px 500px at 78% 30%, #000, transparent 78%);
  pointer-events: none;
}
/* Floating particles canvas */
#particles-canvas {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto;
  padding: 100px 40px 90px; display: grid; grid-template-columns: 1.04fr .96fr;
  gap: 56px; align-items: center;
}
.hero-tagline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: .1em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 28px;
}
.hero-tagline .dot {
  width: 7px; height: 7px; background: var(--accent);
  border-radius: 50%; animation: teBlink 2.4s ease-in-out infinite;
}
.hero h1 {
  font-size: 66px; line-height: 1.04; font-weight: 800;
  letter-spacing: -.035em; color: var(--text-primary); margin-bottom: 28px;
  transition: color .4s;
}
.hero h1 .accent { position: relative; color: var(--accent); }
.hero h1 .accent svg { position: absolute; left: 0; bottom: -6px; width: 100%; }
.hero-desc {
  font-size: 18px; line-height: 1.65; color: var(--text-secondary);
  max-width: 460px; margin-bottom: 36px;
}
.hero-buttons { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.btn-dark {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--text-primary); color: var(--bg-primary);
  font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: 3px;
  transition: all .2s; position: relative; overflow: hidden;
}
.btn-dark::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transform: translateX(-100%); transition: transform .5s;
}
.btn-dark:hover::before { transform: translateX(100%); }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-dark:active { transform: scale(.98); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 1px solid var(--border-hard);
  color: var(--text-primary); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 3px; transition: all .2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Phone wireframe */
.hero-visual {
  position: relative; height: 520px;
  display: flex; align-items: center; justify-content: center;
}
/* Decorative rotating ring */
.hero-ring {
  position: absolute; width: 340px; height: 340px;
  border: 1px dashed var(--border-soft); border-radius: 50%;
  animation: rotateSlow 40s linear infinite; pointer-events: none;
}
.hero-ring::before {
  content: '●'; position: absolute; top: -4px; left: 50%;
  transform: translateX(-50%); color: var(--accent); font-size: 8px;
}
.cross-mark { position: absolute; }
.cross-mark.tl { top: 14px; left: 14px; }
.cross-mark.tr { top: 14px; right: 14px; }
.cross-mark.bl { bottom: 14px; left: 14px; }
.cross-mark.br { bottom: 14px; right: 14px; }
.annotation {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 8px;
}
.annotation-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: var(--bg-card); border: 1px solid var(--border-hard);
  padding: 4px 8px; border-radius: 2px; white-space: nowrap;
  color: var(--text-primary); transition: background .4s, color .4s, border-color .4s;
}
.annotation-label.accent-label { color: var(--accent); border-color: var(--accent); }
.annotation-line { width: 46px; height: 1px; background: var(--border-hard); transition: background .4s; }
.phone-frame {
  position: relative; width: 230px; height: 466px;
  border: 1.5px solid var(--border-hard); border-radius: 34px;
  background: var(--phone-bg); box-shadow: 8px 8px 0 var(--shadow-color);
  animation: teFloat 7s ease-in-out infinite;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.phone-notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 6px; border-radius: 6px; background: var(--text-primary);
  transition: background .4s;
}
.phone-screen { padding: 40px 20px 20px; }
.phone-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase;
}
.phone-title {
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  margin-top: 4px; color: var(--text-primary); transition: color .4s;
}
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.phone-tile {
  aspect-ratio: 1; border: 1.3px solid var(--border-hard); border-radius: 4px;
  display: flex; align-items: flex-end; padding: 9px; transition: border-color .4s;
}
.phone-tile span {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  font-weight: 600; line-height: 1.2;
}
.phone-tile.red { background: var(--accent); }
.phone-tile.red span { color: #fff; }
.phone-tile.dark { background: var(--text-primary); }
.phone-tile.dark span { color: var(--bg-primary); }
.phone-tile.white { background: var(--bg-card); }
.phone-tile.white span { color: var(--text-primary); }
.phone-bar {
  margin-top: 14px; border: 1.3px solid var(--border-hard); border-radius: 4px;
  padding: 11px; display: flex; align-items: center; gap: 9px; transition: border-color .4s;
}
.phone-bar-icon { width: 22px; height: 22px; border: 1.3px solid var(--border-hard); border-radius: 3px; transition: border-color .4s; }
.phone-bar-line1 { height: 5px; width: 62%; background: var(--text-primary); border-radius: 3px; transition: background .4s; }
.phone-bar-line2 { height: 5px; width: 40%; background: var(--text-faint); border-radius: 3px; margin-top: 5px; transition: background .4s; }

/* ══════════ LOGO STRIP ══════════ */
.logo-strip {
  border-bottom: 1px solid var(--border-hard);
  background: var(--logo-strip-bg);
  overflow: hidden; transition: background .4s, border-color .4s;
}
.logo-strip-inner {
  display: flex; align-items: center; gap: 0; padding: 16px 0;
  width: max-content;
  animation: marquee 20s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.logo-strip-inner:hover { animation-play-state: paused; }
.logo-strip-set {
  display: flex; align-items: center; gap: 24px; padding: 0 32px;
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 13.5px; color: var(--text-secondary);
  white-space: nowrap; flex-shrink: 0;
}
.logo-strip-divider { color: var(--text-faint); }
.logo-strip-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; color: var(--text-muted); white-space: nowrap;
}

/* ══════════ ABOUT ══════════ */
.section-border { border-bottom: 1px solid var(--border-hard); transition: border-color .4s; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
}
.grid-bg-left {
  -webkit-mask-image: radial-gradient(800px 460px at 20% 40%, #000, transparent 80%);
  mask-image: radial-gradient(800px 460px at 20% 40%, #000, transparent 80%);
}
.grid-bg-center {
  -webkit-mask-image: radial-gradient(760px 380px at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(760px 380px at 50% 0%, #000, transparent 78%);
}
.about-grid {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 88px 40px; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: start;
}
.about-title {
  font-size: 46px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.05; color: var(--text-primary); margin-bottom: 28px; transition: color .4s;
}
.about-title .accent, h1 .accent-text, h2 .accent { color: var(--accent); }
.about-text {
  font-size: 16.5px; line-height: 1.7; color: var(--text-secondary);
  max-width: 500px; margin-bottom: 22px; transition: color .4s;
}

/* Info card */
.info-card-wrap { position: relative; padding: 14px; }
.info-card {
  border: 1.5px solid var(--border-hard); background: var(--info-card-bg);
  box-shadow: 8px 8px 0 var(--shadow-color);
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.info-card-header {
  border-bottom: 1px solid var(--border-hard); padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.info-card-header-title {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; color: var(--text-primary);
}
.info-card-header-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); }
.info-row { padding: 18px 22px; border-bottom: 1px solid var(--border-soft); transition: border-color .4s; }
.info-row:last-child { border-bottom: none; }
.info-row-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 7px;
}
.info-row-value { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--text-primary); }
.info-row-value.addr { font-size: 15px; font-weight: 500; line-height: 1.5; }
.info-split { display: grid; grid-template-columns: 1fr 1fr; }
.info-split > div:first-child { border-right: 1px solid var(--border-soft); }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--status-green);
  box-shadow: 0 0 0 3px rgba(31, 157, 85, .16);
  display: inline-block; margin-right: 8px; animation: pulseRing 2s infinite;
}

/* ══════════ APPS ══════════ */
.apps-header {
  max-width: 1280px; margin: 0 auto; padding: 88px 40px 0;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}
.apps-title {
  font-size: 44px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.06; color: var(--text-primary);
}
.apps-desc { max-width: 320px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.apps-grid {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--border-hard); border-left: 1px solid var(--border-hard); border-right: 1px solid var(--border-hard);
  background: var(--border-hard); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
}
.app-cell {
  background: var(--bg-cell); padding: 32px; display: block;
  transition: background .2s, transform .2s;
}
.app-cell:hover { background: var(--bg-cell-hover); }
.app-cell-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.app-cell-icon {
  width: 46px; height: 46px; border: 1.4px solid var(--border-hard);
  border-radius: 5px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); transition: transform .3s, border-color .4s;
}
.app-cell:hover .app-cell-icon { transform: scale(1.08) rotate(-4deg); }
.app-cell-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); }
.app-cell-tag.accent { color: var(--accent); }
.app-cell h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 9px; color: var(--text-primary); }
.app-cell p { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 20px; }
.app-cell-link { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 500; color: var(--accent); transition: letter-spacing .2s; }
.app-cell:hover .app-cell-link { letter-spacing: .04em; }

/* ══════════ FEATURES ══════════ */
.features-header { max-width: 1280px; margin: 0 auto; padding: 88px 40px 48px; }
.features-title {
  font-size: 42px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.06; color: var(--text-primary); max-width: 620px;
}
.features-grid {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--border-hard); border-left: 1px solid var(--border-hard); border-right: 1px solid var(--border-hard);
  background: var(--border-hard); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
}
.feature-cell {
  background: var(--bg-cell); padding: 32px; transition: background .2s;
}
.feature-cell:hover { background: var(--bg-cell-hover); }
.feature-cell-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.feature-cell-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); }
.feature-cell h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.feature-cell p { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
.feature-cell svg { transition: transform .3s; }
.feature-cell:hover svg { transform: scale(1.12) rotate(-6deg); }

/* ══════════ STORY ══════════ */
.story-section {
  border-bottom: 1px solid var(--border-hard);
  background: var(--bg-secondary); position: relative; overflow: hidden;
  transition: background .4s;
}
.story-inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 88px 40px; }
.story-header { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.story-title {
  font-size: 48px; font-weight: 800; letter-spacing: -.04em;
  line-height: 1.02; color: var(--text-primary); margin-bottom: 26px;
}
.story-desc {
  font-size: 17px; line-height: 1.72; color: var(--text-secondary);
  max-width: 640px; margin: 0 auto;
}
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  position: relative; border: 1.5px solid var(--border-hard);
  background: var(--card-bg); box-shadow: 7px 7px 0 var(--shadow-color);
  padding: 34px 36px; transition: transform .2s, box-shadow .2s, background .4s, border-color .4s;
}
.mv-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--accent); }
.mv-card-top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.mv-icon {
  width: 42px; height: 42px; border: 1.5px solid var(--border-hard);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); flex-shrink: 0; transition: border-color .4s;
}
.mv-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text-primary); }
.mv-card p { font-size: 15.5px; line-height: 1.65; color: var(--text-secondary); }

/* ══════════ VALUES ══════════ */
.values-section { background: var(--bg-primary); transition: background .4s; }
.values-grid {
  max-width: 1280px; margin: 0 auto; padding: 88px 40px;
  display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start;
}
.values-sticky { position: sticky; top: 96px; }
.values-title {
  font-size: 46px; font-weight: 800; letter-spacing: -.035em;
  line-height: 1.04; color: var(--text-primary); margin-bottom: 22px;
}
.values-desc { font-size: 15.5px; line-height: 1.65; color: var(--text-secondary); max-width: 300px; }
.values-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 0; }
.value-item { padding: 28px 0 30px; transition: transform .2s; }
.value-item:hover { transform: translateX(4px); }
.value-item:nth-child(1), .value-item:nth-child(2) { border-top: 1.5px solid var(--border-hard); }
.value-item:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
.value-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.value-num { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--accent); }
.value-line { height: 1px; flex: 1; background: var(--border-soft); }
.value-item h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; color: var(--text-primary); }
.value-item p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ══════════ TEAM ══════════ */
.team-section { border-bottom: 1px solid var(--border-hard); background: var(--bg-secondary); overflow: hidden; transition: background .4s; }
.team-header {
  max-width: 1280px; margin: 0 auto; padding: 76px 40px 34px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.team-title { font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: var(--text-primary); }
.team-nav { display: flex; gap: 8px; }
.team-nav-btn {
  width: 42px; height: 42px; border: 1px solid var(--border-hard);
  background: transparent; border-radius: 3px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all .2s; color: var(--text-primary);
}
.team-nav-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(236,74,42,.06); }
.team-track {
  max-width: 1280px; margin: 0 auto; padding: 32px 40px 60px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.team-card {
  flex: 0 0 340px; scroll-snap-align: start;
  border: 1.5px solid var(--border-hard); background: var(--card-bg);
  box-shadow: 6px 6px 0 var(--shadow-color);
  transition: transform .2s, box-shadow .2s, background .4s;
}
.team-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--accent); }
.team-card-photo {
  height: 180px; border-bottom: 1px solid var(--border-hard);
  background: var(--bg-secondary); display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 800; color: var(--text-faint); letter-spacing: -.02em;
  transition: background .4s;
}
.team-card-body { padding: 24px; }
.team-card-role {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}
.team-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; color: var(--text-primary); }
.team-card p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ══════════ FAQ ══════════ */
.faq-section { border-bottom: 1px solid var(--border-hard); }
.faq-inner { max-width: 920px; margin: 0 auto; padding: 88px 40px; }
.faq-title {
  font-size: 44px; font-weight: 800; letter-spacing: -.03em;
  line-height: 1.06; color: var(--text-primary); margin-bottom: 48px;
}
.faq-item { border-top: 1px solid var(--border-hard); }
.faq-item:last-child { border-bottom: 1px solid var(--border-hard); }
.faq-question {
  width: 100%; background: none; border: none; padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; text-align: left; gap: 16px; color: inherit;
}
.faq-question span {
  font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--text-primary);
  transition: color .2s;
}
.faq-question:hover span { color: var(--accent); }
.faq-toggle {
  width: 32px; height: 32px; border: 1.4px solid var(--border-hard);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .25s; color: var(--text-primary);
}
.faq-item.active .faq-toggle {
  background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.faq-answer-inner { padding: 0 0 26px; font-size: 15px; line-height: 1.72; color: var(--text-secondary); max-width: 640px; }

/* ══════════ CTA ══════════ */
.cta-section {
  background: var(--cta-bg); border-bottom: 1px solid var(--border-hard);
  position: relative; overflow: hidden; transition: background .4s;
}
.cta-inner { max-width: 1080px; margin: 0 auto; padding: 88px 40px; text-align: center; position: relative; }
.cta-title {
  font-size: 48px; font-weight: 800; letter-spacing: -.04em;
  line-height: 1.04; color: var(--cta-text); margin-bottom: 22px;
}
.cta-title .accent { color: var(--accent); }
.cta-desc { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-bottom: 38px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-lg {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 3px; border: none; cursor: pointer;
  transition: background .18s, transform .15s; position: relative; overflow: hidden;
}
.btn-cta-lg:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 1px solid rgba(255,255,255,.2);
  color: var(--cta-text); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 3px; transition: all .2s;
}
.btn-outline-light:hover { border-color: var(--accent); color: var(--accent); }
.cta-email { margin-top: 30px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-muted); }
.cta-email a { color: var(--accent); transition: color .18s; }
.cta-email a:hover { color: var(--cta-text); }

/* ══════════ FOOTER ══════════ */
.footer { background: var(--footer-bg); color: var(--cta-text); transition: background .4s; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 60px 40px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-desc { font-size: 14px; line-height: 1.65; color: var(--footer-text); margin-top: 16px; max-width: 300px; }
.footer-col-title {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 14px; color: var(--footer-text); padding: 5px 0; transition: color .18s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); }
.footer-socials { display: flex; gap: 12px; }
.footer-social-link {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--footer-text); transition: all .2s;
}
.footer-social-link:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════
   RESPONSIVE — All Devices
   ══════════════════════════════════════ */

/* ── Large Tablet / Small Desktop (≤1024px) ── */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .about-grid { gap: 48px; }
  .values-grid { gap: 48px; }
  .footer-grid { gap: 36px; }
  .team-card { flex: 0 0 300px; }
}

/* ── Tablet (≤860px) ── */
@media (max-width: 860px) {
  /* Navigation */
  .nav { display: none !important; }
  .burger { display: inline-flex !important; }

  /* Global spacing */
  .container, .hero-inner, .about-grid, .features-header,
  .faq-inner, .cta-inner, .footer-inner,
  .team-header, .team-track, .apps-header,
  .values-grid, .story-inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  .hero h1 { font-size: 48px; }
  .hero-visual { height: 420px; }
  .hero-desc { max-width: 100%; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding-top: 64px; padding-bottom: 64px;
  }
  .about-text { max-width: 100%; }

  /* Grids → 2 columns on tablet */
  .features-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .apps-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Mission/Vision */
  .mv-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .mv-card { padding: 28px; }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding-top: 64px; padding-bottom: 64px;
  }
  .values-sticky { position: static !important; }
  .values-list { grid-template-columns: 1fr 1fr !important; }

  /* Team */
  .team-card { flex: 0 0 280px !important; }
  .team-track { padding-bottom: 48px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }

  /* Sections padding */
  .features-header, .faq-inner, .cta-inner, .story-inner {
    padding-top: 64px !important; padding-bottom: 64px !important;
  }
  .apps-header { padding-top: 64px !important; }
}

/* ── Small Tablet (≤768px) ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 42px; letter-spacing: -.03em; }
  .hero-desc { font-size: 16px; }
  .about-title { font-size: 38px; }
  .features-title { font-size: 36px; }
  .story-title { font-size: 38px; }
  .story-desc { font-size: 15.5px; }
  .values-title { font-size: 38px; }
  .team-title { font-size: 36px; }
  .faq-title { font-size: 36px; }
  .apps-title { font-size: 36px; }
  .cta-title { font-size: 38px; }

  .values-list { column-gap: 32px; }
  .team-card { flex: 0 0 75vw !important; }
  .team-card-photo { height: 160px; font-size: 46px; }

  .info-card { box-shadow: 6px 6px 0 var(--shadow-color); }
  .mv-card { box-shadow: 5px 5px 0 var(--shadow-color); }
  .phone-frame { box-shadow: 6px 6px 0 var(--shadow-color); }
}

/* ── Large Phone / Small Tablet (≤640px) ── */
@media (max-width: 640px) {
  /* Hero */
  .hero h1 { font-size: 36px !important; line-height: 1.08 !important; }
  .hero-visual { height: 360px !important; }
  .phone-frame { width: 190px !important; height: 386px !important; }
  .hero-ring { width: 280px !important; height: 280px !important; }
  .hero-tagline { font-size: 11px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-buttons { gap: 10px; }

  /* Buttons — full width on small screens */
  .btn-dark, .btn-outline {
    width: 100%; justify-content: center; padding: 14px 20px;
  }

  /* Grids → 1 column */
  .features-grid, .apps-grid { grid-template-columns: 1fr !important; }
  .values-list { grid-template-columns: 1fr !important; }

  /* All value items get the same border treatment in 1-col */
  .value-item:nth-child(1), .value-item:nth-child(2) {
    border-top: 1px solid var(--border-soft);
  }
  .value-item:first-child { border-top: 1.5px solid var(--border-hard); }

  /* Titles */
  .about-title, .features-title, .story-title, .values-title,
  .team-title, .faq-title, .apps-title, .cta-title {
    font-size: 30px !important; line-height: 1.08 !important;
  }

  /* FAQ */
  .faq-question span { font-size: 15px; }
  .faq-answer-inner { font-size: 14px; }
  .faq-toggle { width: 28px; height: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* CTA */
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-cta-lg, .btn-outline-light { width: 100%; max-width: 300px; justify-content: center; }
  .cta-desc { font-size: 15px; }

  /* Hide decorative elements */
  .te-hide-sm { display: none !important; }
  .annotation { display: none !important; }

  /* Apps header stack vertically */
  .apps-header { flex-direction: column; align-items: flex-start; }
  .apps-desc { max-width: 100%; }

  /* Cards reduce shadow */
  .info-card, .mv-card, .team-card, .phone-frame {
    box-shadow: 4px 4px 0 var(--shadow-color) !important;
  }
  .mv-card { padding: 24px; }

  /* Team */
  .team-card { flex: 0 0 85vw !important; }
  .team-header { padding-top: 56px; }

  /* Logo strip font */
  .logo-strip-set { font-size: 12px; gap: 16px; }
}

/* ── Phone (≤480px) ── */
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; height: 58px; }
  .logo-text { font-size: 14px; }
  .logo-icon { width: 32px; height: 32px; font-size: 14px; }

  .hero-inner { padding-top: 40px !important; padding-bottom: 40px !important; }
  .hero h1 { font-size: 32px !important; }
  .hero-desc { font-size: 14.5px; line-height: 1.6; }
  .hero-visual { height: 320px !important; }
  .phone-frame { width: 165px !important; height: 340px !important; border-radius: 28px; }
  .phone-notch { width: 60px; height: 5px; top: 11px; }
  .phone-screen { padding: 34px 16px 16px; }
  .phone-title { font-size: 16px; }
  .phone-grid { gap: 8px; margin-top: 14px; }
  .phone-tile span { font-size: 8px; }
  .hero-ring { width: 230px !important; height: 230px !important; }

  /* All paddings tighter */
  .container, .hero-inner, .about-grid, .features-header,
  .faq-inner, .cta-inner, .footer-inner,
  .team-header, .team-track, .apps-header,
  .values-grid, .story-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Section paddings */
  .about-grid, .features-header, .faq-inner, .cta-inner,
  .story-inner, .values-grid {
    padding-top: 52px !important; padding-bottom: 52px !important;
  }
  .apps-header { padding-top: 52px !important; }
  .team-header { padding-top: 48px !important; }

  /* Feature & app cells */
  .feature-cell, .app-cell { padding: 24px; }
  .app-cell-top { margin-bottom: 32px; }

  /* Titles */
  .about-title, .features-title, .story-title, .values-title,
  .team-title, .faq-title, .apps-title, .cta-title {
    font-size: 26px !important;
  }
  .about-text { font-size: 15px; }
  .feature-cell h3, .app-cell h3 { font-size: 16px; }
  .feature-cell p, .app-cell p { font-size: 13px; }
  .value-item h3 { font-size: 17px; }
  .value-item p { font-size: 13px; }
  .mv-card h3 { font-size: 19px; }
  .mv-card p { font-size: 14px; }

  /* Team cards */
  .team-card { flex: 0 0 88vw !important; }
  .team-card-photo { height: 140px; font-size: 40px; }
  .team-card-body { padding: 20px; }
  .team-card h3 { font-size: 17px; }
  .team-card p { font-size: 13px; }

  /* Footer compact */
  .footer-inner { padding: 40px 16px 24px; }
  .footer-grid { gap: 24px !important; margin-bottom: 32px; }
  .footer-brand-desc { font-size: 13px; }

  /* Info card compact */
  .info-card-wrap { padding: 8px; }
  .info-row { padding: 14px 16px; }
  .info-card-header { padding: 12px 16px; }

  /* Mobile menu touch targets */
  .mobile-menu a { padding: 15px 4px; font-size: 16px; min-height: 48px; display: flex; align-items: center; }
  .mobile-controls { padding: 12px 4px; }

  /* Lang & theme buttons — ensure touch friendly */
  .ctrl-btn { width: 40px; height: 40px; }
  .lang-btn { height: 40px; }
  .lang-btn span { padding: 0 12px; font-size: 12px; }
  .burger { width: 44px; height: 44px; }
  .team-nav-btn { width: 44px; height: 44px; }
}

/* ── Small Phone (≤360px) ── */
@media (max-width: 360px) {
  .hero h1 { font-size: 28px !important; }
  .about-title, .features-title, .story-title, .values-title,
  .team-title, .faq-title, .apps-title, .cta-title {
    font-size: 24px !important;
  }
  .hero-visual { height: 280px !important; }
  .phone-frame { width: 145px !important; height: 296px !important; }
  .hero-ring { width: 200px !important; height: 200px !important; }
  .logo-text { font-size: 13px; }
  .header-inner { gap: 8px; }
  .team-card { flex: 0 0 92vw !important; }
  .mv-card { padding: 20px; }
  .info-split { grid-template-columns: 1fr; }
  .info-split > div:first-child { border-right: none; border-bottom: 1px solid var(--border-soft); }
}

/* ── Touch device optimizations ── */
@media (hover: none) {
  .app-cell:hover, .feature-cell:hover { background: var(--bg-cell); }
  .mv-card:hover, .team-card:hover { transform: none; box-shadow: 6px 6px 0 var(--shadow-color); }
  .btn-dark:hover::before { transform: translateX(-100%); }
  .nav a::after { display: none; }
  .value-item:hover { transform: none; }
}

/* ── Landscape phone ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-inner { padding-top: 32px !important; padding-bottom: 32px !important; min-height: auto; }
  .hero-visual { height: 300px !important; }
}

/* ── Print ── */
@media print {
  .header, .hero-ring, #particles-canvas, .mobile-menu,
  .team-nav, .logo-strip, .cta-section { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .section-border { border-color: #ccc !important; }
}
