/* ═══════════════════════════════════════════════
   ASTROYAMI PUBLIC SITE
   ═══════════════════════════════════════════════ */

:root {
    --brand: #7c3aed;
    --brand-dark: #5b21b6;
    --brand-light: #8b5cf6;
    --brand-50: #f5f3ff;
    --brand-100: #ede9fe;
    --brand-200: #ddd6fe;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #0f172a;
    --dark-700: #1e293b;
    --dark-600: #334155;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    color: var(--dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

/* ── NAVIGATION ─────────────────────────────── */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.nav-logo {
    height: 36px;
    width: auto;
}
.nav-brand-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-links .nav-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all .2s;
}
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    margin-left: 8px;
    transition: all .2s;
}
.nav-cta:hover {
    background: var(--brand-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,.3);
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ── HERO ──────────────────────────────────── */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1147 50%, var(--dark-700) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.25);
    color: var(--brand-200);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.hero-badge i {
    font-size: 12px;
    color: var(--accent);
}
.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -1.5px;
}
.hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all .2s;
}
.btn-hero-primary {
    background: var(--brand);
    color: #fff;
    border: none;
}
.btn-hero-primary:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,.3);
    color: #fff;
}
.btn-hero-secondary {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.hero-stat .stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
}
.hero-stat .stat-label {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ── SECTIONS ──────────────────────────────── */

.section {
    padding: 100px 0;
}
.section-dark {
    background: var(--dark);
    color: #fff;
}
.section-light {
    background: var(--gray-50);
}
.section-brand {
    background: linear-gradient(135deg, var(--brand-50) 0%, #fff 100%);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -.8px;
    margin: 0 0 16px;
    line-height: 1.2;
}
.section-header p {
    font-size: 17px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.7;
}

/* ── FEATURE CARDS ─────────────────────────── */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all .3s;
}
.feature-card:hover {
    border-color: var(--brand-200);
    box-shadow: 0 12px 32px rgba(124,58,237,.08);
    transform: translateY(-4px);
}
.feature-card .icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}
.feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -.3px;
}
.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.7;
}

/* ── PRICING CARDS ─────────────────────────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.price-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all .3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.price-card:hover {
    border-color: var(--brand-200);
    box-shadow: 0 16px 40px rgba(124,58,237,.1);
    transform: translateY(-4px);
}
.price-card.featured {
    border-color: var(--brand);
    box-shadow: 0 8px 32px rgba(124,58,237,.12);
}
.price-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 4px 14px;
    border-radius: 999px;
}
.price-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.price-card-head img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    object-fit: cover;
}
.price-card-head .icon-fallback {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.price-card-head h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.3px;
}
.price-card-head .subtitle {
    font-size: 13px;
    color: var(--gray-500);
    margin: 2px 0 0;
}
.price-card .price-amount {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
}
.price-card .price-period {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}
.price-card ul li {
    font-size: 14px;
    color: var(--dark-600);
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.price-card ul li i {
    color: var(--brand);
    font-size: 12px;
    margin-top: 5px;
    flex-shrink: 0;
}
.btn-price {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.btn-price-primary {
    background: var(--brand);
    color: #fff;
}
.btn-price-primary:hover {
    background: var(--brand-light);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124,58,237,.25);
}
.btn-price-outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand-200);
}
.btn-price-outline:hover {
    background: var(--brand-50);
    border-color: var(--brand);
    color: var(--brand);
}

/* ── CTA BANNER ────────────────────────────── */

.cta-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1147 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
    top: -100px;
    right: -50px;
    border-radius: 50%;
}
.cta-banner h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}
.cta-banner p {
    font-size: 16px;
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

/* ── INNER PAGE HERO ───────────────────────── */

.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1147 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}
.page-hero .section-label {
    color: var(--brand-200);
}
.page-hero h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -1px;
}
.page-hero p {
    font-size: 17px;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── CONTACT ──────────────────────────────── */

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.contact-card .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--brand-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 18px;
    flex-shrink: 0;
}
.contact-card h6 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}
.contact-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.contact-form .form-control {
    height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--font);
    transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
    outline: none;
}
.contact-form textarea.form-control {
    height: 120px;
    resize: vertical;
}

/* ── DOWNLOAD CARDS ────────────────────────── */

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.download-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all .3s;
}
.download-card:hover {
    border-color: var(--brand-200);
    box-shadow: 0 12px 32px rgba(124,58,237,.08);
    transform: translateY(-4px);
}
.download-card .dl-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--brand-50);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--brand);
    margin-bottom: 20px;
}
.download-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}
.download-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0 0 20px;
    line-height: 1.6;
}

/* ── AUTH (login/register) ─────────────────── */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    background: var(--gray-50);
}
.auth-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.auth-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.5px;
}
.auth-card .auth-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0 0 28px;
}
.auth-card .form-control {
    height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--font);
    margin-bottom: 16px;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
    outline: none;
}
.auth-card .btn-primary {
    width: 100%;
    height: 48px;
    background: var(--brand);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all .2s;
}
.auth-card .btn-primary:hover {
    background: var(--brand-light);
}
.auth-card .auth-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 16px;
}
.auth-card .auth-footer a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

/* ── POLICY PAGES ──────────────────────────── */

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}
.policy-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin: 40px 0 16px;
    letter-spacing: -.3px;
}
.policy-content h5 {
    font-size: 17px;
    font-weight: 700;
    margin: 28px 0 8px;
}
.policy-content p {
    font-size: 15px;
    color: var(--dark-600);
    line-height: 1.8;
    margin: 0 0 16px;
}

/* ── BUTTONS (generic) ─────────────────────── */

.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: none;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}
.btn-brand:hover {
    background: var(--brand-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,.25);
}

.btn-outline-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 2px solid var(--brand-200);
    text-decoration: none;
    transition: all .2s;
}
.btn-outline-brand:hover {
    background: var(--brand-50);
    border-color: var(--brand);
    color: var(--brand);
}

/* ── FOOTER ────────────────────────────────── */

.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}
.footer-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 14px;
}
.footer-brand span {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}
.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 20px;
    color: var(--gray-500);
}
.footer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.footer-social a {
    width: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all .2s;
    font-size: 15px;
    text-align: center;
}
.footer-social a:hover {
    background: var(--brand);
    color: #fff;
}
.footer-col h6 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #fff;
    margin: 0 0 16px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--gray-500);
    text-decoration: none;
    padding: 4px 0;
    transition: color .2s;
}
.footer-col .footer-social a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 38px;
    height: 38px;
    font-size: 15px;
}
.footer-col a:hover {
    color: #fff;
}
.footer-col p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0 0 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.footer-col p i {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 12px;
}
.footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

/* ── RESPONSIVE ────────────────────────────── */

@media (max-width: 991px) {
    .features-grid,
    .pricing-grid,
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .hero-stats { gap: 32px; }
    .cta-banner { padding: 48px 32px; }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-cta { margin: 8px 0 0; }

    .features-grid,
    .pricing-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero { min-height: auto; padding: 100px 24px 60px; }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    .section { padding: 64px 0; }
    .page-hero { padding: 100px 0 48px; }
}
