/*
Theme Name: AuthInfo Guide
Theme URI: https://example.com/authinfo
Author: AuthInfo Team
Description: Одностраничная тема-лендинг для статьи об AuthInfo-кодах и переносе доменов
Version: 1.0
Text Domain: authinfo-guide
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0e1a;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108,92,231,0.35);
  --green: #00cec9;
  --green-glow: rgba(0,206,201,0.3);
  --orange: #fdcb6e;
  --red: #ff6b6b;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-bright: #f8fafc;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-glow::before,
.bg-glow::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(120px); opacity: .18;
}
.bg-glow::before {
  width: 600px; height: 600px; top: -200px; right: -100px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: floatGlow 12s ease-in-out infinite;
}
.bg-glow::after {
  width: 500px; height: 500px; bottom: -150px; left: -100px;
  background: radial-gradient(circle, var(--green), transparent 70%);
  animation: floatGlow 15s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px,30px) scale(1.1); }
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 70px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700; color: var(--text-bright);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #fff;
}
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: 8px 16px; border-radius: 8px; transition: var(--transition);
}
.nav-links a:hover { color: var(--text-bright); background: var(--glass); }

.burger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.burger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 120px 32px 80px; text-align: center;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.45;
  animation: fadeIn 1.2s ease-out;
}
.hero-bg-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg-dark) 100%);
}
.hero-content { max-width: 800px; position: relative; z-index: 1; }

/* ===== SECTION IMAGES ===== */
.section-image {
  width: 100%; height: auto; border-radius: var(--radius);
  display: block; margin: 0 auto;
}
.section-image.wide {
  max-width: 100%;
}
.steps-illustration,
.ru-zones-illustration,
.security-illustration {
  max-width: 800px; margin: 0 auto 48px; text-align: center;
}
.steps-illustration { max-width: 1000px; }
.ru-zones-illustration img,
.steps-illustration img {
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.security-illustration {
  max-width: 500px; margin-bottom: 48px;
}

/* ===== CARD ICON IMAGES ===== */
.card-icon img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px;
}

/* ===== LOGO ICON IMAGE ===== */
.logo-icon img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 10px;
}

/* ===== PROBLEMS BACKGROUND ===== */
.problems-section {
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: var(--radius); position: relative;
}
.problems-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 14, 26, 0.82);
  border-radius: var(--radius);
  z-index: 0;
}
.problems-section > * { position: relative; z-index: 1; }

/* ===== WHAT-IS IMAGE ===== */
.what-is-visual .section-image {
  margin-bottom: 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.45; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 50px; padding: 8px 20px; margin-bottom: 28px;
  font-size: .85rem; color: var(--accent-light);
  animation: fadeInUp .8s ease-out;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--green-glow); }
  50% { opacity: .7; box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15; color: var(--text-bright);
  margin-bottom: 24px;
  animation: fadeInUp .8s ease-out .1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-dim); max-width: 600px; margin: 0 auto 40px;
  animation: fadeInUp .8s ease-out .2s both;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp .8s ease-out .3s both;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px; font-size: .95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-outline:hover { background: var(--glass); border-color: var(--accent); }

/* ===== SECTIONS ===== */
.section {
  position: relative; z-index: 1;
  padding: 100px 32px; max-width: 1200px; margin: 0 auto;
}
.section-header {
  text-align: center; margin-bottom: 64px;
}
.section-label {
  display: inline-block; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-light); margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--text-bright); margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-dim); max-width: 640px; margin: 0 auto;
}

/* ===== GLASS CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 32px;
  transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(108,92,231,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.card-icon.purple { background: rgba(108,92,231,0.15); color: var(--accent-light); }
.card-icon.green  { background: rgba(0,206,201,0.15); color: var(--green); }
.card-icon.orange { background: rgba(253,203,110,0.15); color: var(--orange); }
.card-icon.red    { background: rgba(255,107,107,0.15); color: var(--red); }

.card h3 {
  font-size: 1.2rem; font-weight: 600; color: var(--text-bright); margin-bottom: 12px;
}
.card p { color: var(--text-dim); font-size: .95rem; }

/* ===== GRID LAYOUTS ===== */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}

/* ===== WHAT IS SECTION ===== */
.what-is-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.what-is-visual {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 40px; text-align: center;
}
.code-display {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600;
  color: var(--accent-light); letter-spacing: 2px;
  padding: 20px; background: rgba(108,92,231,0.08);
  border-radius: var(--radius-sm); border: 1px dashed rgba(108,92,231,0.3);
  margin-bottom: 16px; word-break: break-all;
}
.what-is-visual .label {
  font-size: .85rem; color: var(--text-dim);
}
.what-is-text h2 {
  font-size: 2rem; font-weight: 700; color: var(--text-bright); margin-bottom: 20px;
}
.what-is-text p { margin-bottom: 16px; color: var(--text-dim); }
.analogy-box {
  background: rgba(0,206,201,0.06); border: 1px solid rgba(0,206,201,0.15);
  border-radius: var(--radius-sm); padding: 20px; margin-top: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.analogy-box .icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.analogy-box p { color: var(--text); font-size: .95rem; margin: 0; }

/* ===== WHY NEEDED ===== */
.why-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ===== STEPS SECTION ===== */
.steps-list { max-width: 720px; margin: 0 auto; }
.step-item {
  display: flex; gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--glass-border);
  opacity: 0; animation: fadeInUp .6s ease-out forwards;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
}
.step-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-bright); margin-bottom: 8px; }
.step-content p { color: var(--text-dim); font-size: .95rem; }

/* ===== REGISTRARS TABLE ===== */
.registrars-table-wrap {
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden;
}
.registrars-table {
  width: 100%; border-collapse: collapse; font-size: .93rem;
}
.registrars-table th {
  text-align: left; padding: 16px 20px; font-weight: 600; color: var(--accent-light);
  background: rgba(108,92,231,0.08); font-size: .82rem; text-transform: uppercase;
  letter-spacing: 1px;
}
.registrars-table td {
  padding: 16px 20px; border-top: 1px solid var(--glass-border); color: var(--text-dim);
}
.registrars-table tr:hover td { background: var(--bg-card-hover); }
.registrars-table .reg-name { font-weight: 600; color: var(--text-bright); }
.badge-zone {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: .78rem; font-weight: 600;
}
.badge-zone.intl { background: rgba(108,92,231,0.15); color: var(--accent-light); }
.badge-zone.ru   { background: rgba(0,206,201,0.15); color: var(--green); }

/* ===== PROBLEMS SECTION ===== */
.problems-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.problem-card { position: relative; overflow: hidden; }
.problem-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0; transition: var(--transition);
}
.problem-card:hover::before { opacity: 1; }
.problem-card h3 { display: flex; align-items: center; gap: 10px; }
.problem-card h3 .icon { font-size: 1.2rem; }

/* ===== SECURITY SECTION ===== */
.security-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.security-item {
  display: flex; gap: 16px; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); transition: var(--transition);
}
.security-item:hover { border-color: rgba(255,107,107,0.3); background: var(--bg-card-hover); }
.security-item .icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,107,107,0.12); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.security-item h4 { font-size: 1rem; font-weight: 600; color: var(--text-bright); margin-bottom: 6px; }
.security-item p { font-size: .9rem; color: var(--text-dim); }

/* ===== SUMMARY / CTA ===== */
.summary-section {
  position: relative; z-index: 1;
  padding: 100px 32px; text-align: center;
}
.summary-box {
  max-width: 800px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.05));
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: 24px; padding: 60px 48px;
}
.summary-box h2 {
  font-size: 2rem; font-weight: 700; color: var(--text-bright); margin-bottom: 24px;
}
.summary-list {
  list-style: none; text-align: left; max-width: 600px; margin: 0 auto 36px;
}
.summary-list li {
  padding: 10px 0; color: var(--text-dim); font-size: .95rem;
  display: flex; gap: 12px; align-items: flex-start;
}
.summary-list .check { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }
.summary-cta { margin-top: 16px; }

/* ===== FOOTER ===== */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 40px 32px; text-align: center;
  color: var(--text-dim); font-size: .85rem;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3, .why-cards { grid-template-columns: repeat(2,1fr); }
  .what-is-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(10,14,26,0.95); backdrop-filter: blur(20px);
    padding: 16px; border-bottom: 1px solid var(--glass-border);
  }
  .grid-3, .grid-2, .why-cards, .problems-grid, .security-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 2rem; }
  .section { padding: 60px 20px; }
  .summary-box { padding: 40px 24px; }
  .registrars-table-wrap { overflow-x: auto; }
  .registrars-table { min-width: 600px; }
}
