/* =========================================
   PRO.CSS - Fasty Pro Mobile Presentation
   Based on UI_UX_GUIDELINES.md
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Dark theme for Pro pages with guideline colors */
    --bg-primary: #0f1724;
    --bg-secondary: #1a2332;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);

    /* Brand colors from guidelines */
    --primary-orange: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FB923C;
    --secondary-gold: #F59E0B;
    --gold-light: #FBBF24;
    
    /* Glow effects */
    --accent-glow: rgba(249, 115, 22, 0.2);
    --accent-subtle: rgba(249, 115, 22, 0.1);
    --gold-glow: rgba(245, 158, 11, 0.12);

    /* Text colors */
    --text-primary: #eef2ff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(249, 115, 22, 0.3);
    --border-gold: rgba(245, 158, 11, 0.3);

    /* Typography from guidelines */
    --font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing - 8px base grid */
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;

    /* Border radius from guidelines */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-brand: 0 10px 24px var(--accent-glow);
    --shadow-gold: 0 10px 24px var(--gold-glow);
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--primary-orange) 200%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Subtle animated gradient orb */
body::before {
    content: '';
    position: fixed;
    top: 10%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 20%;
    left: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
    pointer-events: none;
    animation: orbFloat 15s ease-in-out infinite reverse;
    z-index: 0;
}

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

/* =========================================
   PAGE LAYOUT
   ========================================= */
.page {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md) 120px;
}

/* =========================================
   HEADER
   ========================================= */
.header {
    margin-bottom: var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo img {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-tag {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.hero h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-gold));
    border-radius: 2px;
    animation: expandWidth 0.6s ease-out 0.3s both;
}

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

@keyframes expandWidth {
    from { width: 0; }
    to { width: 50px; }
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

/* =========================================
   STATS
   ========================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.stat:hover::before {
    opacity: 1;
}

.stat:nth-child(1) { animation: fadeInUp 0.4s ease-out 0.1s both; }
.stat:nth-child(2) { animation: fadeInUp 0.4s ease-out 0.2s both; }
.stat:nth-child(3) { animation: fadeInUp 0.4s ease-out 0.3s both; }

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* =========================================
   SECTIONS
   ========================================= */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

/* =========================================
   FEATURES
   ========================================= */
.features {
    margin-bottom: var(--spacing-lg);
}

.feature {
    display: flex;
    gap: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: var(--spacing-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-orange), var(--secondary-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateX(6px);
    box-shadow: -4px 4px 20px var(--accent-glow);
}

.feature:hover::before {
    opacity: 1;
}

.feature:nth-child(1) { animation: slideInLeft 0.4s ease-out 0.1s both; }
.feature:nth-child(2) { animation: slideInLeft 0.4s ease-out 0.2s both; }
.feature:nth-child(3) { animation: slideInLeft 0.4s ease-out 0.3s both; }
.feature:nth-child(4) { animation: slideInLeft 0.4s ease-out 0.4s both; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-md) + 3px);
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    opacity: 0;
    z-index: -1;
    filter: blur(6px);
    transition: opacity 0.4s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature:hover .feature-icon::after {
    opacity: 0.5;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   PLANS
   ========================================= */
.plans {
    margin-bottom: var(--spacing-lg);
}

.plan {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + 6px);
    margin-bottom: var(--spacing-sm);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.plan.highlight {
    margin-top: 12px;
}

.plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
    pointer-events: none;
    border-radius: var(--radius-xl);
}

.plan:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        var(--shadow-md),
        0 20px 40px -20px rgba(0, 0, 0, 0.3);
}

.plan.highlight {
    background: linear-gradient(145deg, var(--accent-subtle), rgba(245, 158, 11, 0.05));
    border-color: var(--border-accent);
    box-shadow:
        var(--shadow-brand),
        inset 0 1px 0 rgba(249, 115, 22, 0.1);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    color: white;
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.plan-header {
    margin-bottom: var(--spacing-md);
}

.plan-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.plan-for {
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-list {
    list-style: none;
}

.plan-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--spacing-xs) 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================
   LINKS
   ========================================= */
.links {
    margin-bottom: var(--spacing-lg);
}

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-orange), var(--secondary-gold));
    transition: height 0.3s ease;
    border-radius: 4px 0 0 4px;
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateX(6px);
    box-shadow: -4px 0 20px var(--accent-glow);
}

.link-card:hover::before {
    height: 60%;
}

.link-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-orange);
}

.link-content {
    flex: 1;
}

.link-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.link-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.link-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    color: var(--primary-orange);
    transform: translateX(4px);
}

/* =========================================
   CTA FOOTER
   ========================================= */
.cta-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, var(--bg-primary) 70%, rgba(15, 23, 36, 0.95) 90%, transparent);
    z-index: 100;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-gold));
    background-size: 200% 100%;
    color: white;
    padding: 18px var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    box-shadow:
        var(--shadow-brand),
        0 0 0 0 rgba(249, 115, 22, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: var(--shadow-brand), 0 0 0 0 rgba(249, 115, 22, 0.4); }
    50% { box-shadow: var(--shadow-brand), 0 0 0 8px rgba(249, 115, 22, 0); }
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px var(--accent-glow);
    animation: none;
}

.cta-btn:hover::before {
    transform: translateX(100%);
}

.cta-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.cta-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(4px);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (min-width: 600px) {
    .page {
        padding: var(--spacing-xl) var(--spacing-lg) 140px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .stats {
        gap: var(--spacing-md);
    }

    .stat {
        padding: var(--spacing-lg) 18px;
    }

    .stat-value {
        font-size: 28px;
    }
}
