/* Aurora Shadowsocks — styles.css v2 with mobile & reveal */
:root{
  --bg:#0b1220; --bg-2:#0e1730; --text:#e6e9f2; --muted:#98a2b3;
  --brand-1:#8b5cf6; --brand-2:#60a5fa; --ok:#22c55e; --warn:#f59e0b; --danger:#ef4444;
  --card:rgba(255,255,255,.06); --border:rgba(255,255,255,.12); --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:20px; --max:1100px;
}
*{box-sizing:border-box} html,body{height:100%}
body{
  margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #1a2a6c33, transparent 60%),
              radial-gradient(1000px 600px at 90% 10%, #3b82f633, transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg-2));
  position:relative;overflow-x:hidden;
}
body:before{content:"";position:fixed;inset:0;background-image:radial-gradient(#ffffff22 1px, transparent 1px);
  background-size:18px 18px;mask-image:linear-gradient(#000, #0000);pointer-events:none}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:24px 18px}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px}

/* Fixed header below the top news ticker */
header.container.nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: var(--max);
  z-index: 1100;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px; /* more compact header */
  overflow: hidden; /* clip rounded corners */
}

/* Mobile header adjustments */
@media (max-width: 768px) {
  header.container.nav {
    padding: 10px 12px; /* более компактный header на мобильных */
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  header.container.nav {
    padding: 8px 10px; /* еще более компактный на маленьких экранах */
    border-radius: 10px;
  }
}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,var(--brand-1),var(--brand-2));box-shadow:0 6px 18px rgba(96,165,250,.35)}
.logo.lg{width:42px;height:42px;border-radius:14px}
.brand h1{font-size:18px;margin:0;font-weight:700;letter-spacing:.2px}
.nav .right{display:flex;align-items:center;gap:10px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;border-radius:14px;
  background:var(--card);border:1px solid var(--border);backdrop-filter: blur(8px);-webkit-backdrop-filter: blur(8px);
  transition:.25s ease; box-shadow:var(--shadow); cursor:pointer}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.08)}
.btn.primary{background:linear-gradient(135deg,var(--brand-2),var(--brand-1));border-color:transparent;font-weight:700}
.btn.bold{font-weight:700}
.btn.block{width:100%}

.hero{padding:56px 0 22px}

/* Ensure main content doesn't overlap with fixed header */
main {
  position: relative;
  z-index: 1;
}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:center}
.hero h2{font-size:44px;line-height:1.1;margin:0 0 16px;font-weight:800;letter-spacing:.2px}
.hero p{color:var(--muted);font-size:18px;margin:0 0 24px}
.cta{display:flex;flex-wrap:wrap;gap:12px}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.section{padding:30px 0}
.section#faq{margin-top:28px}
.section h3{font-size:28px;margin:0 0 18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.feature{display:flex;flex-direction:column;gap:10px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.05);color:#cbd5e1;font-size:12px}
.chip .icon{width:20px;height:20px;opacity:.9}
.feature .chip{font-size:13px;padding:10px 14px}
.feature .muted{font-size:14px}
.mt-14{margin-top:14px}
.muted{color:var(--muted)}
.small{font-size:13px}

.regions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.region{padding:16px;border-radius:16px;border:1px solid var(--border);background:rgba(255,255,255,.05)}
.region .top{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.latency{font-size:12px;color:#a7f3d0}
.region-active{outline:1px solid #60a5fa55}

.ui-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.ui-title{font-weight:700}
.ui-sub{font-size:13px}
.ui-status{margin-top:14px;display:flex;align-items:center;gap:12px}
.badge-de{width:44px;height:44px;border-radius:14px;background:#0b132b;display:grid;place-items:center;border:1px solid var(--border)}

.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.pricing-2{grid-template-columns:repeat(2,1fr)} /* 2 тарифа */
.price{padding:22px;border-radius:18px;border:1px solid var(--border);background:rgba(255,255,255,.06);position:relative}
.price .title{font-weight:700;margin-bottom:6px}
.price .num{font-size:34px;font-weight:800}
.badge{position:absolute;top:14px;right:14px;font-size:12px;background:linear-gradient(135deg,var(--brand-2),var(--brand-1));padding:6px 10px;border-radius:999px}

details{border:1px solid var(--border);border-radius:14px;padding:14px 16px;background:rgba(255,255,255,.05)}
details+details{margin-top:10px}
summary{cursor:pointer;font-weight:600}
summary::-webkit-details-marker{display:none}

.browsers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
  text-align: center;
}
.browser-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* чтобы текст и иконка по центру */
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
  width: 140px;   /* фиксированная ширина */
  height: 140px;  /* фиксированная высота */
}
.browser-card:hover {
  transform: translateY(-4px);
}
.browser-card img {
  width: 48px;
  height: 48px;
}
.browser-card span {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  text-align: center;
}

.footer{padding:32px 0;color:var(--muted);border-top:1px solid var(--border);margin-top:30px}
.footer-links{display:flex;gap:16px}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* Reveal animations */
.reveal, .reveal-up{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease}
.reveal.visible, .reveal-up.visible{opacity:1; transform:none}
/* Staggered entrance for features */
.grid-3 .feature.reveal{transition-duration:.5s}
.grid-3 .feature.reveal:nth-child(1){transition-delay:.05s}
.grid-3 .feature.reveal:nth-child(2){transition-delay:.15s}
.grid-3 .feature.reveal:nth-child(3){transition-delay:.25s}
/* Hover animation */
.feature{transition: transform .2s ease, box-shadow .2s ease}
.feature:hover{transform: translateY(-4px)}
.feature:hover .chip{transform: translateY(-1px)}
/* Header must always be visible (no reveal animation) */
header.container.nav.reveal-up{opacity:1; transform:none}

/* Mobile optimizations */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid-3,.regions{grid-template-columns:1fr}
  .pricing, .pricing-2{grid-template-columns:1fr}
  .hero h2{font-size:32px}
  .hero p{font-size:16px}
  .nav .right{gap:8px}
  .btn{padding:12px 14px}
  .cta .btn{flex:1; min-width:180px}
  .ui-status{flex-wrap:wrap}
  .badge-de{width:40px;height:40px}
  .container{padding:20px 14px}
  #cta-chrome { display: none !important; }
}
@media (max-width: 420px){
  .btn{padding:12px 12px;border-radius:12px}
  .brand h1{font-size:16px}
  .hero h2{font-size:28px}
  .cta .btn{width:100%}
  #cta-chrome { display: none !important; }
}

/* === Aurora Brand – Subtle intensity override === */
:root{
  --aurora-brand-outline-1: rgba(125,211,252,.35);
  --aurora-brand-outline-2: rgba(96,165,250,.22);
}

/* мягче фон и обводка */
.aurora-brand{
  --ab-outline-1: var(--aurora-brand-outline-1);
  --ab-outline-2: var(--aurora-brand-outline-2);
}
.aurora-brand::before{
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(125,211,252,.12), transparent 60%),
    radial-gradient(120% 90% at 100% 10%, rgba(96,165,250,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  box-shadow:
    inset 0 0 0 1px rgba(125,211,252,.18),
    0 8px 22px rgba(0,0,0,.25);
}
.aurora-brand::after{
  background: linear-gradient(135deg, var(--ab-outline-1), var(--ab-outline-2), transparent 75%);
  opacity: .85;
}

/* менее яркие лого и текст */
.aurora-brand__logo{ box-shadow: 0 2px 8px rgba(96,165,250,.18); }
.aurora-brand__title{
  background: linear-gradient(180deg, #e6efff, #cfe0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.aurora-brand__name{ color: #d6e8ff; text-shadow: 0 0 8px rgba(96,165,250,.15); }

/* спокойный hover */
.aurora-brand:hover::before{
  box-shadow:
    inset 0 0 0 1px rgba(125,211,252,.22),
    0 10px 26px rgba(96,165,250,.18);
}
.aurora-brand:hover .aurora-brand__title{ filter: none; }

/* Новостная строка */
.news-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.28);
  color: var(--muted);
  padding: 8px 0;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.news-ticker-content {
  display: flex;
  animation: scroll-news 60s linear infinite;
  white-space: nowrap;
  gap: 60px;
}

.news-item {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 0 16px;
  color: inherit;
  flex-shrink: 0;
}

@keyframes scroll-news {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Пауза при наведении */
.news-ticker:hover .news-ticker-content {
  animation-play-state: paused;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .news-ticker {
    padding: 8px 0;
  }
  
  .news-item {
    font-size: 12px;
    padding: 0 12px;
  }
  
  .news-ticker-content {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .news-item {
    font-size: 12px;
    padding: 0 10px;
  }
  
  .news-ticker-content {
    gap: 30px;
  }
}

/* Reserve space for fixed header height */
body { 
  padding-top: 76px; 
}

/* Mobile-specific padding adjustments */
@media (max-width: 768px) {
  body { 
    padding-top: 90px; /* больше места для header на мобильных */
  }
}

@media (max-width: 480px) {
  body { 
    padding-top: 100px; /* еще больше места для очень маленьких экранов */
  }
}