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

:root {
    /* Brand palette — aligned with mobile app (theme.ts) */
    --brand: #F2B401;              /* primary yellow (mobile header) */
    --brand-dark: #B87F00;         /* deep gold — primary accent for text & links */
    --brand-darker: #8A5F00;       /* extra emphasis */
    --brand-light: #FFD55A;        /* highlight / hover */
    --brand-50:  #FFF6DC;          /* softest tint */
    --brand-100: #FFE9A8;
    --brand-200: #FFD97A;
    --accent: #B87F00;             /* gold for links, pairs with yellow on-surface */
    --accent-light: #F2B401;
    --dark: #0E0E13;               /* textStrong on mobile */
    --dark-700: #1A1A1F;           /* body text */
    --dark-600: #2C2C36;
    --midnight: #10112B;           /* deep navy used for hero gradient */
    --midnight-2: #1E1B3A;
    --gray-500: #5B5B66;           /* textMuted */
    --gray-400: #8A8A96;           /* textSubtle */
    --gray-300: #CFCDBF;           /* borderStrong */
    --gray-200: #E4E2DA;           /* border */
    --gray-100: #EEECE3;
    --gray-50:  #F7F6F2;           /* warm off-white background */
    --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(14, 14, 19, .92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(242,180,1,.12);
}
.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: var(--dark) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    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 6px 18px rgba(242,180,1,.35);
}
.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: radial-gradient(ellipse at top, var(--midnight-2) 0%, var(--midnight) 55%, var(--dark) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(242,180,1,.18) 0%, transparent 70%);
    top: -220px;
    right: -220px;
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(184,127,0,.18) 0%, transparent 70%);
    bottom: -120px;
    left: -120px;
    border-radius: 50%;
}
/* Subtle star-field on hero */
.hero-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.55) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 52% 24%, rgba(255,213,90,.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 72% 70%, rgba(255,255,255,.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 84% 30%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 38% 82%, rgba(255,246,220,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 66% 8%, rgba(255,255,255,.5) 50%, transparent 51%);
    pointer-events: none;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242,180,1,.12);
    border: 1px solid rgba(242,180,1,.3);
    color: var(--brand-100);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.hero-badge i {
    font-size: 12px;
    color: var(--brand);
}
.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) 0%, var(--brand-light) 55%, #FFE9A8 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: var(--dark);
    border: none;
}
.btn-hero-primary:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(242,180,1,.35);
    color: var(--dark);
}
.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-cream {
    background: var(--gray-50);
}

.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-dark);
    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(184,127,0,.12);
    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(184,127,0,.12);
    transform: translateY(-4px);
}
.price-card.featured {
    border-color: var(--brand);
    box-shadow: 0 8px 32px rgba(242,180,1,.18);
}
.price-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: var(--dark);
    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-dark);
    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: var(--dark);
}
.btn-price-primary:hover {
    background: var(--brand-light);
    color: var(--dark);
    box-shadow: 0 6px 18px rgba(242,180,1,.35);
}
.btn-price-outline {
    background: transparent;
    color: var(--brand-dark);
    border: 2px solid var(--brand-200);
}
.btn-price-outline:hover {
    background: var(--brand-50);
    border-color: var(--brand);
    color: var(--brand-dark);
}

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

.cta-banner {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-2) 100%);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(242,180,1,.22) 0%, transparent 70%);
    top: -120px;
    right: -60px;
    border-radius: 50%;
}
.cta-banner::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(184,127,0,.18) 0%, transparent 70%);
    bottom: -80px;
    left: -40px;
    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(--midnight) 0%, var(--midnight-2) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(242,180,1,.15) 0%, transparent 70%);
    top: -220px;
    right: -120px;
    border-radius: 50%;
}
.page-hero .section-label {
    color: var(--brand-100);
}
.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-dark);
    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(242,180,1,.18);
    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; }
}
