@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Fira+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #1E3A5F;
  --primary-dark: #152B47;
  --accent: #E53935;
  --accent-hover: #C62828;
  --bg: #FAFCFF;
  --bg-alt: #EDF2F9;
  --bg-hero: linear-gradient(135deg, #1E3A5F 0%, #2D5A8E 100%);
  --text: #1B2838;
  --text-muted: #5A6B7F;
  --card-bg: #FFFFFF;
  --border: #D4DEE8;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(30,58,95,.07);
  --shadow-hover: 0 8px 32px rgba(30,58,95,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Fira Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.logo img { width: 36px; height: 36px; }

.nav-links { display: flex; gap: 24px; align-items: center; }

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

.nav-links a:hover { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: var(--radius);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: all .25s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,58,95,.25);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229,57,53,.25);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

.nav-cta {
  padding: 8px 20px;
  font-size: .85rem;
  background: #FBBF24;
  color: #000000;
  font-weight: 800;
}

.nav-cta:hover { background: #F59E0B; }

/* ===== BURGER ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(21,43,71,.95);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  backdrop-filter: blur(6px);
}

.mobile-nav.active { display: flex; }
.mobile-nav a { font-family: 'Rubik', sans-serif; font-size: 1.2rem; color: #fff; font-weight: 600; }
.mobile-nav .close-btn {
  position: absolute; top: 18px; right: 22px;
  font-size: 2rem; color: #fff; cursor: pointer;
  background: none; border: none;
}

/* ===== HERO — diagonal ===== */
.hero {
  background: var(--bg-hero);
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.hero .container { text-align: center; max-width: 700px; position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  margin-bottom: 20px;
}

.hero-desc {
  color: rgba(255,255,255,.75);
  font-size: 1.08rem;
  margin: 0 auto 32px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.trust-badges {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badge strong { color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 14px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

/* ===== FEATURES — dashed border cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  border-style: solid;
}

.feature-icon { margin-bottom: 16px; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }

.feature-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* ===== DOWNLOAD ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color .3s, transform .3s;
  display: block;
}

.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.download-card h3 { font-size: 1rem; margin-bottom: 4px; }
.download-card p { color: var(--text-muted); font-size: .8rem; }

/* ===== CTA ===== */
.cta-banner {
  background: var(--bg-hero);
  padding: 70px 0;
  text-align: center;
}

.cta-banner h2 { color: #fff; font-size: 2rem; margin-bottom: 14px; }

.cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== TRIAL ===== */
.trial-banner {
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.trial-banner h3 { margin-bottom: 6px; }
.trial-banner p { color: var(--text-muted); }

/* ===== FAQ — tabs ===== */
.faq-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.faq-tab {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  font-family: 'Rubik', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}

.faq-tab.active, .faq-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.faq-panel { display: none; }
.faq-panel.active { display: block; }

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform .3s;
}

.faq-item.active .faq-question::after { content: '\2212'; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: .92rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  padding: 48px 0 24px;
  color: rgba(255,255,255,.7);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; max-width: 260px; }

.footer h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: .86rem; transition: color .2s; }
.footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ===== INSTRUCTION PAGE ===== */
.instr-hero {
  background: var(--bg-hero);
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}

.instr-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.instr-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: 14px; }
.instr-hero p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 540px; margin: 0 auto; }

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step-card h2 { font-size: 1.3rem; margin-bottom: 12px; }
.step-card p { color: var(--text-muted); line-height: 1.7; }
.step-card ul { padding-left: 20px; color: var(--text-muted); }
.step-card ul li { margin-bottom: 8px; list-style: disc; }

.platforms-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.platform-mini-card {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: .88rem;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.1rem; }
  .trial-banner { flex-direction: column; text-align: center; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .platforms-mini { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .features-grid, .download-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 1.7rem; }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.5rem; }
  .platforms-mini { grid-template-columns: 1fr; }
}
