/* iTop VPN — itop24.mom
   Axes: Hero G (central card), Nav B (transparent→white), Cards F (large icon top),
   Typo B (Albert Sans geometric), Buttons B (pill 50px), Sections A (alternating),
   Price A (gradient card), FAQ A (accordion), Footer D (two-level), Anim B (fade+scale)
*/

:root {
  --primary: #DD6B20;
  --primary-dark: #B5571A;
  --accent: #312E81;
  --accent-light: #4338CA;
  --bg: #FFFBF5;
  --bg-alt: #FFF7E6;
  --text: #1A1A2E;
  --text-muted: #525078;
  --card-bg: #FFFFFF;
  --border: #F0E6D2;
  --radius: 18px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 18px 50px rgba(221, 107, 32, 0.18);
  --grad: linear-gradient(135deg, #DD6B20 0%, #312E81 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5 {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.5em; }

p { color: var(--text-muted); margin-bottom: 1em; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header (transparent → white on scroll) ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 251, 245, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
}
.logo img { width: 38px; height: 38px; }
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
}
.nav-links a:not(.nav-cta):hover { color: var(--primary); }
.nav-links a.nav-cta {
  color: #000000 !important;
  font-weight: 800;
  background: var(--primary);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-links a.nav-cta:hover {
  color: #000000 !important;
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: 0.3s;
  margin: 0 auto;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform 0.35s ease;
  z-index: 99;
  padding: 22px 24px 28px;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child {
  border: 0;
  background: var(--primary);
  color: #000;
  text-align: center;
  margin-top: 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

/* ========== Hero (Central card-form layout) ========== */
.hero {
  padding: 140px 0 90px;
  background:
    radial-gradient(circle at 15% 20%, rgba(221, 107, 32, 0.12), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(49, 46, 129, 0.10), transparent 55%),
    var(--bg);
  position: relative;
}
.hero-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 56px 48px 52px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(26, 26, 46, 0.10);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--grad);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 26px;
  border: 1px solid var(--border);
}
.badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}
.hero h1 {
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--primary); }
.hero-desc {
  font-size: 1.08rem;
  margin: 0 auto 32px;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  font-family: 'Albert Sans', sans-serif;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-large { padding: 18px 38px; font-size: 1.05rem; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-row span::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
}

/* ========== Stats ========== */
.stats {
  padding: 0 0 30px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat {
  text-align: center;
  padding: 8px 4px;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px; top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: 'Albert Sans', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* ========== Sections (alternating) ========== */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ========== Features (Cards F: large icon top) ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 38px 28px 30px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 2.4rem;
  color: var(--primary);
  font-family: 'Albert Sans', sans-serif;
  font-weight: 800;
  border: 2px solid var(--primary);
}
.feature-card:nth-child(2n) .feature-icon {
  color: var(--accent);
  border-color: var(--accent);
}
.feature-card h3 { margin-bottom: 10px; }

/* ========== Platforms (Download) ========== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: block;
}
.platform-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.platform-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-family: 'Albert Sans', sans-serif;
  font-size: 1.4rem;
}
.platform-name {
  font-weight: 700;
  font-family: 'Albert Sans', sans-serif;
  margin-bottom: 4px;
}
.platform-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== Why iTop (text section) ========== */
.why-itop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.why-itop .why-text p { margin-bottom: 1.3em; font-size: 1.02rem; }
.why-list { list-style: none; }
.why-list li {
  padding: 18px 0 18px 50px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.why-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 2px solid var(--primary);
}
.why-list li::after {
  content: '✓';
  position: absolute;
  left: 9px; top: 22px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  line-height: 32px;
}
.why-list li strong {
  display: block;
  color: var(--text);
  font-family: 'Albert Sans', sans-serif;
  margin-bottom: 4px;
  font-size: 1.05rem;
}
.why-list li span { color: var(--text-muted); font-size: 0.95rem; }

/* ========== Use cases ========== */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.usecase {
  background: var(--card-bg);
  padding: 30px 26px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.usecase:nth-child(2n) { border-left-color: var(--accent); }
.usecase h4 {
  font-family: 'Albert Sans', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.usecase p { font-size: 0.95rem; margin: 0; }

/* ========== Price (Gradient card) ========== */
.price-section { padding: 80px 0; }
.price-card {
  background: var(--grad);
  border-radius: 26px;
  padding: 56px 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(221, 107, 32, 0.28);
}
.price-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.price-card h2 { color: #fff; }
.price-card p { color: rgba(255,255,255,0.88); font-size: 1.05rem; }
.price-perks {
  list-style: none;
  margin-top: 18px;
}
.price-perks li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: rgba(255,255,255,0.95);
}
.price-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: 800;
  background: rgba(255,255,255,0.18);
  width: 20px; height: 20px;
  border-radius: 50%;
  text-align: center;
  font-size: 0.8rem;
  line-height: 20px;
}
.price-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 32px 26px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}
.price-num {
  font-family: 'Albert Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}
.price-num small { font-size: 1rem; font-weight: 600; opacity: 0.9; }
.price-note { font-size: 0.92rem; opacity: 0.9; margin: 10px 0 22px; }
.price-card .btn-primary {
  background: #fff;
  color: var(--accent);
  width: 100%;
}
.price-card .btn-primary:hover {
  background: #FFFBF5;
  color: var(--accent);
}

/* ========== CTA banner ========== */
.cta-banner {
  background: var(--bg-alt);
  text-align: center;
  padding: 76px 24px;
  border-radius: 26px;
  margin: 60px auto;
  max-width: 1140px;
  border: 1px dashed var(--primary);
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { font-size: 1.05rem; margin-bottom: 26px; }

/* ========== FAQ (accordion) ========== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.faq-item.active { box-shadow: var(--shadow-md); border-color: var(--primary); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  gap: 16px;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  font-weight: 800;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 26px;
}
.faq-item.active .faq-a {
  max-height: 600px;
  padding-bottom: 22px;
}
.faq-a p { font-size: 0.97rem; }

/* ========== Footer (two-level) ========== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.94rem; max-width: 360px; }
.footer-col h5 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  font-family: 'Albert Sans', sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.94rem;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-en { font-size: 0.78rem; opacity: 0.5; }

/* ========== Animations (fade-in + scale) ========== */
.reveal {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ========== Instruction page ========== */
.instr-hero {
  padding: 130px 0 60px;
  text-align: center;
  background: var(--bg-alt);
}
.instr-hero h1 { margin-bottom: 16px; }
.instr-hero p { font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

.steps {
  padding: 70px 0;
}
.step {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: 'Albert Sans', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { margin-bottom: 10px; font-size: 1.4rem; }
.step-body p { margin-bottom: 14px; }

.after-pay {
  background: var(--bg-alt);
  padding: 70px 0;
}
.after-pay-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .why-itop { grid-template-columns: 1fr; gap: 40px; }
  .price-card { grid-template-columns: 1fr; padding: 40px 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { padding: 120px 0 70px; }
  .hero-card { padding: 44px 28px 38px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .step { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .stat::after { display: none !important; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .container { padding: 0 18px; }
  section { padding: 60px 0; }
  .btn { padding: 13px 24px; font-size: 0.95rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
