/* ============================================
   FROSTIA — Design System
   Arctic Luxury aesthetic
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --frost-50: #F0F9FF;
    --frost-100: #E0F2FE;
    --frost-200: #BAE6FD;
    --frost-300: #7DD3FC;
    --frost-400: #38BDF8;
    --frost-500: #0EA5E9;
    --frost-600: #0284C7;
    --frost-700: #0369A1;
    --frost-800: #075985;
    --frost-900: #0C4A6E;

    --navy-900: #0C1220;
    --navy-800: #131B2E;
    --navy-700: #1E293B;

    --text: #1E293B;
    --text-light: #64748B;
    --text-muted: #94A3B8;
    --bg: #FFFFFF;
    --bg-alt: #F8FBFF;
    --bg-frost: #F0F9FF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --success: #10B981;
    --warning: #F59E0B;
    --accent: #6366F1;

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-py: clamp(3rem, 6vw, 5rem);
    --container: 1200px;
    --container-narrow: 800px;
    --gap: clamp(1rem, 2vw, 1.5rem);

    /* Effects */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 3px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.04);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.07), 0 1px 3px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 12px 40px rgb(0 0 0 / 0.08), 0 4px 12px rgb(0 0 0 / 0.04);
    --shadow-frost: 0 8px 32px rgb(14 165 233 / 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 12px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul { list-style: none; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container-narrow {
    max-width: var(--container-narrow);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--navy-900);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--frost-600);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.6;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Section --- */
.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-alt);
}

.section-frost {
    background: linear-gradient(180deg, var(--bg-frost) 0%, var(--bg) 100%);
}

.section-dark {
    background: var(--navy-900);
    color: #E2E8F0;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #FFFFFF;
}

.section-dark .section-label {
    color: var(--frost-400);
}

.section-dark .section-subtitle {
    color: #94A3B8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--frost-500) 0%, var(--frost-600) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgb(14 165 233 / 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgb(14 165 233 / 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    background: var(--frost-500);
    color: #FFFFFF;
}

.btn-sm:hover {
    background: var(--frost-600);
}

.btn-outline {
    background: transparent;
    color: var(--frost-700);
    border: 2px solid var(--frost-200);
}

.btn-outline:hover {
    background: var(--frost-50);
    border-color: var(--frost-400);
}

.btn .btn-arrow {
    transition: transform var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* --- Cards --- */
.card {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2rem);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--frost-200);
}

.card-frost {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--frost-50);
    color: var(--frost-600);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.card-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Grid --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    background: var(--frost-50);
    color: var(--frost-700);
    border: 1px solid var(--frost-200);
}

.badge-success {
    background: #ECFDF5;
    color: #065F46;
    border-color: #A7F3D0;
}

/* --- Stars --- */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #FBBF24;
    font-size: 1rem;
}

/* --- Price --- */
.price {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 2rem;
    color: var(--navy-900);
}

.price-old {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.price-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
    padding: 1rem 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.65rem 0;
    box-shadow: 0 1px 8px rgb(0 0 0 / 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--navy-900);
    z-index: 10;
}

.logo-icon {
    color: var(--frost-500);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
}

.header-nav a:hover {
    color: var(--frost-600);
}

.header-cta {
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: all var(--transition);
}

@media (max-width: 768px) {
    .header-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* --- Footer --- */
.site-footer {
    background: var(--navy-900);
    color: #CBD5E1;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.footer-brand .logo-icon {
    color: var(--frost-400);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #94A3B8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: #94A3B8;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--frost-400);
}

.footer-contact p {
    font-size: 0.9rem;
    color: #94A3B8;
    margin-bottom: 0.3rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: #64748B;
}

.footer-payments {
    display: flex;
    gap: 0.5rem;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    color: #94A3B8;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Page Content (for legal pages etc.) --- */
.page-content {
    padding: 8rem 0 4rem;
    min-height: 60vh;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.page-body {
    max-width: 700px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light);
}

.page-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.page-body p {
    margin-bottom: 1rem;
}

.page-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
