/* ChronSaver Website - Global Styles */

/* ===== CSS Variables ===== */
:root {
    /* Backgrounds */
    --bg-deep: #050505;
    --bg-panel: rgba(24, 24, 27, 0.7);
    --bg-input: rgba(39, 39, 42, 0.8);
    --bg-hover: rgba(42, 42, 46, 0.8);
    
    /* Accent Colors */
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-green-dim: rgba(16, 185, 129, 0.15);
    --accent-green-glow: rgba(16, 185, 129, 0.3);
    
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-glow: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    --gradient-dark: radial-gradient(circle at top center, #131315 0%, #050505 100%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(255, 255, 255, 0.2);
    --border-glow: rgba(16, 185, 129, 0.5);
    
    /* Sizing */
    --container-max: 1140px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s var(--ease-out);
    
    /* Font */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.08), transparent 25%), 
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.08), transparent 25%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-green-hover);
    text-shadow: 0 0 8px var(--accent-green-dim);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-normal);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--accent-green-dim);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--border-subtle);
}

.nav-link.active {
    color: var(--accent-green);
    background: var(--accent-green-dim);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-green-dim);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
    background: var(--accent-green-glow);
    border-color: var(--accent-green);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-active);
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
    background: var(--border-subtle);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* ===== Hero Section ===== */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    animation: fadeDown 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #ffffff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeUp 0.8s ease-out 0.1s backwards;
}

.hero h1 span {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease-out 0.3s backwards;
}

.hero-cta .btn {
    padding: 16px 32px;
    font-size: 16px;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Section Base ===== */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Features Section ===== */
.features {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02));
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--accent-green);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Cashback Section ===== */
.cashback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.cashback-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.cashback-card:hover {
    border-color: var(--border-active);
    transform: translateY(-5px);
}

.cashback-card.featured {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(24, 24, 27, 0.8) 100%);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.05);
}

.cashback-card.featured:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 60px rgba(16, 185, 129, 0.1);
}

.cashback-percentage {
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.cashback-card.featured .cashback-percentage {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cashback-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cashback-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cashback-note {
    text-align: center;
    margin-top: 48px;
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.cashback-note strong {
    color: var(--text-secondary);
}

/* ===== FAQ Section ===== */
.faq {
    background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.02));
    border-top: 1px solid var(--border-subtle);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-active);
}

.faq-item.active {
    border-color: var(--accent-green);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), var(--bg-panel));
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-green);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--transition-normal);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.faq-item.active .faq-icon {
    color: #fff;
    background: var(--accent-green);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 24px 24px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 5, 5, 0.9) 60%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 100px rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(20px);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.cta-box h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-box p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: #050505;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0;
    position: relative;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-tertiary);
    width: 100%;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

/* ===== Tutorial Page ===== */
.tutorial-hero {
    padding: 160px 0 80px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.1), transparent 50%);
}

.tutorial-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.tutorial-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.tutorial-content {
    padding: 40px 0 120px;
}

.tutorial-section {
    max-width: 800px;
    margin: 0 auto 80px;
}

.tutorial-section:last-child {
    margin-bottom: 0;
}

.tutorial-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tutorial-section h2 .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #000;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.tutorial-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.tutorial-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-green);
}

.tutorial-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.tutorial-card p:last-child {
    margin-bottom: 0;
}

.tutorial-steps {
    list-style: none;
    counter-reset: step;
}

.tutorial-steps li {
    position: relative;
    padding-left: 48px;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tutorial-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Fix for nested lists or "no-counter" variant */
.tutorial-steps.no-counter li {
    padding-left: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.tutorial-steps.no-counter li::before {
    content: none;
    display: none;
}

.tutorial-steps li:last-child {
    margin-bottom: 0;
}

.option-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.option-tab {
    flex: 1;
    padding: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.option-tab:hover {
    border-color: var(--border-active);
    background: var(--bg-hover);
}

.option-tab.active {
    border-color: var(--accent-green);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(24, 24, 27, 0.5) 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
}

.option-tab h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.option-tab .percentage {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-green);
}

.option-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.option-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.warning-box {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
    display: flex;
    gap: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.warning-box svg {
    flex-shrink: 0;
    color: #fbbf24;
}

.info-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    gap: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
    }
    
    .nav.open {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 14px 20px;
        border-radius: var(--radius-md);
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cashback-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 60px 24px;
    }
    
    .cta-box h2 {
        font-size: 32px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-copy {
        margin-top: 20px;
    }
    
    .tutorial-hero h1 {
        font-size: 36px;
    }
    
    .option-tabs {
        flex-direction: column;
    }
}

/* ===== Utilities ===== */
.text-green {
    color: var(--accent-green);
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
