@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Remnawave v2.6 Mantine Dark palette */
  --bg: #141517;
  --bg-2: #1a1b1e;
  --card: #1a1b1e;
  --card-solid: #1a1b1e;
  --border: #2c2e33;
  --text: #c1c2c5;
  --text-bright: #f8f9fa;
  --muted: #909296;
  --primary: #22b8cf;
  --primary-2: #15aabf;
  --success: #40c057;
  --warning: #fab005;
  --danger: #fa5252;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 12% 8%, rgba(34, 184, 207, 0.16), transparent 38%),
              radial-gradient(circle at 88% 12%, rgba(99, 102, 241, 0.18), transparent 42%),
              #090d16;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2, h3, h4, b, strong { color: var(--text-bright); }
code, .sub-box { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(20, 21, 23, 0.9);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}
.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(34, 184, 207, 0.25));
}
.brand-pro {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(56, 232, 255, 0.2), rgba(99, 102, 241, 0.24));
  border: 1px solid rgba(56, 232, 255, 0.4);
  color: #67e8f9;
  margin-left: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #090d16;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  filter: none;
}
.btn-success { background: var(--success); border: none; color: #052e16; font-weight: 700; }
.btn-danger { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.45); color: #fca5a5; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* Cards & Grid */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.14);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.35); }
.badge-warn { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
.badge-danger { background: rgba(239, 68, 68, 0.16); color: #f87171; border-color: rgba(239, 68, 68, 0.35); }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.12;
  margin: 14px 0 16px;
  letter-spacing: -0.03em;
}
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
/* Minimalist Apple-style Vertical Guide List */
.hero-title {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: #ffffff;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .hero-title { white-space: normal; }
}
.hero-sub {
  color: #8b95a5;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 28px;
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}
.guide-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.guide-item:hover {
  background: rgba(255, 255, 255, 0.035);
}
.guide-item.active {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}
.guide-dot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}
.guide-item.active .guide-dot {
  background: #ffffff;
  color: #090d16;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.28);
}
.guide-head {
  font-size: 16px;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 28px;
  transition: color 0.2s ease;
}
.guide-item.active .guide-head {
  color: #ffffff;
}
.guide-body {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #94a3b8;
}
.guide-item.active .guide-body {
  display: block;
  animation: fadeIn 0.2s ease;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-actions .btn-primary {
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
  border-radius: 14px;
}
/* Centered 3-column Desktop Stage: Steps (Left) | iPhone (Center) | Apps (Right) */
.stage-3col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 135px);
  padding: 24px 0 28px;
}
.apps-panel-head {
  text-align: center;
  margin-bottom: 16px;
}
.apps-panel-head h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.apps-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(34, 184, 207, 0.12), rgba(99, 102, 241, 0.14));
  border: 1px solid rgba(34, 184, 207, 0.3);
  color: #e2e8f0;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: left;
}
.apps-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.app-mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.app-mini-title {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}
.app-mini-links {
  display: grid;
  gap: 6px;
}
.app-mini-links .btn {
  padding: 7px 9px;
  font-size: 11.5px;
  border-radius: 9px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1120px) {
  .stage-3col {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }
}
@media (max-width: 560px) {
  .apps-grid-2x2 { grid-template-columns: 1fr; }
}

/* Section */
.section { padding: 36px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); }

/* Video Guide Hub */
.video-hub {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
.step-list { display: flex; flex-direction: column; gap: 10px; }
.step-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all .18s ease;
}
.step-btn:hover { background: rgba(255, 255, 255, 0.07); }
.step-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.16));
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.step-num { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); font-weight: 700; }
.step-title { font-weight: 700; font-size: 15px; margin-top: 2px; }
.step-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }

.video-stage {
  background: #050811;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 20px;
  align-items: center;
}
/* Ultra-thin bezel iPhone 18 Pro Max (6.9" Titanium) Mockup */
.iphone-mockup {
  position: relative;
  width: 100%;
  max-width: 318px;
  margin: 0 auto;
  padding: 7px;
  border-radius: 50px;
  background: linear-gradient(145deg, #646a75 0%, #22262e 38%, #15181f 65%, #4a505c 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 0 0 2.5px #07090d;
}
.iphone-mockup::before {
  /* Action button + Volume Up/Down */
  content: "";
  position: absolute;
  left: -3px;
  top: 112px;
  width: 3px;
  height: 38px;
  background: linear-gradient(180deg, #747b88, #383e49);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 50px 0 #525866, 0 -30px 0 -0.5px #646b78;
}
.iphone-mockup::after {
  /* Power button + Camera Control button */
  content: "";
  position: absolute;
  right: -3px;
  top: 132px;
  width: 3px;
  height: 64px;
  background: linear-gradient(180deg, #747b88, #383e49);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 190px 0 -0.5px #5a6170;
}
.iphone-screen {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  background: #0b111c;
  aspect-ratio: 544 / 960;
  width: 100%;
}
.iphone-statusbar {
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 30px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  pointer-events: none;
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
}
.iphone-island {
  /* Ultra-compact Dynamic Island (iPhone 18 Pro Max) */
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 18px;
  border-radius: 12px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 5;
  pointer-events: none;
}
.iphone-island::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 4.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #344c82, #050811 70%);
}
.iphone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.iphone-homebar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 106px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  z-index: 5;
  pointer-events: none;
}

/* Interactive Telegram Trainer */
.tg-sim {
  max-width: 390px;
  margin: 0 auto;
  border-radius: 26px;
  border: 3px solid #263449;
  background: #0e1621;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tg-header {
  background: #17212b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tg-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: grid; place-items: center; font-weight: 800;
}
.tg-chat {
  min-height: 290px;
  max-height: 360px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tg-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  white-space: pre-line;
  animation: fadeIn .22s ease;
}
.tg-msg.bot { background: #182533; align-self: flex-start; border-bottom-left-radius: 4px; }
.tg-msg.user { background: #2b5278; align-self: flex-end; border-bottom-right-radius: 4px; }
.tg-kb {
  background: #17212b;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tg-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #243447;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.tg-btn.pulse {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGlow 1.5s infinite;
}
.tg-btn.full { grid-column: span 2; }

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Forms & Inputs */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(5, 8, 17, 0.75);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab-btn {
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.tab-btn.active { background: var(--primary); color: #04121f; border-color: var(--primary); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* Code / Subscription Box */
.sub-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #050811;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
}

/* Chat */
.chat-box {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #060a14;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
}
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  white-space: pre-wrap;
}
.chat-bubble.client { align-self: flex-end; background: rgba(56, 189, 248, 0.2); border: 1px solid rgba(56, 189, 248, 0.35); }
.chat-bubble.admin { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); }
.chat-meta { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
  display: none;
}

.demo-banner {
  background: rgba(245, 158, 11, 0.14);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
}

.muted { color: var(--muted); }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

@media (max-width: 920px) {
  .hero-grid, .video-hub, .video-stage, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
