/* Carve - Shared Styles */

:root {
    --snow-white: #FAFCFF;
    --ice-blue: #E8F4FD;
    --glacier: #B8D4E8;
    --mountain-slate: #2D3A4A;
    --deep-navy: #0F1923;
    --carve-blue: #0A84FF;
    --carve-cyan: #32D4DE;
    --sunset-orange: #FF6B35;
    --powder-pink: #FFB5C2;
    --alpine-green: #34D399;
    --gradient-main: linear-gradient(135deg, var(--carve-blue) 0%, var(--carve-cyan) 100%);
    --gradient-warm: linear-gradient(135deg, var(--sunset-orange) 0%, var(--powder-pink) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--deep-navy);
    color: var(--snow-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--deep-navy);
}
::-webkit-scrollbar-thumb {
    background: var(--carve-blue);
    border-radius: 4px;
}

/* ==================== */
/* Navigation */
/* ==================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 25, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--glacier);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--snow-white);
}

.nav-cta {
    background: var(--gradient-main);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(10, 132, 255, 0.4);
}

/* ==================== */
/* Hero Section */
/* ==================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 4rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
}

.mountain-1 {
    background: linear-gradient(170deg, transparent 30%, rgba(45, 58, 74, 0.8) 30.1%);
    transform: translateX(-5%);
    animation: mountainFloat 20s ease-in-out infinite;
}

.mountain-2 {
    background: linear-gradient(160deg, transparent 40%, rgba(45, 58, 74, 0.5) 40.1%);
    transform: translateX(10%);
    animation: mountainFloat 25s ease-in-out infinite reverse;
}

.mountain-3 {
    background: linear-gradient(175deg, transparent 35%, rgba(45, 58, 74, 0.3) 35.1%);
    transform: translateX(-15%);
    animation: mountainFloat 30s ease-in-out infinite;
}

@keyframes mountainFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Snow particles */
.snow-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Gradient orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--carve-blue);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--carve-cyan);
    bottom: 10%;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--sunset-orange);
    top: 40%;
    right: 10%;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid rgba(10, 132, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--carve-cyan);
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '⛷️';
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--glacier);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0d0d1a 100%);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1e3a5f 0%, #0f1923 50%, #1a1a2e 100%);
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-content {
    padding: 60px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    margin-bottom: 20px;
}

.app-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.app-header p {
    font-size: 0.75rem;
    color: var(--glacier);
}

.stats-display {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
}

.main-stat {
    text-align: center;
    margin-bottom: 15px;
}

.main-stat .value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-stat .label {
    font-size: 0.8rem;
    color: var(--glacier);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-stat {
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.mini-stat .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--carve-cyan);
}

.mini-stat .label {
    font-size: 0.65rem;
    color: var(--glacier);
    margin-top: 2px;
}

.activity-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 12px;
    margin-top: auto;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--alpine-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.activity-indicator span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--alpine-green);
}

/* ==================== */
/* Section Styles */
/* ==================== */

section {
    padding: 6rem 4rem;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid rgba(10, 132, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--carve-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--glacier);
    line-height: 1.7;
}

/* ==================== */
/* Features Section */
/* ==================== */

.features {
    background: linear-gradient(180deg, var(--deep-navy) 0%, rgba(45, 58, 74, 0.3) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(10, 132, 255, 0.3);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--glacier);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== */
/* Stats Section */
/* ==================== */

.stats {
    background: var(--gradient-main);
    padding: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== */
/* How It Works Section */
/* ==================== */

.how-it-works {
    background: var(--deep-navy);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--glacier);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==================== */
/* Testimonials Section */
/* ==================== */

.testimonials {
    background: linear-gradient(180deg, rgba(45, 58, 74, 0.3) 0%, var(--deep-navy) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 2rem;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--glacier);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 600;
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--glacier);
}

/* ==================== */
/* CTA Section */
/* ==================== */

.cta {
    background: linear-gradient(180deg, var(--deep-navy) 0%, #0a0f14 100%);
    padding: 8rem 4rem;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    font-size: 1.2rem;
    color: var(--glacier);
    margin-bottom: 2.5rem;
}

.app-store-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.app-store-badge {
    transition: transform 0.3s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 54px;
}

/* ==================== */
/* Footer */
/* ==================== */

footer {
    padding: 3rem 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #0a0f14;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--glacier);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--snow-white);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--glacier);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--carve-blue);
    color: white;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--mountain-slate);
    font-size: 0.85rem;
}

/* ==================== */
/* Document Pages (Privacy, Terms) */
/* ==================== */

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--glacier);
    font-size: 0.95rem;
}

.document {
    background: rgba(45, 58, 74, 0.3);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.document h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--carve-cyan);
}

.document h2:first-child {
    margin-top: 0;
}

.document h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--snow-white);
}

.document p {
    margin-bottom: 1rem;
    color: var(--glacier);
    line-height: 1.7;
}

.document ul, .document ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--glacier);
}

.document li {
    margin-bottom: 0.5rem;
}

.document strong {
    color: var(--snow-white);
}

.document a {
    color: var(--carve-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.document a:hover {
    color: var(--carve-cyan);
}

.document table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.document th,
.document td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.document th {
    color: var(--snow-white);
    font-weight: 600;
    background: rgba(10, 132, 255, 0.1);
}

.document td {
    color: var(--glacier);
}

/* Warning boxes */
.warning-box {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box p {
    color: var(--snow-white);
    margin-bottom: 0.5rem;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.warning-box strong {
    color: var(--sunset-orange);
}

.warning-box ul {
    color: var(--snow-white);
}

/* ==================== */
/* Animations */
/* ==================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* Responsive */
/* ==================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .steps,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Document pages */
    .page-content {
        padding: 6rem 1rem 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .document {
        padding: 1.5rem;
        border-radius: 12px;
    }
}
