/* UmiVPN Official — light-default */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== LIGHT THEME (default) ===== */
:root {
  --bg:        #ffffff;
  --fg:        #0a0a0a;
  --muted:     rgba(0,0,0,0.06);
  --muted-fg:  rgba(10,10,10,0.55);
  --border:    #e5e5e5;
  --card:      #f9f9f9;
  --primary:   #171717;
  --primary-fg:#fafafa;
  --radius:    6px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1152px;
  --header-h: 65px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

/* ===== DARK THEME (opt-in via .dark class) ===== */
.dark {
  --bg:        #0a0a0a;
  --fg:        #fafafa;
  --muted:     rgba(38,38,38,0.5);
  --muted-fg:  rgba(250,250,250,0.6);
  --border:    #262626;
  --card:      #111111;
  --primary:   #171717;
  --primary-fg:#fafafa;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--fg);
  line-height: 1.5; transition: background .2s, color .2s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.dark .site-header {
  background: rgba(10,10,10,0.6);
}
.nav {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px; height: 100%;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; justify-self: start;
}
.logo { height: 28px; width: auto; object-fit: contain; filter: none; }
.dark .logo { filter: invert(1); }
.brand-name { font-size: 15px; font-weight: 600; }
.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none; justify-content: center;
}
.nav-links li a, .nav-links li button {
  display: block; padding: 6px 12px;
  font-size: 14px; font-weight: 400; color: var(--muted-fg);
  transition: color .15s; white-space: nowrap;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-links li a:hover, .nav-links li button:hover { color: var(--fg); }

/* Nav-right */
.nav-right {
  justify-self: end; display: flex; align-items: center; gap: 4px;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  color: var(--fg); opacity: .7; transition: opacity .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { opacity: 1; }
/* light default: show moon (offer to switch to dark) */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
/* dark mode: show sun */
.dark .theme-toggle .icon-sun  { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: var(--radius);
  font-size: 14px; font-weight: 400; color: var(--fg);
  opacity: .7;
  background: none; cursor: pointer; white-space: nowrap;
  transition: opacity .15s;
}
.lang-btn:hover { opacity: 1; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 130px; z-index: 1000;
}
.dropdown-panel-inner {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 4px;
}
.dark .dropdown-panel-inner { background: #1a1a1a; }
.dropdown-panel-inner a {
  display: block; padding: 7px 10px; border-radius: 4px;
  font-size: 14px; color: var(--muted-fg);
  transition: color .15s, background .15s;
}
.dropdown-panel-inner a:hover { color: var(--fg); background: var(--muted); }
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel,
.dropdown.open .dropdown-panel { display: block; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; border-radius: var(--radius);
  background: var(--fg); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transition: opacity .15s; white-space: nowrap; border: none; cursor: pointer;
}
.btn-primary:hover { opacity: .85; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: var(--radius);
  background: transparent; color: var(--fg);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.btn-outline:hover { background: var(--muted); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 10px 24px; font-size: 15px; }

/* Nav CTA (Login) matches original: dark bg, white text */
.nav-cta {
  background: #171717; color: #fafafa !important;
  height: 36px; padding: 0 12px;
  border-radius: var(--radius);
}
.nav-cta:hover { opacity: .85; }

/* ===== MOBILE NAV TOGGLE ===== */
.nav-toggle {
  display: none; width: 40px; height: 40px; font-size: 22px;
  color: var(--fg); border-radius: var(--radius);
  align-items: center; justify-content: center;
  transition: color .15s;
  order: -1; flex-shrink: 0;
}
.nav-toggle:hover { color: var(--fg); }
.mobile-lang { display: none; }

/* ===== HERO ===== */
.hero {
  padding: 72px 24px 72px;
  background: var(--bg);
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-logo { height: 80px; width: auto; margin-bottom: 24px; filter: none; }
.dark .hero-logo { filter: invert(1); }
.hero h1 {
  font-size: 48px; font-weight: 700; line-height: 1;
  margin-bottom: 32px; color: var(--fg);
}
.hero-buttons {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero-buttons .btn-primary {
  background: var(--fg); color: var(--bg);
  font-size: 15px; padding: 10px 20px;
}
.hero-buttons .btn-outline {
  font-size: 15px; padding: 10px 20px;
  border-color: var(--border);
}

/* ===== FEATURES ===== */
.features { padding: 48px 24px 56px; background: #f7f7f7; }
.dark .features { background: #0d0d0d; }
.features .container { max-width: var(--max-w); margin: 0 auto; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.feature-card { min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.feat-icon-circle {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,0.08); margin-bottom: 16px;
  flex-shrink: 0;
}
.dark .feat-icon-circle { background: rgba(255,255,255,0.1); }
.feat-icon-circle svg { width: 32px; height: 32px; stroke: var(--fg); stroke-width: 2; }
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--fg); }
.feature-card p { font-size: 14px; color: var(--muted-fg); line-height: 1.5; max-width: 240px; }

/* ===== GENERIC SECTIONS ===== */
.section-pad { padding: 64px 24px; }
.container { max-width: var(--max-w); margin: 0 auto; }
.bg-muted { background: rgba(0,0,0,0.04); }
.dark .bg-muted { background: rgba(38,38,38,0.3); }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 8px; }
.section-head p { font-size: 15px; color: var(--muted-fg); }
.text-center { text-align: center; }

/* ===== DOWNLOAD SECTION ===== */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.dl-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.dl-icon { width: 40px; height: 40px; margin-bottom: 16px; color: var(--fg); display: flex; align-items: center; }
.dl-icon svg { width: 40px; height: 40px; }
.dl-req { font-size: 13px; color: var(--muted-fg); margin-bottom: 16px; }

/* ===== PRICING ===== */
.pricing-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; max-width: 780px; margin: 0 auto;
}
.plan-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px; flex: 1; min-width: 260px;
  position: relative; display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--fg); }
.plan-badge {
  display: inline-block; font-size: 12px; font-weight: 500;
  background: var(--fg); color: var(--bg);
  padding: 2px 8px; border-radius: 999px; margin-bottom: 12px;
}
.plan-name { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.plan-price { font-size: 20px; font-weight: 700; }
.plan-price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.plan-price-row .plan-price { font-size: 20px; }
.plan-period { font-size: 14px; font-weight: 400; color: var(--muted-fg); }
.plan-annual { font-size: 13px; color: var(--muted-fg); margin-bottom: 20px; }
.plan-feats { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 24px; flex: 1; }
.plan-feats li { font-size: 14px; color: var(--fg); display: flex; align-items: center; gap: 10px; }
.plan-feats li.feat-no { color: var(--muted-fg); }
.plan-note { font-size: 13px; color: var(--muted-fg); margin-top: 20px; list-style: disc; padding-left: 18px; }
.plan-card .btn-primary, .plan-card .btn-outline { width: 100%; text-align: center; margin-top: auto; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 56px 24px 40px;
  background: linear-gradient(to bottom, var(--bg), rgba(38,38,38,0.2));
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-logo { height: 40px; width: auto; margin-bottom: 16px; filter: none; }
.dark .page-logo { filter: invert(1); }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 16px; color: var(--muted-fg); max-width: 600px; }

/* ===== FAQ ===== */
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); }
.faq-q {
  width: 100%; text-align: left; padding: 14px 16px;
  font-size: 14px; font-weight: 500; color: var(--fg);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background .15s;
}
.faq-q:hover { background: var(--muted); }
.faq-arrow { font-size: 11px; color: var(--muted-fg); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 16px 14px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 14px; color: var(--muted-fg); line-height: 1.7; }

/* ===== HOW IT WORKS (minimised, no images) ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.step-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--fg); color: var(--bg);
  border-radius: 50%; font-size: 14px; font-weight: 700;
  margin-bottom: 16px;
}
.step-img { display: none; }
.step-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--muted-fg); line-height: 1.6; }

/* ===== PROSE ===== */
.prose-inner { max-width: 720px; margin: 0 auto; }
.prose-inner h2 { font-size: 18px; font-weight: 600; margin: 32px 0 10px; }
.prose-inner h2:first-child { margin-top: 0; }
.prose-inner p { font-size: 15px; color: var(--muted-fg); line-height: 1.75; margin-bottom: 12px; }

/* ===== DL/CONTACT inner pages ===== */
.dl-grid-page { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dl-card-page {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.dl-card-page h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.dl-card-page .dl-req { font-size: 13px; color: var(--muted-fg); margin-bottom: 16px; }
.dl-card-page .btn-primary { width: 100%; }

.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.req-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.req-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.req-card ul { display: flex; flex-direction: column; gap: 5px; }
.req-card li { font-size: 13px; color: var(--muted-fg); padding-left: 12px; position: relative; }
.req-card li::before { content: "•"; position: absolute; left: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.contact-card .feat-icon { font-size: 28px; margin-bottom: 12px; }
.contact-icon { width: 48px; height: 48px; margin-bottom: 16px; color: var(--fg); display: flex; align-items: center; }
.contact-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--muted-fg); margin-bottom: 20px; line-height: 1.6; }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(38,38,38,0.3);
  padding: 48px 24px 24px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-brand-center { margin-bottom: 16px; }
.footer-brand-name { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.footer-tagline { font-size: 14px; color: var(--muted-fg); margin-bottom: 24px; }
.footer-links-center {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: center; margin-bottom: 32px;
}
.footer-links-center a {
  font-size: 14px; color: var(--muted-fg);
  transition: color .15s;
}
.footer-links-center a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-size: 13px; color: var(--muted-fg);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: rgba(38,38,38,0.4); border-top: 1px solid var(--border);
  padding: 56px 24px; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 10px; }
.cta-banner p { font-size: 16px; color: var(--muted-fg); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.btn-group { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== PRICING NOTE ===== */
.plan-note { font-size: 13px; color: var(--muted-fg); margin-top: 16px; }
.plan-btn { display: block; width: 100%; padding: 10px 20px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--fg); font-size: 14px; font-weight: 500; text-align: center; transition: background .15s; margin-top: auto; }
.plan-btn:hover { background: var(--muted); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav { display: flex; padding: 0 10px 0 16px; justify-content: space-between; }
  .brand-name { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 999;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 8px 0;
  }
  .dark .nav-links.open { background: #0f0f0f; }
  .nav-links li a, .nav-links li button {
    width: 100%; text-align: center; padding: 13px 20px; font-size: 15px;
  }
  .nav-right .lang-switcher { display: none; }
  .nav-right .btn-primary { display: none; }
  .nav-toggle { display: flex; order: 99; }
  .mobile-lang { display: block; }
  .nav-links li.mobile-lang {
    display: flex; flex-direction: row; justify-content: center;
    gap: 6px; padding: 10px 16px; border-top: 1px solid var(--border);
    flex-wrap: nowrap;
  }
  .nav-links li.mobile-lang a {
    width: auto !important; display: inline-block;
    padding: 4px 10px; font-size: 13px; line-height: 1.4;
    white-space: nowrap !important; flex-shrink: 0; text-align: center;
    overflow: hidden;
  }
  .hero { padding: 48px 20px 56px; }
  .hero h1 { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn-primary, .hero-buttons .btn-outline { width: 100%; max-width: 260px; }
  .pricing-grid { flex-direction: column; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .dl-grid, .dl-grid-page { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
