/* ══════════════════════════════════════════════════════
   MASAR AI — Marketing site stylesheet
   Vibe: Quantum Horizon dark theme, orange accent, glassmorphism
   ══════════════════════════════════════════════════════ */

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

:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #0d1526;
    --bg-tertiary: #111b30;
    --bg-card: rgba(17, 27, 48, 0.7);
    --bg-card-hover: rgba(22, 35, 60, 0.9);
    --bg-glass: rgba(10, 15, 26, 0.82);

    --text-primary: #eaf0f7;
    --text-secondary: #8a9bb5;
    --text-muted: #5a6d85;

    --accent: #e8703c;
    --accent-light: #ff8a4c;
    --accent-dark: #c75a2a;
    --accent-glow: rgba(232, 112, 60, 0.15);
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;

    --gradient-accent: linear-gradient(135deg, #e8703c, #f59e0b);
    --gradient-hero: linear-gradient(160deg, #0a0f1a 0%, #111b30 42%, #0d1526 100%);
    --gradient-card: linear-gradient(135deg, rgba(232,112,60,0.06), rgba(245,158,11,0.03));

    --border-subtle: rgba(232, 112, 60, 0.14);
    --border-light: rgba(138, 155, 181, 0.1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-md: 0 8px 30px rgba(0,0,0,0.25);
    --shadow-lg: 0 24px 60px rgba(0,0,0,0.4);

    --max-width: 1240px;
    --nav-height: 76px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
section { position: relative; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── shared bits ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
    background: var(--accent-glow);
}
.section-label::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.section-title {
    font-size: clamp(32px, 4.6vw, 50px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin-bottom: 18px;
}
.section-title em { font-style: normal; color: var(--accent); }

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.75;
}

.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 56px; }
.section-head .section-subtitle { margin: 0 auto; }

/* ─── buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}
.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 22px rgba(232,112,60,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(232,112,60,0.4); }
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(234,240,247,0.18);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 38px; font-size: 16px; }

/* ─── nav ─── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    display: flex;
    align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav-logo .mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--gradient-accent);
    display: grid; place-items: center;
    color: #fff; font-weight: 900; font-size: 15px;
}
.nav-logo .accent { color: var(--accent); }
.nav-logo img { height: 26px; width: auto; max-height: 26px; display: block; }
.footer-brand .nav-logo img { height: 22px; max-height: 22px; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14.5px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-link:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); }

/* ─── hero ─── */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 70px) 0 90px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(700px 360px at 78% 18%, var(--accent-glow), transparent 70%),
        radial-gradient(560px 320px at 12% 80%, rgba(59,130,246,0.08), transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 {
    font-size: clamp(40px, 5.6vw, 66px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 540px; margin-bottom: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-proof { display: flex; align-items: center; gap: 26px; }
.hero-proof-item { display: flex; flex-direction: column; }
.hero-proof-num { font-size: 26px; font-weight: 800; color: var(--text-primary); font-family: var(--mono); }
.hero-proof-label { font-size: 12.5px; color: var(--text-muted); }
.hero-proof-sep { width: 1px; height: 34px; background: var(--border-light); }

/* hero graphic card */
.hero-visual {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

/* ─── generic section spacing ─── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-secondary); }

/* ─── feature grid ─── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    transition: all 0.28s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-subtle);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 50px; height: 50px;
    border-radius: 13px;
    background: var(--accent-glow);
    border: 1px solid var(--border-subtle);
    display: grid; place-items: center;
    margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.feature-card p { font-size: 14.5px; color: var(--text-secondary); }

/* ─── how it works / ecosystem ─── */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.eco-step {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    position: relative;
}
.eco-step .num {
    font-family: var(--mono);
    font-size: 13px; font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.eco-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.eco-step p { font-size: 14px; color: var(--text-secondary); }

/* ─── split: shared vs private ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 14px; }
.split-card {
    border-radius: var(--radius-md);
    padding: 34px 30px;
    border: 1px solid var(--border-light);
}
.split-card.shared { background: var(--gradient-card); border-color: var(--border-subtle); }
.split-card.private { background: var(--bg-card); }
.split-card .tag {
    font-family: var(--mono); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent); margin-bottom: 12px; display: block;
}
.split-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.split-card p { font-size: 15px; color: var(--text-secondary); margin-bottom: 16px; }
.split-card li {
    font-size: 14px; color: var(--text-secondary);
    padding: 7px 0 7px 24px; position: relative;
}
.split-card li::before {
    content: ''; position: absolute; left: 0; top: 14px;
    width: 13px; height: 13px; border-radius: 4px;
    background: var(--accent-glow); border: 1px solid var(--accent);
}

/* ─── stats band ─── */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-item { text-align: center; padding: 28px 18px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.stat-number { font-family: var(--mono); font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-label { font-size: 13.5px; color: var(--text-secondary); margin-top: 6px; }

/* ─── CTA ─── */
.cta {
    text-align: center;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 70px 40px;
}
.cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta p { font-size: 17px; color: var(--text-secondary); margin-bottom: 30px; }
.cta .hero-buttons { justify-content: center; margin: 0; }

/* ─── footer ─── */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-muted);
}

/* ─── reveal animation ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── responsive ─── */
@media (max-width: 900px) {
    .container { padding: 0 22px; }
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .feature-grid, .eco-grid { grid-template-columns: 1fr; }
    .split, .footer-grid { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { display: none; }
    .nav-toggle { display: block; }
    .nav-menu.open {
        display: flex; flex-direction: column;
        position: absolute; top: var(--nav-height); left: 0; right: 0;
        background: var(--bg-glass); backdrop-filter: blur(18px);
        padding: 22px 30px; gap: 18px;
        border-bottom: 1px solid var(--border-light);
    }
    .section { padding: 70px 0; }
    .footer-bottom { flex-direction: column; gap: 10px; }
}
