/* ===================================================
   LokaVPN Landing — style.css
   =================================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'Display';
  src: url('/fonts/display-cyrillic.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: 'Display';
  src: url('/fonts/display-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153;
}

/* --- Design Tokens --- */
:root {
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --secondary: #06b6d4;
  --bg: #0a0a0f;
  --bg-light: #111118;
  --bg-card: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --text-muted: #a1a1aa;
  --red: #ef4444;
  --green: #22c55e;
  --accent-warm: #f59e0b;
  --radius: 12px;
  --max-width: 1200px;
  --font-display: 'Display', 'Inter', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset + Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* --- Ambient Gradient Mesh --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 10% 40%, rgba(139, 92, 246, 0.04), transparent 70%),
    radial-gradient(ellipse 100% 70% at 90% 15%, rgba(6, 182, 212, 0.025), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 80%, rgba(139, 92, 246, 0.02), transparent 70%);
}

/* --- Layout --- */
main,
#footer {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

.section-title {
  font-family: var(--font-display);
  text-align: center;
  color: white;
  font-size: 24px;
  margin-bottom: 48px;
}

/* --- Hero --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.hero-mascot {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(139, 92, 246, 0.25);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-meta {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Keyframes --- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-mascot-wrap {
  animation: float 4s ease-in-out infinite;
}

.hero-mascot {
  animation: hero-enter 0.8s ease both;
}

.hero-title {
  animation: hero-enter 0.8s ease both 200ms;
}

.hero-subtitle {
  animation: hero-enter 0.8s ease both 400ms;
}

.hero-cta-wrap {
  animation: hero-enter 0.8s ease both 600ms;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-warm), #d97706);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.3);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.btn-outline {
  display: inline-block;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-outline:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Pain Cards --- */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pain-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}


.pain-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.pain-quote {
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: 40px;
}

/* --- Anti-marketing (Honesty) --- */
.honesty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.honesty-col {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
}

.honesty-col--no {
  background: rgba(239, 68, 68, 0.05);
  border-left: 3px solid var(--red);
}

.honesty-col--yes {
  background: rgba(34, 197, 94, 0.03);
  border-left: 3px solid var(--green);
}

.honesty-col h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 20px;
}

.honesty-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.honesty-icon {
  flex-shrink: 0;
  width: 24px;
  font-size: 18px;
}

.honesty-item strong {
  display: block;
  color: var(--text);
}

.honesty-item span {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Desktop slide-in for honesty columns */
@keyframes slide-left {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Steps --- */
.steps-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 220px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)), linear-gradient(135deg, var(--primary), var(--secondary));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.step-label {
  font-weight: 600;
  margin-top: 12px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.steps-footer {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 32px;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* --- About --- */
#about {
  padding: 48px 0;
}

.about-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

/* --- Mid-CTA --- */
#mid-cta {
  padding: 48px 0;
  text-align: center;
}

/* --- Referral --- */
#referral {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 182, 212, 0.08));
}

.referral-content {
  text-align: center;
}

.referral-desc {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 24px;
}

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

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

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

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq-icon {
  transition: transform 0.3s;
  font-size: 20px;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Footer --- */
#footer {
  background: var(--bg-light);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.footer-links {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-tech,
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Scroll Reveal (JS-driven) --- */
.reveal--hidden {
  opacity: 0;
  transform: translateY(20px);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal--hidden {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive: Tablet (640px+) --- */
@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Responsive: Desktop (1024px+) --- */
@media (min-width: 1024px) {
  section {
    padding: 96px 0;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-mascot {
    width: 200px;
    height: 200px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .honesty-grid {
    grid-template-columns: 1fr 1fr;
  }

  .honesty-col--no.reveal--visible {
    animation: slide-left 0.6s ease both;
  }

  .honesty-col--yes.reveal--visible {
    animation: slide-right 0.6s ease both;
  }

  .steps-row {
    flex-direction: row;
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:nth-child(n+3) {
    margin-top: 8px;
  }
}
