/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(0, 122, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.6);
  }
}

:root {
  --bg: #0c0c0c;
  --bg-elev-1: #1c1c1e;
  --bg-elev-2: #2d2d2d;
  --text: #ffffff;
  --muted: #888888;
  --subtle: #7d7d7d;
  --line: #2f2f2f;
  --accent: #26a5e4; /* Telegram */
  --accent-2: #29aaec;
  --card-from: #2d2d2d;
  --card-to: #191919;
  --grad-hero-top: #0f0f0f;
  --grad-hero-bot: #2d2d2d;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 200px;
  --shadow-1: 0 6px 10px 2px rgba(0,0,0,.4);
  --shadow-2: 0 4px 10px 0 rgba(0,0,0,.4);
  --container: 1200px;
  --corner-color: #393838;
  --corner-thickness: 2px;
  --corner-offset-x: 12px;
  --corner-offset-y: 10px;  
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #0c0c0c;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #0c0c0c;
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-logo { width: 25px; height: 25px; border-radius: 5px; border: 1px solid #767676; }
.brand-name { font-weight: 700; font-size: 18px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.nav-links a:hover { opacity: .85; }

/* Hero */
.hero { 
  display: grid; 
  grid-template-columns: 1.1fr .9fr; 
  gap: 40px; 
  padding: 80px 24px; 
  animation: fadeInUp 1s ease-out;
}
.hero h1 { 
  font-size: 48px; 
  line-height: 1.12; 
  margin: 0 0 16px; 
  letter-spacing: -0.5px; 
  animation: fadeInUp 1s ease-out 0.2s both;
}
.subtitle { font-weight: 800; font-size: 15px; text-align: left; margin: 8px 0; }
.muted { color: var(--muted); font-size: 20px; margin: 16px 0 24px; }
.cta-row { display: flex; gap: 20px; flex-wrap: wrap; }
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 12px 22px; 
  border-radius: 999px; 
  font-weight: 800; 
  font-size: 20px; 
  text-decoration: none; 
  box-shadow: 0 8px 18px rgba(0,0,0,.35); 
  border: 1px solid transparent; 
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.4s both;
  width: 250px;
}
.btn-dark { background: #fff; color: #000; border-color: #fff; }
.btn-light { background: #fff; color: #000; border-color: #fff; }
.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 24px rgba(0,0,0,.45); 
}
.btn-telegram { 
  background: #26a5e4; 
  color: #fff; 
  border-radius: 999px; 
  box-shadow: 0 8px 18px rgba(0,0,0,.35); 
  border: 1px solid #26a5e4; 
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.6s both;
  margin-top: 12px;
  gap: 8px;
}
.btn-telegram img { filter: none; }
.btn.wide { border-radius: var(--radius-sm); width: 100%; max-width: 420px; }

.hero-media { position: relative; display: grid; justify-items: center; }
.device-outline { position: relative; padding: 0; border-radius: 32px; border: 0; }
.device-outline::before { content: none; display: none; }
.device-outline::after { content: none; display: none; }
.hero-media img { 
  width: min(100%, 620px); 
  height: auto; 
  display: block; 
  border-radius: 0; 
  box-shadow: none; 
  background: none; 
  animation: float 3s ease-in-out infinite;
}
.provider { position: absolute; display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: #1e1f21; border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.55); backdrop-filter: blur(8px); width: 520px; min-height: 118px; z-index: 4; }
.provider-right { right: -120px; bottom: -180px; }
.provider-logo { width: 28px; height: 28px; border-radius: 200px; border: 1px solid #fff; }
.provider-logo.large { width: 96px; height: 96px; border-radius: 999px; background: #26a5e4; box-shadow: 0 10px 26px rgba(0,0,0,.55); outline: 8px solid #fff; }
.provider-logo { width: 28px; height: 28px; border-radius: 200px; border: 1px solid #fff; }
.provider-title { font-size: 16px; font-weight: 700; }
.provider-sub { display: flex; gap: 8px; align-items: center; color: #d0d0d0; font-size: 14px; opacity: .95; }

/* OS cards */
.os-cards { padding: 80px 24px 40px; text-align: left; }
.os-cards h2 { font-size: 48px; margin: 0 0 28px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px 28px; max-width: 1200px; margin: 0 auto; }
.dl-btn { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 8px 16px; 
  border-radius: 20px; 
  background: linear-gradient(180deg, #1e1e1e 0%, #1b1b1b 100%); 
  border: 1px solid rgba(255,255,255,0.12); 
  color: #fff; 
  text-decoration: none; 
  box-shadow: 0 10px 24px rgba(0,0,0,.45); 
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out both;
  min-height: 50px;
}
.dl-btn:nth-child(1) { animation-delay: 0.1s; }
.dl-btn:nth-child(2) { animation-delay: 0.2s; }
.dl-btn:nth-child(3) { animation-delay: 0.3s; }
.dl-btn:nth-child(4) { animation-delay: 0.4s; }
.dl-btn:nth-child(5) { animation-delay: 0.5s; }
.dl-btn:nth-child(6) { animation-delay: 0.6s; }
.dl-btn:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 15px 35px rgba(0,0,0,.6); 
  border-color: rgba(0, 122, 255, 0.3);
}
.dl-left { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; }
.dl-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; }
.dl-icon img { width: 40px; height: 40px; object-fit: contain; display: block; }
.dl-icon-circle { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: none; }
.dl-icon-circle svg { width: 22px; height: 22px; }
.dl-label { font-weight: 800; font-size: 16px; }
.dl-right { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: none; }

/* How */
.how { padding: 40px 24px 20px; }
.how h2 { font-size: 48px; margin: 0 0 24px; }
.how-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.how-media { position: relative; }
.device-frame { background: #1a1a1a; border-radius: 18px; padding: 28px 20px; box-shadow: var(--shadow-2); border: 1px solid #2a2a2a; }
.device-frame img { width: 100%; height: auto; display: block; border-radius: 12px; }
.device-frame video { width: 100%; height: auto; display: block; border-radius: 12px; }

.video-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.how-cards { display: grid; gap: 28px; }
.how-card { background: rgba(255,255,255,0.13); border: 1px solid #3a3a3a; border-radius: 15px; box-shadow: var(--shadow-2); padding: 18px 20px; position: relative; height: 180px; display: flex; flex-direction: column; }
.how-card-head { display: flex; align-items: center; gap: 12px; }
.num-badge { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-weight: 700; }
.how-card-title { font-weight: 800; font-size: 20px; }
.how-card-text { color: #9f9f9f; margin: 8px 0 14px; }
.how-card-actions { display: flex; gap: 12px; margin-top: auto; }
.btn-download { 
  background: #fff; 
  color: #000; 
  border: 1px solid #fff; 
  border-radius: 8px; 
  padding: 12px 16px; 
  gap: 12px; 
  display: inline-flex; 
  align-items: center; 
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.btn-download svg { color: #000; width: 24px; height: 24px; }
.how-card .btn-telegram { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  background: #26a5e4; 
  color: #fff; 
  border: 1px solid #26a5e4; 
  border-radius: 8px; 
  padding: 12px 16px; 
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  transition: all 0.3s ease;
}
.how-card .btn-telegram img { width: 32px; height: 32px; }


/* Pricing */
.pricing { padding: 60px 24px; }
.pricing h2 { font-size: 48px; margin: 0 0 24px; }
.pricing-panel { background: #171717; border: none; border-radius: 28px; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,.45) inset, 0 2px 0 rgba(255,255,255,0.06); }
.pricing-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: stretch; }
.price-box { background: linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%); border: 1px solid #3c3c3c; border-radius: 22px; padding: 20px; box-shadow: var(--shadow-2); }
.price-title { font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.price-chip-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.chip-muted { color: #808080; font-weight: 700; letter-spacing: .02em; }
.chip-price { display: inline-block; padding: 8px 16px; background: #747474; border: 1px solid #5b5b5b; border-radius: 10px; font-weight: 800; font-size: 22px; box-shadow: var(--shadow-2) inset; color: #fff; }
.price-sub { color: rgb(207, 207, 207); }
.why-box { background: linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%); border: 1px solid #3c3c3c; border-radius: 22px; padding: 20px; box-shadow: var(--shadow-2); }
.why-title { font-weight: 800; font-size: 22px; margin-bottom: 16px; color: #fff; }
.why-text { color: rgb(207, 207, 207) !important; font-size: 16px; }
.pricing-cta { display: block; text-align: center; margin-top: 20px; background: linear-gradient(90deg, #00abff 0%, #26a5e4 50%, #00abff 100%); color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; padding: 16px; border-radius: 10px; width: 100%; }
.pricing-cta img { margin-right: 12px; vertical-align: middle; }
.pricing-cta span { vertical-align: middle; }

/* Benefits */
.benefits { padding: 20px 24px 60px; }
.benefits h2 { font-size: 48px; margin: 0 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 18px 0; }
.benefit { background: linear-gradient(180deg, #2d2d2d 0%, #131313 100%); border-radius: 19px; padding: 20px; box-shadow: var(--shadow-2); }
.benefit h3 { font-size: 20px; margin: 0 0 8px; font-weight: 800; }
.benefit p { color: var(--subtle); font-size: 18px; margin: 0; }

/* Why v2RayTun Section */
.why-section {
  padding: 80px 0;
  background: #0c0c0c;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.why-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out both;
}
.why-card:nth-child(1) { animation-delay: 0.1s; }
.why-card:nth-child(2) { animation-delay: 0.2s; }
.why-card:nth-child(3) { animation-delay: 0.3s; }
.why-card:nth-child(4) { animation-delay: 0.4s; }
.why-card:nth-child(5) { animation-delay: 0.5s; }
.why-card:nth-child(6) { animation-delay: 0.6s; }

.why-card:hover {
  border-color: #007AFF;
  transform: translateY(-2px);
}

.why-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.why-text {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
  margin: 0;
}

/* FAQ */
.faq { padding: 40px 24px 80px; }
.faq h2 { font-size: 48px; margin: 0 0 20px; }
.faq-card { background: linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%); border: 1px solid #3c3c3c; border-radius: 18px; padding: 18px; margin: 16px 0; box-shadow: var(--shadow-2); }
.faq-acc { 
  background: linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%); 
  border: 1px solid #3c3c3c; 
  border-radius: 18px; 
  margin: 16px 0; 
  box-shadow: var(--shadow-2); 
  overflow: hidden; 
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out both;
}
.faq-acc:nth-child(1) { animation-delay: 0.1s; }
.faq-acc:nth-child(2) { animation-delay: 0.2s; }
.faq-acc:nth-child(3) { animation-delay: 0.3s; }
.faq-acc:nth-child(4) { animation-delay: 0.4s; }
.faq-acc:nth-child(5) { animation-delay: 0.5s; }
.faq-acc:nth-child(6) { animation-delay: 0.6s; }
.faq-acc:nth-child(7) { animation-delay: 0.7s; }
.faq-acc:nth-child(8) { animation-delay: 0.8s; }
.faq-acc:nth-child(9) { animation-delay: 0.9s; }
.faq-acc:nth-child(10) { animation-delay: 1.0s; }
.faq-acc:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 15px 35px rgba(0,0,0,.4); 
}
.faq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 16px 18px; }
.faq-acc[open] .faq-plus { transform: none; }
.faq-acc .faq-body { padding: 0 18px 16px; }
.faq-title { font-weight: 800; font-size: 22px; }
.faq-plus { 
  width: 28px; 
  height: 28px; 
  display: grid; 
  place-items: center; 
  background: transparent; 
  border: none; 
  color: #fff; 
  transition: transform 0.3s ease;
}
.faq-body { margin-top: 8px; color: #cfcfcf; }
.faq-body p, .faq-body ol, .faq-body ul { margin: 8px 0; }

/* Footer */
.site-footer { border-top: 1px solid #313131; margin-top: 40px; }
.footer { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 24px; }
.footer .brand { align-items: center; }
.footer-title { font-weight: 700; margin-bottom: 8px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.footer a { color: #9f9f9f; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .provider { position: static; transform: none; margin-top: 12px; }
  .how-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .os-cards .grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}

/* Mobile optimization */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  
  /* Header */
  .nav { height: 60px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 16px; }
  
  /* Hero */
  .hero { padding: 40px 16px; gap: 24px; }
  .hero h1 { font-size: 36px; line-height: 1.2; }
  .subtitle { font-size: 14px; }
  .muted { font-size: 16px; margin: 12px 0 20px; }
  .cta-row { flex-direction: column; gap: 12px; align-items: stretch; }
  .btn { font-size: 16px; padding: 14px 20px; }
  
  /* OS Cards */
  .os-cards { padding: 40px 16px 20px; }
  .os-cards h2 { font-size: 32px; margin: 0 0 20px; }
  .dl-grid { grid-template-columns: 1fr; gap: 16px; }
  .dl-btn { padding: 12px 20px; border-radius: 12px; min-height: 50px; }
  .dl-label { font-size: 14px; }
  
  /* How section */
  .how { padding: 20px 16px; }
  .how h2 { font-size: 28px; }
  .how-card { padding: 16px; height: 160px; }
  .how-card-title { font-size: 16px; }
  .how-card-text { font-size: 14px; }
  .video-title { font-size: 20px; margin-bottom: 16px; }
  
  /* Pricing */
  .pricing { padding: 40px 16px; }
  .pricing h2 { font-size: 32px; }
  .pricing-cols { grid-template-columns: 1fr; gap: 16px; }
  .price-box, .why-box { padding: 16px; }
  .price-title, .why-title { font-size: 18px; }
  .why-text { font-size: 14px; color: rgb(207, 207, 207) !important; }
  
  /* Benefits */
  .benefits { padding: 20px 16px 40px; }
  .benefits h2 { font-size: 28px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .benefit { padding: 16px; }
  .benefit h3 { font-size: 16px; }
  .benefit p { font-size: 14px; }
  
  /* Why section */
  .why-section { padding: 40px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .why-card { padding: 16px; }
  .why-title { font-size: 16px; }
  .why-text { font-size: 14px; color: rgb(207, 207, 207) !important; }
  
  /* FAQ */
  .faq { padding: 20px 16px 40px; }
  .faq h2 { font-size: 32px; }
  .faq-head { padding: 12px 16px; }
  .faq-title { font-size: 16px; }
  .faq-body { padding: 0 16px 12px; font-size: 14px; }
  
  /* Footer */
  .footer { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .footer-links { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .os-cards h2, .pricing h2, .benefits h2, .faq h2 { font-size: 24px; }
  .how h2 { font-size: 24px; }
  .btn { font-size: 14px; padding: 12px 16px; }
  .dl-btn { padding: 10px 16px; min-height: 45px; }
  .dl-label { font-size: 12px; }
  .video-title { font-size: 18px; margin-bottom: 12px; }
}



.how-card {
  position: relative;
  border: none;
}

.how-card::before {
  content: "";
  position: absolute;
  left: var(--corner-offset-x);
  top: 0;
  width: var(--corner-thickness);
  height: 100%;
  background-color: var(--corner-color);
}

.how-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: var(--corner-offset-y);
  width: 100%;
  height: var(--corner-thickness);
  background-color: var(--corner-color);
}
