/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --bg:          #f5f4f1;
  --surface:     #ffffff;
  --surface-soft:#f0eeea;
  --dark:        #0d1117;
  --dark-2:      #161c24;
  --text:        #1a1f2b;
  --muted:       #5c6370;
  --line:        #e1ddd7;
  --line-dark:   rgba(255,255,255,.1);
  --accent:      #e8581a;
  --accent-dim:  rgba(232,88,26,.15);
  --success:     #18a058;
  --radius:      4px;
  --radius-md:   10px;
  --radius-lg:   18px;
  --container:   1160px;
  --shadow:      0 20px 60px rgba(0,0,0,.1);
  --shadow-soft: 0 8px 30px rgba(0,0,0,.07);
  --font-display:'Barlow Condensed', ui-sans-serif, sans-serif;
  --font-body:   'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

/* ─── Container ──────────────────────────────────────── */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ─── Brand mark ─────────────────────────────────────── */
.brand-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 34% 38%, #ff3a2e 0 12%, transparent 13%),
    linear-gradient(128deg, transparent 0 40%, #0d1117 41% 52%, transparent 53%),
    linear-gradient(140deg, #e8581a, #f0a830);
}
.brand-mark-sm {
  width: 28px;
  height: 28px;
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(245, 244, 241, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .04em;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
}
.site-nav a:not(.button):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 3.5px auto;
  background: var(--text);
  border-radius: 2px;
}

/* ─── Buttons ────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
  white-space: nowrap;
}
.button:hover {
  background: #c94910;
  border-color: #c94910;
  transform: translateY(-1px);
}

/* Outline variant — for use on DARK backgrounds */
.button-outline {
  background: transparent;
  color: #e8e4dc;
  border-color: rgba(232,228,220,.35);
}
.button-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(232,228,220,.6);
  transform: translateY(-1px);
}

/* Secondary — for use on LIGHT backgrounds */
.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.button-secondary:hover {
  background: var(--surface-soft);
  border-color: #ccc;
  transform: translateY(-1px);
}

.button-small {
  height: 36px;
  padding: 0 16px;
  font-size: .82rem;
}

/* ─── Eyebrow ────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow-light { color: rgba(232,88,26,.75); }

/* ─── Section baseline ───────────────────────────────── */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--dark);
  color: #e8e4dc;
}
.section-soft {
  background: var(--surface);
}
.section-ruled {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ─── Section headings ───────────────────────────────── */
.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.01em;
  color: #e8e4dc;
  margin-top: 4px;
}

/* ─── Split layout ───────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 80px;
  align-items: start;
}
.split-label { padding-top: 6px; }
.split-body h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  margin-top: 4px;
}
.split-body p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 680px;
}
.split-body p + p { margin-top: 16px; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--dark);
  color: #e8e4dc;
  overflow: hidden;
  padding: 120px 0 140px;
}
.hero-stripe {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(232,88,26,.11) 0%, transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 119px,
      rgba(255,255,255,.022) 119px,
      rgba(255,255,255,.022) 120px
    );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(232,228,220,.45);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.rule-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 8rem);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
  max-width: 820px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  margin-top: 32px;
  max-width: 560px;
  color: rgba(232,228,220,.62);
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

/* ─── VPN page hero variant ──────────────────────────── */
.vpn-hero {
  background: var(--dark) !important;
}
/* Legacy hero-grid for vpn page */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr);
  gap: 44px;
  align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-text {
  max-width: 560px;
  margin-top: 20px;
  color: rgba(232,228,220,.6);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.02em;
}
.glass-card, .hero-card {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background: rgba(22,28,36,.85);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.hero-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 18px;
}
.hero-card p {
  margin-top: 12px;
  color: rgba(232,228,220,.55);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(232,228,220,.6);
  font-size: .85rem;
  font-weight: 500;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(24,160,88,.18);
}

/* ─── Stats ──────────────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--text);
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  max-width: 160px;
}

/* ─── Capabilities grid ──────────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap-card {
  padding: 36px 32px;
  background: var(--dark-2);
  transition: background .15s;
}
.cap-card:hover { background: #1d2530; }
.cap-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid rgba(232,88,26,.25);
  border-radius: var(--radius);
}
.cap-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #e8e4dc;
  margin-bottom: 12px;
}
.cap-card p {
  color: rgba(232,228,220,.48);
  font-size: .9rem;
  line-height: 1.65;
}

/* ─── Product list ───────────────────────────────────── */
.product-list {
  margin: 32px 0 40px;
  border-top: 1px solid var(--line);
}
.product-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .01em;
  flex-shrink: 0;
}
.product-desc {
  color: var(--muted);
  font-size: .875rem;
  text-align: right;
  max-width: 340px;
}

/* ─── Contact block ──────────────────────────────────── */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.01em;
  color: #e8e4dc;
  margin: 8px 0 20px;
}
.contact-copy p {
  color: rgba(232,228,220,.52);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 440px;
}
.contact-details {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  align-self: center;
}
.contact-item {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-item:last-child { border-bottom: 0; }
.contact-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232,228,220,.3);
}
.contact-item a,
.contact-item span:not(.contact-label) {
  color: #e8e4dc;
  font-size: .975rem;
  line-height: 1.5;
}
.contact-item a:hover { color: var(--accent); }

/* ─── VPN / Guide styles ─────────────────────────────── */
.section-heading {
  max-width: 680px;
  margin-bottom: 44px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 4px;
}
.section-heading p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.copy-box code {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: monospace;
}
.copy-box button {
  min-width: 68px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  cursor: pointer;
}
.inline-copy { max-width: 340px; margin: 14px 0; }

.check-list { display: grid; gap: 10px; margin-top: 20px; }
.check-list span {
  position: relative;
  padding-left: 22px;
  color: rgba(232,228,220,.6);
  font-size: .9rem;
}
.check-list span::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
}

.steps-grid { display: grid; gap: 16px; }
.steps-grid.compact { grid-template-columns: repeat(4, 1fr); }
.step-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.step-card p { color: var(--muted); font-size: .9rem; margin-top: 0; }
.step-card p strong { color: var(--text); }

.guide-layout, .faq-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.guide-sidebar {
  position: sticky;
  top: 110px;
}
.guide-sidebar h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 4px 0 12px;
}
.guide-sidebar p { color: var(--muted); font-size: .95rem; }
.guide-steps { display: grid; gap: 16px; }

.instruction {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.instruction > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}
.instruction h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.instruction p { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.text-link { color: var(--accent); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.notice-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.notice-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.notice-card p { color: var(--muted); font-size: .9rem; }

.faq-layout > div:first-child h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 4px 0 0;
}
.faq-list { display: grid; gap: 10px; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
details p { padding: 0 22px 20px; color: var(--muted); font-size: .9rem; }

.cta-section { padding-top: 0; }
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--dark-2), #1a2535);
  border: 1px solid var(--line-dark);
  color: #e8e4dc;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 6px 0 10px;
}
.cta-card p:not(.eyebrow) {
  color: rgba(232,228,220,.55);
  font-size: .95rem;
  max-width: 540px;
}

/* ─── 404 page ───────────────────────────────────────── */
.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}
.not-found-card {
  max-width: 560px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.not-found-card h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 8px 0 16px;
}
.not-found-card p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  padding: 40px 0;
  background: #080c10;
  color: rgba(232,228,220,.4);
  font-size: .84rem;
}
/* Legacy footer-grid for vpn page compat */
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-grid > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-grid strong { color: rgba(232,228,220,.75); font-size: .9rem; }
.footer-grid p, .footer-grid a { color: rgba(232,228,220,.4); font-size: .84rem; }
.footer-grid a:hover { color: rgba(232,228,220,.8); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand strong {
  display: block;
  color: rgba(232,228,220,.8);
  font-size: .9rem;
}
.footer-brand span {
  display: block;
  color: rgba(232,228,220,.35);
  font-size: .72rem;
  margin-top: 2px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a:hover { color: rgba(232,228,220,.8); }
.footer-copy { color: rgba(232,228,220,.22); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 20px; right: 20px; top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; color: var(--text); }
  .split { grid-template-columns: 1fr; gap: 0; }
  .split-label { margin-bottom: 8px; }
  .contact-block { grid-template-columns: 1fr; gap: 48px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { gap: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .guide-layout, .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .guide-sidebar { position: static; }
  .steps-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .notice-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .section { padding: 72px 0; }
  .hero { padding: 88px 0 100px; }
  .cap-grid { grid-template-columns: 1fr; }
  .notice-grid { grid-template-columns: 1fr; }
  .steps-grid.compact { grid-template-columns: 1fr; }
  .product-list li { flex-direction: column; gap: 4px; }
  .product-desc { text-align: left; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .stat-row { flex-direction: column; gap: 24px; }
  .instruction { grid-template-columns: 1fr; }
  .cta-card { padding: 28px; }
  .not-found-card { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
