@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════════
   CSS VARIABLES
   ══════════════════════════════════════════ */
:root {
  --bg-primary: #07070d;
  --bg-secondary: #0c0c16;
  --bg-card: #11111b;
  --bg-card-hover: #1a1a2e;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108,92,231,0.3);
  --gold: #C9A84C;
  --gold-light: #e8d48b;
  --gold-glow: rgba(201,168,76,0.25);
  --green: #00b894;
  --green-glow: rgba(0,184,148,0.3);
  --red: #e17055;
  --orange: #fdcb6e;
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --border: #222238;
  --nav-height: 64px;
}

/* ══════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  overflow: hidden;
  height: 100%;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
}
a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7,7,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text-primary);
}
.nav-logo img { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s; letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent-light); }

.lang-toggle {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  font-family: 'Inter', sans-serif; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text-primary); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary); border-radius: 2px; transition: all 0.3s;
}

/* ══════════════════════════════════════════
   SECTIONS (generic)
   ══════════════════════════════════════════ */
#fullpage {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.snap-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
section {
  padding: 80px 48px;
  max-width: 1200px;
  width: 100%;
  position: relative;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 20px;
}
.section-title {
  font-size: 2.6rem; font-weight: 800;
  line-height: 1.15; letter-spacing: -1.2px;
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  line-height: 1.7; max-width: 680px;
}
.highlight { color: var(--accent-light); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.divider { width: 60px; height: 3px; background: var(--accent); border-radius: 2px; margin: 20px 0; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 48px;
  position: relative;
  overflow: hidden;
  max-width: none;
}
#hero-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; opacity: 0.12;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.device-container {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto 40px;
}
.device-img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: deviceFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 60px rgba(108,92,231,0.25));
}
.device-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes deviceFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-14px) rotate(0.5deg); }
  75% { transform: translateY(8px) rotate(-0.5deg); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%,-50%) scale(1.08); }
}

.hero-title {
  font-size: 3.8rem; font-weight: 900;
  letter-spacing: -2px; line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: 1.25rem; color: var(--text-secondary);
  font-weight: 300; line-height: 1.6;
  margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.pill {
  display: inline-block; padding: 6px 16px;
  border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}
.pill-accent { background: rgba(108,92,231,0.15); color: var(--accent-light); border: 1px solid rgba(108,92,231,0.3); }
.pill-green { background: rgba(0,184,148,0.12); color: var(--green); border: 1px solid rgba(0,184,148,0.3); }
.pill-gold { background: rgba(201,168,76,0.12); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; border: none; transition: all 0.25s;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover { background: #7d6ef0; transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--text-primary); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem;
  animation: scrollBounce 2s infinite;
}
.scroll-hint svg { width: 20px; height: 20px; stroke: var(--text-muted); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════
   CARDS & GRIDS
   ══════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}
.card:hover { background: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-3px); }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* ══════════════════════════════════════════
   BIG QUOTE
   ══════════════════════════════════════════ */
.big-quote {
  font-size: 1.4rem; font-weight: 300; line-height: 1.6;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent);
  padding-left: 28px;
  margin: 40px 0 0;
  max-width: 800px;
}
.big-quote strong { color: var(--text-primary); font-weight: 600; }

/* ══════════════════════════════════════════
   FLOW DIAGRAM
   ══════════════════════════════════════════ */
.flow { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.flow-step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 26px; text-align: center; min-width: 140px;
  transition: all 0.3s;
}
.flow-step:hover { border-color: var(--accent); transform: translateY(-2px); }
.flow-icon { font-size: 1.8rem; margin-bottom: 8px; }
.flow-label { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.flow-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }
.flow-arrow { font-size: 1.4rem; color: var(--accent); padding: 0 8px; }

.flow-section-label {
  text-align: center; margin: 40px 0 20px;
  font-size: 1.15rem; font-weight: 600; color: var(--text-secondary);
}

/* ══════════════════════════════════════════
   FEATURES GRID
   ══════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 40px; }
.feature-card { position: relative; overflow: hidden; }
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover::after { opacity: 1; }

/* ══════════════════════════════════════════
   APP SHOWCASE / SLIDESHOW
   ══════════════════════════════════════════ */
#app-showcase { text-align: center; }

.showcase-wrapper {
  position: relative;
  max-width: 900px; margin: 40px auto 0;
}
.showcase-frame {
  position: relative;
  background: #0a0a14;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 60px rgba(108,92,231,0.08);
}
.showcase-topbar {
  height: 36px;
  background: #0f0f1a;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; gap: 7px;
}
.showcase-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.showcase-dot:nth-child(1) { background: #e17055; }
.showcase-dot:nth-child(2) { background: #fdcb6e; }
.showcase-dot:nth-child(3) { background: #00b894; }

.showcase-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}
.showcase-slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.showcase-slide.active { opacity: 1; }
.showcase-slide img { width: 100%; height: 100%; object-fit: cover; }

.showcase-nav {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 24px;
}
.showcase-dot-btn {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-muted);
  border: none; cursor: pointer;
  transition: all 0.3s; padding: 0;
}
.showcase-dot-btn.active {
  background: var(--accent-light);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent-glow);
}

.showcase-caption {
  margin-top: 20px;
  min-height: 60px;
}
.showcase-caption h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px;
}
.showcase-caption p {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.5; max-width: 600px; margin: 0 auto;
}

/* ══════════════════════════════════════════
   HARDWARE SECTION
   ══════════════════════════════════════════ */
#hardware {
  display: flex; flex-direction: column; align-items: center;
}
.hardware-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; margin-top: 40px; width: 100%;
}
.hardware-visual {
  display: flex; align-items: center; justify-content: center;
}
.hardware-device {
  max-width: 340px;
  animation: deviceFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 16px 48px rgba(108,92,231,0.2));
}
.hardware-info h3 {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary);
}
.hardware-info p {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7;
}
.hardware-pills { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.snap-section.footer-snap {
  min-height: 100vh;
}
.footer {
  text-align: center;
  padding: 80px 48px 40px;
  max-width: 800px;
  width: 100%;
}
.footer-cta-title {
  font-size: 2.2rem; font-weight: 800;
  letter-spacing: -1px; margin-bottom: 16px;
}
.footer-cta-sub {
  font-size: 1.05rem; color: var(--text-secondary);
  margin-bottom: 36px; line-height: 1.6;
}
.footer-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.footer-company {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
}
.footer-links {
  display: flex; gap: 24px; list-style: none;
}
.footer-links a {
  font-size: 0.8rem; color: var(--text-muted); transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }

/* ══════════════════════════════════════════
   COMING SOON MODAL
   ══════════════════════════════════════════ */
.cs-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,7,13,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cs-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cs-box {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 48px 56px;
  box-shadow: 0 24px 80px rgba(108,92,231,0.2);
  transform: scale(0.9);
  transition: transform 0.35s ease;
}
.cs-overlay.show .cs-box { transform: scale(1); }
.cs-icon { font-size: 3rem; margin-bottom: 16px; }
.cs-title {
  font-size: 1.8rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 8px;
}
.cs-text {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.5;
}

/* ── Contact Modal ── */
.contact-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 24px 80px rgba(108,92,231,0.2);
  transform: scale(0.9);
  transition: transform 0.35s ease;
}
.cs-overlay.show .contact-modal { transform: scale(1); }
.contact-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--text-secondary);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.contact-close:hover { color: var(--text-primary); }
.contact-title {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 6px;
  color: var(--text-primary);
}
.contact-sub {
  font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.5;
}
.contact-row { display: flex; gap: 12px; }
.contact-row .contact-field { flex: 1; }
.contact-field { margin-bottom: 16px; }
.contact-field label {
  display: block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-secondary); margin-bottom: 6px;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--accent); }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--text-muted); }
.contact-field textarea { resize: vertical; min-height: 90px; }
.contact-alt {
  text-align: center; margin-top: 16px;
  font-size: 0.8rem; color: var(--text-secondary);
}
.contact-alt a { color: var(--gold); text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .contact-modal { padding: 32px 20px; }
  .contact-row { flex-direction: column; gap: 0; }
}

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  section { padding: 100px 32px 60px; }
  .section-title { font-size: 2.2rem; }
  .hero-title { font-size: 3rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hardware-layout { grid-template-columns: 1fr; text-align: center; }
  .hardware-pills { justify-content: center; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: rgba(7,7,13,0.97); backdrop-filter: blur(16px);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  section { padding: 80px 20px 60px; }
  .section-title { font-size: 1.9rem; }
  .hero-title { font-size: 2.4rem; letter-spacing: -1px; }
  .hero-tagline { font-size: 1.05rem; }
  .device-container { width: 200px; height: 200px; }

  .grid-2, .grid-3, .features-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }

  .big-quote { font-size: 1.15rem; }

  .showcase-frame { border-radius: 10px; }
  .hardware-layout { gap: 32px; }
  .hardware-device { max-width: 220px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .footer-cta-buttons { flex-direction: column; align-items: center; }
}
