/* ===========================================================
   Fixsistem — Animated Showcase
   Dark cinematic · hi-vis orange · scroll-driven deconstruct
   =========================================================== */

:root {
  --bg: #0A0A0B;
  --bg-soft: #111114;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #F5F5F5;
  --text-secondary: rgba(245, 245, 245, 0.62);
  --text-muted: rgba(245, 245, 245, 0.40);
  --accent: #FF5A1F;
  --accent-rgb: 255, 90, 31;
  --accent-hover: #FF7A45;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --section-padding: clamp(4.5rem, 9vw, 9rem);
  --container-max: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
p { text-wrap: pretty; }

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

.accent-text { color: var(--accent); }

.wordmark { font-family: var(--font-display); letter-spacing: -0.022em; color: var(--text); }
.wordmark .wm-fix { font-weight: 700; }
.wordmark .wm-rest { font-weight: 400; }

/* ---------- Logo mark ---------- */
.logo-mark {
  width: 1.85em; height: 1.85em; flex: none; display: block;
  border-radius: 26%;
  box-shadow: 0 6px 18px -6px rgba(var(--accent-rgb), 0.65),
              inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.logo-mark .lm-tile { fill: var(--accent); }
.logo-mark .lm-sheen { fill: #fff; opacity: 0.12; }
.logo-mark .lm-ink { stroke: #fff; opacity: 0.95; }
.logo-mark .lm-bars rect { fill: #fff; }
.logo-mark .lm-scan { fill: #fff; }
.nav-logo:hover .logo-mark { transform: translateY(-1px) rotate(-3deg); }
.logo-mark { transition: transform 0.35s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.9rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--accent); color: #100800;
  box-shadow: 0 0 0 rgba(var(--accent-rgb), 0.4), 0 8px 30px -8px rgba(var(--accent-rgb), 0.5);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 34px -4px rgba(var(--accent-rgb), 0.65); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-secondary:active { transform: scale(0.97); }
.btn-large { padding: 1.15rem 3rem; font-size: 1.1rem; }

/* ---------- Eyebrows / section headers ---------- */
.eyebrow, .section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem;
}
.eyebrow-pulse, .eyebrow-pulse::after {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative;
}
.eyebrow-pulse::after { content: ''; position: absolute; inset: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); } 100% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); } }

.section-title { margin-bottom: 1rem; }
.section-intro { color: var(--text-secondary); max-width: 56ch; margin-bottom: 3rem; }

/* ---------- Scroll progress ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 10000; transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.loader-content { text-align: center; display: flex; flex-direction: column; align-items: center; }
.loader-logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.loader-logo .wordmark { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: 0.01em; }
.loader-text { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); margin: 1.5rem 0 1rem; }
.loader-bar-track { width: 220px; max-width: 60vw; height: 3px; border-radius: 99px; background: var(--border); overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 99px; transition: width 0.3s ease; box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7); }
.loader-pct { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-top: 0.85rem; }

/* ---------- Starscape ---------- */
#starscape { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.32; }

/* ---------- Navbar ---------- */
#navbar { position: fixed; top: 14px; left: 0; right: 0; z-index: 1000; transition: top 0.4s var(--ease); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  transition: max-width 0.4s var(--ease), background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease); border: 1px solid transparent; border-radius: 100px;
}
#navbar.nav-scrolled .nav-inner {
  max-width: 1120px; background: rgba(12, 12, 14, 0.62); border-color: var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 0.7rem 1.4rem;
}
.nav-logo { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.15rem; flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { font-size: 0.92rem; color: var(--text-secondary); transition: color 0.25s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-display); font-weight: 600; color: var(--accent) !important;
  border: 1px solid var(--border-strong); padding: 0.5rem 1.1rem; border-radius: 100px;
  transition: all 0.25s var(--ease); white-space: nowrap; flex: none;
}
.nav-cta:hover { background: var(--accent); color: #100800 !important; border-color: var(--accent); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); }
.lang-btn {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  padding: 0.25rem 0.55rem; border-radius: 100px; transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active { color: #100800; background: var(--accent); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-mobile { display: none; }

/* ---------- Hero ---------- */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 7rem 0 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb-1 { width: 540px; height: 540px; background: rgba(var(--accent-rgb), 0.16); top: -180px; right: -120px; }
.orb-2 { width: 420px; height: 420px; background: rgba(var(--accent-rgb), 0.08); bottom: -160px; left: -120px; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 38rem; }
.hero-title { margin-bottom: 1.5rem; }
.hero-subtitle { color: var(--text-secondary); font-size: clamp(1.05rem, 1.4vw, 1.25rem); margin-bottom: 2.2rem; max-width: 34rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.hero-trust li { font-size: 0.9rem; color: var(--text-muted); position: relative; padding-left: 1.1rem; }
.hero-trust li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-trust strong { color: var(--text); font-weight: 600; }
.hero-device { position: relative; }
.hero-device img {
  width: 100%; aspect-ratio: 4 / 4.6; height: auto;
  object-fit: cover; object-position: 52% 42%;
  display: block; border-radius: var(--radius);
  position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 30px 80px -34px rgba(0,0,0,0.65);
}
.hero-device-glow { position: absolute; inset: -8% -6% -12% -6%; background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.32), transparent 62%); filter: blur(28px); z-index: 0; }

.scroll-hint { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; color: var(--text-muted); }
.scroll-hint span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.scroll-arrow { width: 22px; height: 34px; border: 1.5px solid var(--border-strong); border-radius: 14px; position: relative; }
.scroll-arrow::after { content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; border-radius: 3px; background: var(--accent); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 35% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

/* ---------- Scroll animation (deconstruct) ---------- */
.scroll-animation { height: 400vh; position: relative; z-index: 1; }
.scroll-sticky { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
#frameCanvas { position: absolute; inset: 0; display: block; }
.scroll-caption { position: absolute; top: clamp(5.5rem, 12vh, 8rem); left: 0; right: 0; text-align: center; z-index: 5; pointer-events: none; padding: 0 1.5rem; }
.scroll-caption-eyebrow { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.scroll-caption-title { font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-top: 0.5rem; max-width: 18ch; margin-inline: auto; text-shadow: 0 4px 30px rgba(0,0,0,0.6); }

.annotation-card {
  position: absolute; bottom: clamp(2rem, 8vh, 5rem); left: clamp(1.5rem, 5vw, 4rem);
  width: min(340px, calc(100vw - 3rem));
  background: rgba(14, 14, 17, 0.66); border: 1px solid var(--border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
  opacity: 0; transform: translateY(22px); pointer-events: none; z-index: 10;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.annotation-card.visible { opacity: 1; transform: translateY(0); }
.card-progress { display: flex; gap: 5px; margin-bottom: 1.1rem; }
.card-progress i { width: 16px; height: 3px; border-radius: 2px; background: var(--border-strong); transition: width 0.4s var(--ease), background 0.4s var(--ease); }
.card-progress i.is-active { width: 26px; background: var(--accent); }
.card-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 1.1rem; }
.card-stat { display: flex; flex-direction: column; }
.card-stat-number { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1; }
.card-stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ---------- Problem ---------- */
#problem { padding: var(--section-padding) 0; position: relative; z-index: 1; background: var(--bg); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.problem-copy h2 { margin-bottom: 1.5rem; }
.problem-copy p { color: var(--text-secondary); margin-bottom: 1.2rem; }
.diff-list { display: flex; flex-direction: column; gap: 1rem; }
.diff-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: transform 0.3s var(--ease), border-color 0.3s; }
.diff-item:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.35); }
.diff-icon { font-size: 1.4rem; display: block; margin-bottom: 0.6rem; }
.diff-item h3 { margin-bottom: 0.35rem; }
.diff-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Specs ---------- */
#specs { position: relative; z-index: 1; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1040px; margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 2rem); text-align: center; }
.spec-item { position: relative; }
.spec-item:not(:last-child)::after { content: ''; position: absolute; right: -1rem; top: 15%; height: 70%; width: 1px; background: var(--border); }
.spec-number { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; display: block; transition: text-shadow 0.3s; letter-spacing: -0.03em; }
.spec-number.counting { text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.55); }
.spec-label { font-size: 0.88rem; color: var(--text-secondary); margin-top: 0.5rem; display: block; }

/* ---------- Features ---------- */
#features { padding: var(--section-padding) 0; position: relative; z-index: 1; background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), 0.3); background: var(--surface-2); }
.feature-icon { font-size: 1.9rem; margin-bottom: 1.1rem; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.2); }
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.96rem; }

/* ---------- Process ---------- */
#process { padding: var(--section-padding) 0; position: relative; z-index: 1; background: var(--bg-soft); }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.process-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; overflow: hidden; }
.process-step::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.process-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); }
.process-step h3 { margin: 0.8rem 0 0.5rem; }
.process-step p { color: var(--text-secondary); font-size: 0.96rem; }

/* ---------- Brands ---------- */
#brands { padding: var(--section-padding) 0; position: relative; z-index: 1; background: var(--bg); }
.brands-featured { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 2.5rem 0 1.5rem; }
.brand-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; transition: transform 0.3s var(--ease), border-color 0.3s; }
.brand-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.3); }
.brand-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; position: relative; z-index: 2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.02em; }
.brand-tag { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: 99px; padding: 0.3rem 0.7rem; position: relative; z-index: 2; }
.brand-card p { color: var(--text-secondary); font-size: 0.95rem; position: relative; z-index: 2; }
.brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.85rem; margin-top: 1.25rem; }
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  min-height: 88px; padding: 1.1rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.brand-logo img {
  max-height: 30px; max-width: 100%; width: auto; display: block;
  filter: brightness(0) invert(1); opacity: 0.58;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.brand-logo:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), 0.3); background: var(--surface-2); }
.brand-logo:hover img { filter: none; opacity: 1; }

/* ---------- Region ---------- */
#region { padding: var(--section-padding) 0; position: relative; z-index: 1; background: var(--bg); }
.region-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.region-copy h2 { margin-bottom: 1.1rem; }
.region-copy p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.region-legends { display: flex; flex-direction: column; gap: 0.7rem; }
.region-legend { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-secondary); }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8); }
.legend-dot--alt { background: transparent; border: 1.5px solid var(--border-strong); box-shadow: none; }
.region-cities { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.city { font-size: 0.9rem; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 99px; padding: 0.5rem 1rem; transition: all 0.25s var(--ease); }
.city:hover { border-color: var(--border-strong); color: var(--text); }
.city-hub { background: var(--accent); color: #100800; border-color: var(--accent); font-weight: 600; box-shadow: 0 0 24px -4px rgba(var(--accent-rgb), 0.6); }

/* ---------- Kargo ---------- */
#cargo { padding: var(--section-padding) 0; position: relative; z-index: 1; background: var(--bg); }
.cargo-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cargo-copy h2 { margin-bottom: 1.1rem; }
.cargo-copy > p { color: var(--text-secondary); margin-bottom: 1.6rem; max-width: 50ch; }
.cargo-rules { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.cargo-rules li { position: relative; padding-left: 1.7rem; color: var(--text-secondary); font-size: 0.96rem; line-height: 1.5; }
.cargo-rules li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.cargo-rules strong { color: var(--text); font-weight: 600; }
.cargo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.9rem; }
.cargo-card-title { font-size: 1.05rem; margin-bottom: 1.3rem; }
.cargo-meta { list-style: none; display: flex; flex-direction: column; gap: 1.05rem; }
.cargo-meta li { display: flex; flex-direction: column; gap: 0.25rem; }
.cargo-meta .meta-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.cargo-meta li > span:last-child { color: var(--text); font-size: 1.02rem; line-height: 1.4; }
.cargo-code { color: var(--accent) !important; font-family: var(--font-mono); font-weight: 600; font-size: 1.15rem !important; letter-spacing: 0.04em; }

/* ---------- Contact ---------- */
#contact { padding: var(--section-padding) 0; position: relative; z-index: 1; background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-form-wrap h2 { margin-bottom: 1rem; }
.contact-form-wrap > p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.field input, .field textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.25s, background 0.25s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.contact-form .btn { align-self: flex-start; margin-top: 0.4rem; }
.form-note { font-size: 0.9rem; color: var(--accent); margin-top: 0.3rem; }

.contact-panel { display: flex; flex-direction: column; gap: 1.25rem; }
.wa-panel { display: flex; align-items: center; gap: 1rem; background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.35); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: all 0.3s var(--ease); }
.wa-panel:hover { background: rgba(var(--accent-rgb), 0.16); transform: translateY(-3px); }
.wa-icon { font-size: 1.6rem; }
.wa-panel-body { display: flex; flex-direction: column; flex: 1; }
.wa-panel-body strong { font-family: var(--font-display); font-size: 1.05rem; }
.wa-panel-body span { font-size: 0.85rem; color: var(--text-secondary); }
.wa-arrow { color: var(--accent); font-size: 1.2rem; }
.contact-meta { list-style: none; display: flex; flex-direction: column; gap: 0.95rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.contact-meta li { display: flex; flex-direction: column; gap: 0.15rem; }
.meta-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.contact-meta a, .contact-meta li > span:last-child { color: var(--text); font-size: 0.98rem; }
.contact-meta a:hover { color: var(--accent); }

/* ---------- CTA ---------- */
#cta { padding: clamp(5rem, 10vw, 9rem) 0; text-align: center; position: relative; z-index: 1; background: var(--bg); overflow: hidden; }
.cta-orb { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); filter: blur(40px); pointer-events: none; }
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { margin-bottom: 1rem; max-width: 20ch; margin-inline: auto; }
.cta-content p { color: var(--text-secondary); margin-bottom: 2.2rem; max-width: 48ch; margin-inline: auto; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; position: relative; z-index: 1; background: var(--bg); }
.footer-inner { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand .wordmark { font-size: 1.5rem; }
.footer-seo { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; max-width: 70ch; margin: 1.5rem auto 2rem; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.92rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); font-size: 1.5rem; box-shadow: 0 8px 30px -6px rgba(var(--accent-rgb), 0.6);
  transition: transform 0.3s var(--ease); animation: fabIn 0.5s var(--ease) 1s both;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab:active { transform: scale(0.95); }
@keyframes fabIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

/* ---------- Reveal animations (JS-gated) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); }
.js .stagger-parent > * { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .scroll-animation { height: 320vh; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-device { max-width: 520px; margin-top: 1rem; }
  .problem-grid, .region-grid, .contact-grid, .cargo-grid { grid-template-columns: 1fr; }
  .features-grid, .brands-featured { grid-template-columns: 1fr; }
}

/* Navbar: orta ekranlarda (≤992px) sıkışmasın → hamburger menü */
@media (max-width: 992px) {
  .nav-links { display: none; }
  #navbar.nav-scrolled .nav-inner { max-width: none; }
  .nav-burger { display: flex; }
  .nav-mobile {
    display: flex; flex-direction: column; gap: 0.3rem; margin: 0.6rem 0.8rem 0;
    background: rgba(10, 10, 12, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong); border-radius: 18px; padding: 1rem 1.2rem;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s var(--ease), opacity 0.3s, padding 0.3s;
    padding-top: 0; padding-bottom: 0;
  }
  .nav-mobile.open { max-height: 460px; opacity: 1; padding-top: 1rem; padding-bottom: 1rem; }
  .nav-mobile a { color: var(--text-secondary); padding: 0.55rem 0; font-size: 1rem; }
  .nav-mobile a:hover { color: var(--text); }
  .nav-mobile .lang-switch { margin-top: 0.6rem; align-self: flex-start; }
  .nav-burger.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-burger.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

@media (max-width: 768px) {
  .scroll-animation { height: 260vh; }
  .process-steps { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .spec-item:nth-child(2)::after { display: none; }

  .annotation-card {
    bottom: clamp(1.25rem, 4vh, 2.5rem); left: 1rem; right: 1rem; width: auto;
    padding: 1.15rem 1.25rem;
  }
  .annotation-card .card-desc { display: none; }
  .card-progress { margin-bottom: 0.8rem; }
  .card-title { font-size: 1.1rem; margin-bottom: 0.7rem; }
  .card-stat { flex-direction: row; align-items: baseline; gap: 0.5rem; }
  .card-stat-number { font-size: 1.5rem; }
  .scroll-caption { top: 4.5rem; }
}

@media (max-width: 420px) {
  .specs-grid { grid-template-columns: 1fr; }
  .spec-item::after { display: none !important; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, .js .stagger-parent > * { opacity: 1 !important; transform: none !important; }
  .scroll-animation { height: auto; }
  .scroll-sticky { position: relative; height: auto; }
}

.feature-icon { color: var(--accent); }
.feature-icon svg { width: 26px; height: 26px; }
.diff-icon { color: var(--accent); display: inline-flex; }
.diff-icon svg { width: 26px; height: 26px; }
.wa-icon { color: var(--accent); display: inline-flex; }
.wa-icon svg { width: 26px; height: 26px; }
.wa-fab { color: #100800; }
.wa-fab svg { width: 26px; height: 26px; }

.brand-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo-svg {
  color: var(--text);
  height: 22px;
  width: auto;
  display: block;
}
.brand-logo-svg.sunmi-logo {
  color: #FF5A1F;
  height: 18px;
}
.brand-logo-svg.zebra-logo {
  color: var(--text);
  height: 24px;
}

/* Featured kart başlığındaki marka logosu (Sunmi / Zebra) */
.brand-logo-head {
  height: 30px;
  width: auto;
  max-width: 180px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.3s var(--ease);
}
.brand-card:hover .brand-logo-head { opacity: 1; }

/* ---------- Process Animated Layout ---------- */
.process-content-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  position: relative;
  margin-top: 3rem;
}
.process-content-layout .process-steps {
  display: flex;
  flex-direction: column;
  gap: 8vh; /* generous vertical spacing for smooth scrolling on desktop */
  padding-bottom: 30vh; /* extra scroll room so the last step can easily align in viewport center */
}
.process-content-layout .process-step {
  margin-bottom: 0 !important; /* override the old margin-bottom */
}
.process-visuals-sticky {
  position: sticky;
  top: 25vh;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-visual-track {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}
.process-visual-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.process-visual-card.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.process-svg {
  width: 100%;
  height: 100%;
}


/* Animations for Step 1: Phone & Chat */
.cb-1 { animation: chatBubbleIn 3s infinite 0.2s ease-in-out; }
.cb-2 { animation: chatBubbleIn 3s infinite 1.0s ease-in-out; }
.cb-3 { animation: chatBubbleIn 3s infinite 1.8s ease-in-out; }

@keyframes chatBubbleIn {
  0%, 15% { opacity: 0; transform: translateY(8px); }
  25%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; }
}

/* Animations for Step 2: Route line */
.ping-circle {
  animation: pingGlow 1.8s infinite;
  transform-origin: 155px 55px;
}
.route-line-active {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawRoute 3s infinite linear;
}
@keyframes pingGlow {
  0% { r: 5; opacity: 1; stroke-width: 1; }
  100% { r: 18; opacity: 0; stroke-width: 1.5; }
}
@keyframes drawRoute {
  0% { stroke-dashoffset: 240; }
  50%, 100% { stroke-dashoffset: 0; }
}

/* Animations for Step 3: Laser scan */
.laser-group {
  animation: laserScan 2.4s infinite ease-in-out;
}
@keyframes laserScan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(50px); }
}

/* Scroll highlighting on steps */
.process-step {
  padding: 2.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.process-step:hover:not(.active-step) {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
}
.process-step:not(:last-child) {
  margin-bottom: 2rem;
}
.process-step::before {
  display: none !important; /* disable old line effect */
}
.process-step.active-step {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 8px 30px -10px rgba(0,0,0,0.5);
}
.process-step.active-step h3 {
  color: var(--accent);
}
.process-step.active-step .process-num {
  font-weight: 700;
}

@media (max-width: 1024px) {
  .process-content-layout {
    grid-template-columns: 1fr;
  }
  .process-visuals-sticky {
    position: sticky;
    top: 70px; /* position just below navbar */
    height: 240px;
    margin-bottom: 2rem;
    z-index: 10;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border); /* subtle divider line */
  }
  .process-visual-track {
    margin-inline: auto;
    width: 200px;
    height: 200px;
    aspect-ratio: 1;
  }
  .process-content-layout .process-steps {
    gap: 4vh;
    padding-bottom: 15vh;
  }
}

/* ---------- Uygulamalar (apps) sayfası ---------- */
.apps-header { border-bottom: 1px solid var(--border); background: rgba(12, 12, 14, 0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 100; }
.apps-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.apps-header-actions { display: flex; align-items: center; gap: 1.3rem; }
.apps-back { font-size: 0.92rem; color: var(--text-secondary); transition: color 0.2s; }
.apps-back:hover { color: var(--text); }
.apps-main { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.apps-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0.5rem 0 1rem; }
.apps-intro { color: var(--text-secondary); max-width: 60ch; margin-bottom: 1.8rem; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.apps-note { display: flex; flex-direction: column; gap: 0.35rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 2.6rem; font-size: 0.92rem; color: var(--text-secondary); max-width: 72ch; line-height: 1.5; }
.apps-note strong { color: var(--text); }
.apps-note em { color: var(--text); font-style: normal; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.app-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem 1.25rem; transition: transform 0.25s var(--ease), border-color 0.25s; }
.app-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.app-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.app-icon svg { width: 22px; height: 22px; }
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 1.05rem; margin: 0 0 0.2rem; }
.app-desc { font-size: 0.85rem; color: var(--text-secondary); margin: 0 0 0.4rem; line-height: 1.4; }
.app-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.02em; }
.app-dl { flex: none; align-self: center; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: #100800; background: var(--accent); border-radius: 100px; padding: 0.55rem 1.15rem; transition: background 0.2s, transform 0.2s; }
.app-dl:hover { background: var(--accent-hover); transform: translateY(-1px); }
.apps-empty { grid-column: 1 / -1; color: var(--text-secondary); font-size: 0.95rem; padding: 1.5rem 0; }
.apps-disclaimer { color: var(--text-muted); font-size: 0.8rem; margin-top: 2.2rem; }
@media (max-width: 560px) {
  .apps-grid { grid-template-columns: 1fr; }
  .apps-back { display: none; }
}
