/* ================================================
   Excelsior The Company — Global Styles
   Cosmic palette: #18112e / #1e2a4a / #3d1a5c / #7B61FF
   ================================================ */

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

:root {
  --base:    #100c1f;
  --mid:     #18112e;
  --dark2:   #1e2a4a;
  --purple:  #3d1a5c;
  --accent:  #7B61FF;
  --accent2: #E879F9;
  --white:   #ffffff;
  --muted:   rgba(255,255,255,0.55);
  --faint:   rgba(255,255,255,0.08);
  --border:  rgba(255,255,255,0.10);
  --gold:    #FFD93D;
  --radius:  16px;
  --radius-sm: 10px;
  --radius-xl: 32px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--base);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ─────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p  { color: var(--muted); line-height: 1.75; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Background gradient ────────────────────── */
.bg-cosmic {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(123,97,255,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(232,121,249,0.15) 0%, transparent 55%),
    linear-gradient(135deg, var(--dark2) 0%, var(--mid) 50%, var(--purple) 100%);
}

/* ── Navbar ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(16, 12, 31, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--white);
  text-decoration: none;
}

.nav-logo .dot {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); text-decoration: none; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white) !important;
  padding: 8px 20px; border-radius: 8px; font-size: 0.85rem !important;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none !important; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; margin: 5px 0;
  transition: 0.3s;
}

/* ── Hero ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 64px;
  position: relative; overflow: hidden;
}

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--faint); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.05em; text-transform: uppercase;
}

.hero-title { margin-bottom: 20px; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc { margin-bottom: 36px; font-size: 1.1rem; max-width: 480px; }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none; text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white);
  box-shadow: 0 8px 32px rgba(123,97,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(123,97,255,0.5);
  text-decoration: none; color: var(--white);
}

.btn-secondary {
  background: var(--faint); border: 1px solid var(--border);
  color: var(--white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12); transform: translateY(-2px);
  text-decoration: none; color: var(--white);
}

.badge-row {
  margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--faint); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 10px;
  font-size: 0.82rem; color: var(--muted); font-weight: 500;
}
.badge svg, .badge .icon { font-size: 1rem; }

/* ── Phone mockup ───────────────────────────── */
.phone-wrap {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}

.phone {
  width: 240px; height: 490px;
  background: linear-gradient(160deg, rgba(123,97,255,0.25), rgba(232,121,249,0.15));
  border: 1px solid var(--border);
  border-radius: 40px;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.phone-screen {
  position: absolute; inset: 12px;
  background: linear-gradient(160deg, #1e1040, #2a1060);
  border-radius: 30px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  padding: 24px;
}

.phone-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(123,97,255,0.5);
}

.phone-app-name { font-size: 1.1rem; font-weight: 700; }
.phone-tagline  { font-size: 0.72rem; color: var(--muted); text-align: center; }

.phone-ui-bars { width: 100%; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ui-bar {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
}
.ui-bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.ui-bar:nth-child(1)::after { width: 75%; }
.ui-bar:nth-child(2)::after { width: 55%; }
.ui-bar:nth-child(3)::after { width: 85%; }

.phone-coming-soon {
  margin-top: 12px; padding: 8px 16px; border-radius: 8px;
  background: rgba(123,97,255,0.25); border: 1px solid rgba(123,97,255,0.4);
  font-size: 0.72rem; font-weight: 600; color: var(--accent); letter-spacing: 0.05em;
}

.phone-glow {
  position: absolute; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(123,97,255,0.3), transparent 70%);
  pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}

/* ── Glass Card ─────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Product section ────────────────────────── */
.product-header { text-align: center; margin-bottom: 64px; }
.product-header p { max-width: 540px; margin: 16px auto 0; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123,97,255,0.4);
}

.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(123,97,255,0.3), rgba(232,121,249,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}

.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p  { font-size: 0.88rem; }

/* ── App store section ──────────────────────── */
.store-section { text-align: center; }
.store-section h2 { margin-bottom: 12px; }
.store-section > p { max-width: 440px; margin: 0 auto 40px; }

.store-badges {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}

.store-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  padding: 14px 24px; border-radius: 14px; cursor: pointer;
  transition: all 0.2s; min-width: 180px;
  position: relative; overflow: hidden;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(123,97,255,0.4); }

.store-badge-icon { font-size: 2rem; flex-shrink: 0; }

.store-badge-text { text-align: left; }
.store-badge-text small { display: block; font-size: 0.7rem; color: var(--muted); margin-bottom: 2px; }
.store-badge-text strong { font-size: 1rem; font-weight: 700; }

.soon-ribbon {
  position: absolute; top: 6px; right: -14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--white); font-size: 0.6rem; font-weight: 700;
  padding: 2px 18px; transform: rotate(30deg);
  letter-spacing: 0.08em;
}

.store-note { font-size: 0.82rem; color: var(--muted); }

/* ── About strip ────────────────────────────── */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-strip .label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.about-strip h2 { margin-bottom: 20px; }
.about-strip p  { margin-bottom: 16px; }

.stat-row { display: flex; gap: 32px; margin-top: 32px; }
.stat-item h3 { font-size: 2rem; font-weight: 800; }
.stat-item h3 .accent { color: var(--accent); }
.stat-item p  { font-size: 0.82rem; margin-top: 2px; }

.about-visual {
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(123,97,255,0.2), rgba(61,26,92,0.4));
  border: 1px solid var(--border);
  padding: 48px 36px; text-align: center;
}
.about-visual .big-e {
  font-size: 6rem; font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.about-visual p { margin-top: 12px; font-size: 0.9rem; }

/* ── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }

.footer-brand p { font-size: 0.88rem; margin-top: 12px; max-width: 280px; }

.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; color: var(--muted); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.88rem; color: var(--muted); }
.footer-col ul a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted);
}

/* ── Page header (inner pages) ─────────────── */
.page-hero {
  padding: 120px 0 64px;
  text-align: center;
}
.page-hero p { max-width: 560px; margin: 16px auto 0; font-size: 1.05rem; }

/* ── About page specific ────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

.value-list { display: flex; flex-direction: column; gap: 20px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-dot {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(123,97,255,0.3), rgba(232,121,249,0.15));
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.value-item h3 { font-size: 1rem; margin-bottom: 4px; }
.value-item p  { font-size: 0.88rem; }

/* ── Terms page specific ────────────────────── */
.terms-body { max-width: 780px; margin: 0 auto; }
.terms-body h2 { font-size: 1.3rem; margin: 40px 0 12px; color: var(--white); }
.terms-body h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.terms-body p, .terms-body li { font-size: 0.93rem; color: var(--muted); margin-bottom: 10px; }
.terms-body ul { padding-left: 20px; margin-bottom: 16px; }
.terms-body li { margin-bottom: 6px; }
.terms-last-updated { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin-bottom: 32px; }

/* ── Divider ────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid        { grid-template-columns: 1fr; text-align: center; }
  .phone-wrap       { display: none; }
  .hero-desc        { max-width: 100%; }
  .btn-group        { justify-content: center; }
  .badge-row        { justify-content: center; }
  .features-grid    { grid-template-columns: 1fr 1fr; }
  .about-strip      { grid-template-columns: 1fr; }
  .about-visual     { display: none; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .footer-brand     { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .nav-links          { display: none; }
  .nav-links.open     { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(16,12,31,0.95); padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .hamburger          { display: block; }
  .features-grid      { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; }
  .footer-bottom      { flex-direction: column; gap: 8px; text-align: center; }
  .stat-row           { flex-wrap: wrap; gap: 20px; }
}
