/* =============================================
   OaaS Portal — Main Stylesheet (White Theme)
   Takhitech © 2026
   ============================================= */

:root {
  --bg:         #ffffff;
  --bg-2:       #f7f8fa;
  --bg-card:    #ffffff;
  --bg-card-2:  #f0f2f6;

  --border:     #e2e6ed;
  --border-2:   #c8d0db;

  --red:        #d32f2f;
  --red-dim:    rgba(211,47,47,0.08);
  --red-mid:    rgba(211,47,47,0.15);
  --blue:       #1565c0;
  --blue-dim:   rgba(21,101,192,0.08);

  --text:       #1a1a2e;
  --text-2:     #4a5568;
  --text-3:     #8896ab;

  --font-body:  'Inter', system-ui, sans-serif;
  --font-mono:  'Space Mono', monospace;

  --radius:     12px;
  --radius-sm:  8px;
  --transition: 0.18s ease;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:     0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav.scrolled, .nav-solid {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; gap: 0;
  height: 64px; max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0;
  text-decoration: none; margin-right: auto;
}
.nav-logo-img { height: 36px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0 16px 0 0;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2); text-decoration: none;
  padding: 6px 12px; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); }
.nav-links a.active { color: var(--red); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

.btn-ghost-icon {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: none;
  color: var(--text-2); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; transition: all var(--transition); cursor: pointer;
  font-family: var(--font-body);
}
.btn-ghost-icon svg { width: 16px; height: 16px; }
.btn-ghost-icon:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-2); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-2); border-radius: 2px; transition: 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-signin-text, .logo-text-full { }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  background: var(--red); color: white; border: none;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all var(--transition); white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #b71c1c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(211,47,47,0.3);
}
.btn-primary.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-primary.btn-block { width: 100%; text-align: center; }

.btn-ghost {
  color: var(--text-2); border: 1.5px solid var(--border-2);
  background: none; padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; font-family: var(--font-body);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: all var(--transition); white-space: nowrap;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-2); }
.btn-ghost.btn-lg { padding: 13px 28px; font-size: 1rem; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 0 100px;
  background: linear-gradient(160deg, #ffffff 60%, #fef2f2 100%);
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(211,47,47,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; max-width: 860px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-dim); border: 1px solid rgba(211,47,47,0.2);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; color: var(--red);
  margin-bottom: 28px; letter-spacing: 0.02em; text-transform: uppercase;
}
.badge-dot {
  width: 7px; height: 7px; background: var(--red);
  border-radius: 50%; animation: pulse-dot 3s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(0.8); }
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.03em; color: var(--text);
  margin-bottom: 24px;
}
.accent-red { color: var(--red); }

.hero-sub {
  font-size: 1.15rem; color: var(--text-2);
  line-height: 1.7; max-width: 640px; margin-bottom: 36px;
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust-items { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-2); font-weight: 500;
}
.hero-trust-item svg { color: var(--red); }
.hero-trust-sep { color: var(--border-2); }

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
  background: var(--text); color: white;
  padding: 32px 0; position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #1a1a2e 0%, #2d1b1b 50%, #1a1a2e 100%);
}
.stats-bar .container { position: relative; z-index: 1; }
.stats-inner { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); margin: 0 40px; }
.stat-item { text-align: center; }
.stat-value { font-size: 2.4rem; font-weight: 700; color: white; line-height: 1; font-family: var(--font-mono); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 4px; font-weight: 500; letter-spacing: 0.03em; }
.stat-note { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.live-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; display: inline-block; margin-right: 6px; animation: pulse-dot 4s ease infinite; }
#stats-status { font-size: 0.7rem; color: rgba(255,255,255,0.35); text-align: center; margin-top: 12px; }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }
.section-header { margin-bottom: 56px; }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--text); line-height: 1.2;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--text-2); font-size: 1.05rem; margin-top: 12px; max-width: 560px; line-height: 1.7; }

/* =============================================
   FEATURES GRID
   ============================================= */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-2); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon-red { background: var(--red-dim); color: var(--red); }
.feature-icon-blue { background: var(--blue-dim); color: var(--blue); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon img { width: 24px; height: 24px; object-fit: contain; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* =============================================
   CHANNELS
   ============================================= */
.channels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.channels-bottom { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.channel-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.channel-card:hover { box-shadow: var(--shadow); border-color: var(--red); }
.channel-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--red-dim); display: flex; align-items: center; justify-content: center;
  color: var(--red); margin-bottom: 16px;
}
.channel-icon svg { width: 22px; height: 22px; }
.channel-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.channel-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; margin-bottom: 12px; }
.channel-badge-highlight { margin-top: 14px; }
.channel-badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  background: var(--red-dim); border: 1px solid rgba(211,47,47,0.2);
  font-size: 0.75rem; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}
.channel-badge-desc { font-size: 0.82rem; color: var(--text-2); display: block; line-height: 1.5; }

/* =============================================
   HOW IT WORKS / STEPS
   ============================================= */
.steps-flow { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 160px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 24px 16px; position: relative;
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: white;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(211,47,47,0.25);
}
.step-content h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step-content p { font-size: 0.82rem; color: var(--text-2); line-height: 1.55; }
.step-arrow {
  position: absolute; top: 36px; right: -12px; z-index: 2;
  font-size: 1.2rem; color: var(--red); font-weight: 700;
}
.step-arrow-none { display: none; }

/* =============================================
   PROCESS ANIMATION (How It Works page)
   ============================================= */
.process-step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  align-items: start; padding: 40px 0;
  border-bottom: 1px solid var(--border);
  opacity: 1; transform: none;
}
.process-step.visible { opacity: 1; transform: none; }
.process-step:last-child { border-bottom: none; }
.process-step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--red); color: white;
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 6px 20px rgba(211,47,47,0.3);
}
.process-step-icon {
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--red-dim); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 12px;
}
.process-step-icon img { width: 36px; height: 36px; object-fit: contain; }
.process-step-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.process-step-body p { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; max-width: 640px; }
.process-step-img {
  margin-top: 20px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.process-step-img img { width: 100%; height: auto; display: block; }
.process-arrow {
  display: flex; justify-content: center; padding: 8px 0;
  color: var(--red); font-size: 1.5rem;
}

/* =============================================
   SECURITY / FEATURES LIST
   ============================================= */
.security-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.security-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 16px; align-items: flex-start;
}
.security-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--red-dim); color: var(--red);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.security-icon svg { width: 20px; height: 20px; }
.security-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.security-item p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }
.security-desc { color: var(--text-2); line-height: 1.7; font-size: 0.95rem; }

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section { background: var(--text); }
.cta-inner {
  position: relative; text-align: center;
  padding: 80px 24px; max-width: 760px; margin: 0 auto;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(211,47,47,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; color: white; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 16px; position: relative;
}
.cta-inner p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.7; position: relative; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; position: relative; }
.cta-actions .btn-ghost {
  color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25);
}
.cta-actions .btn-ghost:hover { color: white; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal { opacity: 1; transform: none; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   PORTAL PAGES (login, portal, admin, cms, viewer)
   Light theme consistent with main site
   ============================================= */
.portal-body { background: var(--bg-2); }
.portal-body .nav-solid, .portal-body .nav.scrolled {
  background: rgba(255,255,255,0.98);
  border-color: var(--border);
}
.portal-body .nav-links a { color: var(--text-2); }
.portal-body .nav-links a:hover { color: var(--text); background: var(--bg-2); }
.portal-user-badge {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  padding: 5px 12px; border-radius: 6px;
  font-size: 0.82rem; color: var(--text-2); font-weight: 500;
}

/* Portal page content */
.portal-header { margin-bottom: 40px; }
.portal-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.portal-header p { color: var(--text-2); }

/* Server cards */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.server-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.server-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.server-status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.server-online { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.server-offline { background: #cbd5e1; }
.server-info { flex: 1; }
.server-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.server-url { font-size: 0.75rem; color: var(--text-3); font-family: var(--font-mono); }
.server-stats { text-align: right; }
.server-stat-num { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--text); }
.server-stat-label { font-size: 0.72rem; color: var(--text-3); }
.server-arrow { color: var(--text-3); }
.portal-empty {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  text-align: center; color: var(--text-3);
  box-shadow: var(--shadow-sm);
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #0e1116; padding: 24px;
}
.login-box {
  background: #161d2b; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 40px; width: 100%; max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.login-logo { display: flex; justify-content: center; margin-bottom: 32px; }
.login-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.login-box h1 { font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: 8px; }
.login-box p { color: rgba(255,255,255,0.5); font-size: 0.875rem; margin-bottom: 28px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form label { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.7); display: block; margin-bottom: 6px; }
.login-form input {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); color: white;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font-body); outline: none;
  transition: border-color 0.2s;
}
.login-form input:focus { border-color: #d32f2f; }
.login-form input::placeholder { color: rgba(255,255,255,0.3); }
.login-error {
  background: rgba(211,47,47,0.12); border: 1px solid rgba(211,47,47,0.3);
  color: #f87171; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; line-height: 1.5;
}

/* =============================================
   MODAL (Demo Request)
   ============================================= */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 16px; padding: 36px;
  width: 100%; max-width: 520px; position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1rem;
  cursor: pointer; color: var(--text-3); padding: 4px 8px; border-radius: 6px;
}
.modal-close:hover { background: var(--bg-2); color: var(--text); }
.modal-box h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.modal-sub { color: var(--text-2); font-size: 0.875rem; margin-bottom: 24px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-group .optional { color: var(--text-3); font-weight: 400; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-2); border: 1.5px solid var(--border);
  color: var(--text); padding: 10px 13px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font-body); outline: none; width: 100%;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 80px; }
.modal-success { text-align: center; padding: 20px 0; }
.modal-success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.modal-success h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.modal-success p { color: var(--text-2); }
.demo-trigger { cursor: pointer; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--text); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 56px 0 32px;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .nav-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; }
.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 240px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.5); text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* =============================================
   SCREENSHOT DISPLAY
   ============================================= */
.screenshot-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  margin: 20px 0; text-align: center; background: var(--bg-2);
}
.screenshot-wrap img { max-width: 100%; width: auto; height: auto; display: inline-block; }
.screenshot-cap {
  padding: 8px 14px; font-size: 0.72rem; color: var(--text-3);
  font-family: var(--font-mono); border-top: 1px solid var(--border);
  text-align: center; background: var(--bg-2);
}

/* =============================================
   FAQ PAGE
   ============================================= */
.faq-hero { padding: 120px 0 48px; text-align: center; }
.faq-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--text); margin-bottom: 14px; }
.faq-hero p { color: var(--text-2); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.faq-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 32px 0 40px; }
.faq-tab { padding: 7px 16px; border-radius: 100px; border: 1.5px solid var(--border-2); background: none; color: var(--text-2); font-size: 0.85rem; font-weight: 500; cursor: pointer; font-family: var(--font-body); transition: all 0.15s; }
.faq-tab:hover { color: var(--text); border-color: var(--text-3); }
.faq-tab.active { background: var(--red); border-color: var(--red); color: white; }
.faq-full { display: none; flex-direction: column; gap: 10px; margin-bottom: 80px; }
.faq-full.active { display: flex; }
.faq-section-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 16px 0 4px; }
.faq-item { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item:hover { border-color: var(--border-2); }
.faq-q { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.4; user-select: none; }
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--red); transition: transform 0.25s; margin-top: 2px; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; color: var(--text-2); font-size: 0.875rem; line-height: 1.75; border-top: 1px solid var(--border); padding-top: 14px; }
.faq-item.open .faq-a { display: block; }
.faq-screenshot { margin-top: 14px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); text-align: center; }
.faq-screenshot img { max-width: 100%; width: auto; height: auto; display: inline-block; }
.faq-screenshot-cap { padding: 7px 12px; font-size: .72rem; color: var(--text-3); font-family: var(--font-mono); border-top: 1px solid var(--border); text-align: center; }
.faq-cta { background: var(--bg-2); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; margin-bottom: 80px; }
.faq-cta h2 { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.faq-cta p { color: var(--text-2); margin-bottom: 24px; }

/* =============================================
   POLICY PAGES
   ============================================= */
.policy-hero { padding: 120px 0 40px; border-bottom: 1px solid var(--border); }
.policy-hero h1 { font-size: 2rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.policy-hero .meta { font-size: 0.82rem; color: var(--text-3); font-family: var(--font-mono); }
.policy-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0 80px; align-items: start; }
.policy-nav { position: sticky; top: 80px; }
.policy-nav-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.policy-nav a { display: block; padding: 6px 0 6px 12px; font-size: .82rem; color: var(--text-2); text-decoration: none; border-left: 2px solid transparent; transition: all .15s; }
.policy-nav a:hover { color: var(--text); border-left-color: var(--border-2); }
.policy-nav a.active { color: var(--red); border-left-color: var(--red); }
.policy-content h2 { font-size: 1.2rem; font-weight: 700; margin: 36px 0 12px; color: var(--text); }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--text-2); line-height: 1.75; margin-bottom: 14px; font-size: .9rem; }
.policy-content ul { color: var(--text-2); line-height: 1.75; font-size: .9rem; padding-left: 20px; margin-bottom: 14px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content strong { color: var(--text); font-weight: 600; }
.policy-content a { color: var(--blue); text-decoration: none; }
.policy-content a:hover { text-decoration: underline; }
.policy-highlight { background: var(--red-dim); border: 1px solid rgba(211,47,47,0.2); border-left: 3px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 16px 20px; margin: 20px 0; font-size: .875rem; color: var(--text-2); line-height: 1.6; }
.policy-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .85rem; }
.policy-table th { text-align: left; padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.policy-table td { padding: 10px 14px; border: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
.policy-contact-box { background: var(--bg-2); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 40px; }
.policy-contact-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .security-inner { grid-template-columns: 1fr; gap: 40px; }
  .security-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .channels-grid { grid-template-columns: 1fr; }
  .channels-bottom { grid-template-columns: 1fr; }
  .steps-flow { flex-direction: column; }
  .step-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-nav { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 100px 0 72px; }
  .hero-headline { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; text-align: center; }
  .hero-trust-items { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-trust-sep { display: none; }
  .section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .stats-inner { gap: 24px; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn-primary, .cta-actions .btn-ghost { width: 100%; max-width: 320px; }
}

/* =============================================
   CHANNEL PAGE SPECIFIC
   ============================================= */
.channel-hero { padding: 120px 0 64px; background: linear-gradient(160deg, #fff 60%, #fef2f2 100%); }
.channel-section { padding: 80px 0; }
.channel-section:nth-child(even) { background: var(--bg-2); }
.channel-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.channel-detail.reverse { direction: rtl; }
.channel-detail.reverse > * { direction: ltr; }
.channel-detail-text h2 { font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: -0.02em; }
.channel-detail-text p { color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
.channel-feature-list { list-style: none; padding: 0; margin: 16px 0; }
.channel-feature-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 0.875rem; color: var(--text-2); }
.channel-feature-list li::before { content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex-shrink: 0; margin-top: 8px; }
.channel-tag { display: inline-block; padding: 3px 10px; border-radius: 100px; background: var(--red-dim); border: 1px solid rgba(211,47,47,0.2); font-size: 0.72rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }

@media (max-width: 768px) {
  .channel-detail { grid-template-columns: 1fr; }
  .channel-detail.reverse { direction: ltr; }
}

/* btn-lg inside nav */
.nav-cta .btn-primary { padding: 8px 18px; font-size: 0.85rem; }

/* =============================================
   LOGIN PAGE — Light theme
   ============================================= */
.login-body {
  background: var(--bg-2);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-bg { display: none; }
.login-back-btn {
  position: fixed; top: 20px; left: 24px;
  display: flex; align-items: center; gap: 6px;
  color: var(--text-2); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; z-index: 10;
  transition: color 0.15s;
}
.login-back-btn:hover { color: var(--text); }
.login-back-btn svg { width: 16px; height: 16px; }
.login-container {
  position: relative; z-index: 2;
  width: 100%; max-width: 400px;
}
.login-logo {
  display: flex; justify-content: center; margin-bottom: 28px;
}
.login-logo-img { height: 44px; width: auto; }
.login-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px; padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.login-card h1 {
  font-size: 1.4rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.login-sub {
  color: var(--text-2); font-size: 0.875rem; margin-bottom: 28px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .form-group label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-2); display: block; margin-bottom: 6px;
}
.login-form input {
  width: 100%; background: var(--bg-2);
  border: 1.5px solid var(--border); color: var(--text);
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.2s; box-sizing: border-box;
}
.login-form input:focus { border-color: var(--red); background: white; }
.login-form input::placeholder { color: var(--text-3); }
.login-error {
  background: var(--red-dim); border: 1px solid rgba(211,47,47,0.25);
  color: #b91c1c; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem; line-height: 1.5; margin-bottom: 16px;
}
.login-footer-note {
  text-align: center; margin-top: 20px;
  font-size: 0.78rem; color: var(--text-3);
}
.hero-glow { display: none; }
