/* ── RESET & VARIABLES ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1976D2;
  --blue-dark:  #1565C0;
  --blue-light: #42A5F5;
  --blue-pale:  #E3F2FD;
  --bg:         #f4f8ff;
  --surface:    #ffffff;
  --text:       #1a2236;
  --text-muted: #5a6a8a;
  --border:     #dde8f7;
  --green:      #2e7d32;
  --green-bg:   #e8f5e9;
  --radius:     14px;
  --shadow:     0 2px 16px rgba(25, 118, 210, 0.10);
  --shadow-lg:  0 8px 40px rgba(25, 118, 210, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── NAVBAR ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  transition: box-shadow 0.25s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(25, 118, 210, 0.10);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.nav-brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.lang-btn:hover {
  background: var(--blue-pale);
  color: var(--blue);
}

.lang-btn.is-active {
  background: var(--blue);
  color: #fff;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.18s, color 0.18s;
}

.nav-link:hover { background: var(--blue-pale); color: var(--blue); }

.nav-link-primary {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.nav-link-primary:hover { background: var(--blue-dark); color: #fff; }

/* ── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0d47a1 0%, #1976D2 45%, #42A5F5 100%);
  padding: 96px 24px 80px;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

/* Decorative floating card shapes */
.hero-decor {
  position: absolute;
  opacity: 0.1;
  pointer-events: none;
}

.hero-decor-1 {
  width: 120px; height: 80px;
  border-radius: 12px;
  background: #fff;
  top: 12%; left: 8%;
  transform: rotate(-15deg);
}

.hero-decor-2 {
  width: 90px; height: 60px;
  border-radius: 10px;
  background: #fff;
  top: 22%; left: 12%;
  transform: rotate(-10deg);
}

.hero-decor-3 {
  width: 120px; height: 80px;
  border-radius: 12px;
  background: #fff;
  top: 12%; right: 8%;
  transform: rotate(15deg);
}

.hero-decor-4 {
  width: 90px; height: 60px;
  border-radius: 10px;
  background: #fff;
  top: 22%; right: 12%;
  transform: rotate(10deg);
}

.hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero-logo {
  display: inline-flex;
  margin-bottom: 24px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-blue:hover { background: var(--blue-dark); box-shadow: var(--shadow-lg); }

/* ── SECTION COMMONS ────────────────────────────── */
section { padding: 80px 24px; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

.section-header { margin-bottom: 52px; }

/* ── FEATURES ───────────────────────────────────── */
.features { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg { color: var(--blue); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.code-tag {
  background: var(--blue-pale);
  color: var(--blue);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: 'Courier New', monospace;
}

/* ── PLATFORMS ──────────────────────────────────── */
.platforms { background: var(--bg); }

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.platform-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.2s;
}

.platform-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.12);
}

.platform-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.platform-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.platform-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-gray  { background: #f0f0f0; color: #888; }

.platform-card .btn-blue {
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 4px;
}

/* ── DOWNLOAD BANNER ────────────────────────────── */
.download-banner {
  background: linear-gradient(135deg, #1565C0 0%, #1976D2 60%, #42A5F5 100%);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}

.download-banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.download-banner p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.download-banner .btn-primary {
  font-size: 1.05rem;
  padding: 14px 32px;
}

.download-meta {
  margin-top: 16px;
  font-size: 0.83rem;
  opacity: 0.65;
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: #0d1b2e;
  color: #8aa0c0;
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: #8aa0c0;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: #fff; }

.footer-tech {
  font-size: 0.8rem;
  color: #4a6080;
}

.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: #4a6080;
  text-align: center;
  margin-top: 4px;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 72px 20px 60px; }
  .hero-decor { display: none; }
  section { padding: 56px 20px; }
  .nav-link span { display: none; }
  .nav-links { gap: 6px; }
  .lang-switch { padding: 3px; }
  .lang-btn {
    font-size: 0.72rem;
    padding: 5px 8px;
  }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}
