/* ═══════════════════════════════════════════════════════════════
   WhiteStar Enterprise Messenger — Landing Page
   Design system matching whitestarlabs.com
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:          #050508;
  --bg-surface:  #0a0a12;
  --bg-elevated: #10101c;
  --bg-card:     #12121e;
  --accent:      #4f6fff;
  --accent-glow: rgba(79, 111, 255, 0.15);
  --gold:        #e8a84c;
  --gold-glow:   rgba(232, 168, 76, 0.15);
  --text:        #eeeef2;
  --text-sub:    #8a8aa0;
  --text-muted:  #555568;
  --border:      #1a1a2e;
  --radius:      8px;
  --radius-lg:   16px;
  --radius-full: 9999px;
  --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:       1200px;
  --nav-h:       72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.navbar__logo { border-radius: 8px; }
.navbar__links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-sub); transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.navbar__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.navbar__toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; border-radius: var(--radius-full);
  border: none; cursor: pointer; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn--sm { padding: 8px 20px; font-size: 0.85rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #3d5de6; transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn--gold { background: var(--gold); color: #050508; font-weight: 700; }
.btn--gold:hover { background: #d49a40; transform: translateY(-1px); box-shadow: 0 8px 24px var(--gold-glow); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Section Utilities ─────────────────────────────────────── */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; }
.section-header p { color: var(--text-sub); font-size: 1.1rem; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px; }
.section-label--gold { color: var(--gold); }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { position: relative; padding: 160px 0 100px; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.hero__glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__badge { display: inline-block; padding: 6px 16px; background: var(--accent-glow); border: 1px solid rgba(79, 111, 255, 0.2); border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 24px; letter-spacing: 0.02em; }
.hero__text h1 { font-size: 3.4rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero__sub { font-size: 1.15rem; color: var(--text-sub); line-height: 1.7; margin-bottom: 36px; max-width: 520px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero__trust { font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Phone Mockup ──────────────────────────────────────────── */
.phone-mockup { width: 300px; margin: 0 auto; background: var(--bg-card); border-radius: 32px; border: 2px solid var(--border); padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px var(--accent-glow); animation: phoneFloat 5s ease-in-out infinite; }
.phone-mockup__screen { background: var(--bg-surface); border-radius: 22px; overflow: hidden; min-height: 420px; display: flex; flex-direction: column; }
.mock-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mock-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--gold)); }
.mock-name { font-size: 0.85rem; font-weight: 700; }
.mock-status { font-size: 0.7rem; color: var(--accent); }
.mock-lock { margin-left: auto; font-size: 0.8rem; }
.mock-messages { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.75rem; max-width: 85%; line-height: 1.4; animation: mockFadeIn 0.6s ease both; }
.mock-bubble--in { background: var(--bg-elevated); align-self: flex-start; border-bottom-left-radius: 4px; }
.mock-bubble--out { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.mock-bubble:nth-child(1) { animation-delay: 0.2s; }
.mock-bubble:nth-child(2) { animation-delay: 0.5s; }
.mock-bubble:nth-child(3) { animation-delay: 0.8s; }
.mock-bubble:nth-child(4) { animation-delay: 1.1s; }
.mock-input { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); }
.mock-input-field { flex: 1; background: var(--bg-elevated); padding: 8px 14px; border-radius: var(--radius-full); font-size: 0.75rem; color: var(--text-muted); }
.mock-send-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes mockFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Features ──────────────────────────────────────────────── */
.features { padding: 120px 0; }
.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-lg); padding: 32px; transition: all 0.3s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(79, 111, 255, 0.3); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.feature-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-glow); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { color: var(--text-sub); font-size: 0.9rem; line-height: 1.6; }

/* ── Platforms ──────────────────────────────────────────────── */
.platforms { padding: 120px 0; background: var(--bg-surface); }
.platforms__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.platform-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
  transition: all 0.3s; display: flex; flex-direction: column; align-items: center;
}
.platform-card:hover { transform: translateY(-4px); border-color: rgba(79, 111, 255, 0.3); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.platform-card--highlight { border-color: rgba(79, 111, 255, 0.3); background: linear-gradient(180deg, rgba(79, 111, 255, 0.06) 0%, var(--bg-card) 100%); }
.platform-card__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.platform-card--highlight .platform-card__icon { background: rgba(79, 111, 255, 0.2); }
.platform-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.platform-card p { color: var(--text-sub); font-size: 0.85rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.platform-card__tag {
  display: inline-block; padding: 4px 12px; font-size: 0.7rem; font-weight: 600;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-full); color: var(--text-muted);
  letter-spacing: 0.03em; margin-bottom: 12px;
}
.platform-card__cta { margin-top: 8px; }
.platforms__cta {
  text-align: center; margin-top: 48px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.platforms__cta p { color: var(--text-sub); font-size: 0.95rem; margin-bottom: 20px; }

/* ── Security ──────────────────────────────────────────────── */
.security { padding: 120px 0; background: var(--bg-surface); }
.security__inner { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.security__text h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 20px; }
.security__text > p { color: var(--text-sub); font-size: 1.05rem; margin-bottom: 36px; line-height: 1.7; }
.security__list { display: flex; flex-direction: column; gap: 20px; }
.security__list li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.95rem; }
.security__list li svg { flex-shrink: 0; margin-top: 3px; }
.security__list li strong { display: block; margin-bottom: 2px; }
.security__list li div { color: var(--text-sub); }
.security__list li div p { margin: 0; font-size: 0.85rem; }
.shield-graphic { width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, var(--accent-glow), transparent 70%); border-radius: 50%; animation: shieldPulse 3s ease-in-out infinite; }
@keyframes shieldPulse { 0%, 100% { box-shadow: 0 0 40px var(--accent-glow); } 50% { box-shadow: 0 0 80px var(--accent-glow), 0 0 120px rgba(79, 111, 255, 0.05); } }

/* ── Enterprise ────────────────────────────────────────────── */
.enterprise { padding: 120px 0; }
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; transition: all 0.3s; position: relative; }
.benefit-card:hover { transform: translateY(-4px); border-color: rgba(79, 111, 255, 0.3); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.benefit-card__number { font-size: 3rem; font-weight: 800; color: var(--accent); opacity: 0.15; line-height: 1; margin-bottom: 16px; letter-spacing: -0.04em; }
.benefit-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.benefit-card p { color: var(--text-sub); font-size: 0.9rem; line-height: 1.7; }

/* ── Government ────────────────────────────────────────────── */
.government { padding: 120px 0; background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg) 100%); }
.government__inner { display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start; }
.government__text h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 20px; }
.government__text > p { color: var(--text-sub); font-size: 1.05rem; margin-bottom: 40px; line-height: 1.7; }
.gov-features { display: flex; flex-direction: column; gap: 28px; }
.gov-feature { display: flex; gap: 16px; align-items: flex-start; }
.gov-feature__icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--gold-glow); color: var(--gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.gov-feature strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.gov-feature p { color: var(--text-sub); font-size: 0.85rem; margin: 0; line-height: 1.5; }
.gov-badge { background: var(--bg-card); border: 1px solid rgba(232, 168, 76, 0.2); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; position: sticky; top: 100px; }
.gov-badge svg { margin: 0 auto 20px; }
.gov-badge__text strong { display: block; font-size: 1.1rem; margin-bottom: 8px; color: var(--gold); }
.gov-badge__text span { font-size: 0.85rem; color: var(--text-sub); line-height: 1.5; }

/* ── Contact ───────────────────────────────────────────────── */
.contact { padding: 120px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__info h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 20px; }
.contact__info > p { color: var(--text-sub); font-size: 1.05rem; margin-bottom: 36px; line-height: 1.7; }
.contact__points { display: flex; flex-direction: column; gap: 16px; }
.contact-point { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.contact-point svg { flex-shrink: 0; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.01em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.95rem; transition: border-color 0.2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group select { appearance: none; cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 16px; text-align: center; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border); background: var(--bg-surface); }
.footer__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { border-radius: 8px; }
.footer__brand strong { display: block; font-size: 1rem; }
.footer__brand span { font-size: 0.8rem; color: var(--text-sub); }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-size: 0.9rem; color: var(--text-sub); transition: color 0.2s; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__trust { text-align: center; }
  .hero__visual { display: none; }
  .security__inner { grid-template-columns: 1fr; }
  .security__visual { display: none; }
  .government__inner { grid-template-columns: 1fr; }
  .government__badge { display: none; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar__links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: rgba(5, 5, 8, 0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 24px; gap: 20px; border-bottom: 1px solid var(--border); }
  .navbar__links.open { display: flex; }
  .navbar__toggle { display: flex; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero__text h1 { font-size: 2.2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .features__grid { grid-template-columns: 1fr; }
  .platforms__grid { grid-template-columns: 1fr 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
  .security__text h2, .government__text h2, .contact__info h2 { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; gap: 24px; text-align: center; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 500px) {
  .platforms__grid { grid-template-columns: 1fr; }
}
