/* ===== CSS Variables ===== */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2744;
    --accent: #3182ce;
    --accent-light: #63b3ed;
    --success: #38a169;
    --warning: #dd6b20;
    --danger: #e53e3e;
    --white: #ffffff;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-800);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-disabled {
    background: var(--gray-200);
    color: var(--gray-500);
    cursor: not-allowed;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

/* ===== Hero Section ===== */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-light);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.hero-image {
    position: relative;
}

.phone-mockup {
    background: var(--gradient);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 320px;
    margin: 0 auto;
}

.phone-mockup img {
    border-radius: 32px;
    width: 100%;
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image {
        order: -1;
    }
    .phone-mockup {
        max-width: 240px;
    }
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.125rem;
    margin-top: 12px;
}

/* ===== Apps Section ===== */
.apps {
    padding: 100px 0;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.app-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.app-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.app-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.app-card.coming-soon {
    opacity: 0.7;
}

.app-card.coming-soon:hover {
    transform: none;
}

.app-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.app-badge.secondary {
    background: var(--gray-400);
}

.app-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon.placeholder {
    color: var(--gray-400);
}

.app-card h3 {
    margin-bottom: 12px;
}

.app-card > p {
    color: var(--gray-600);
    font-size: 0.938rem;
    margin-bottom: 20px;
}

.app-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.app-features li {
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.938rem;
}

/* ===== Pricing Section ===== */
.pricing {
    padding: 100px 0;
}

.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
}

.price .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price .period {
    font-size: 1.125rem;
    color: var(--gray-500);
}

.pricing-header > p {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
}

.pricing-note {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    background: var(--gradient);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    padding: 80px 0 40px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

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

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.938rem;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 8px 0;
    font-size: 0.938rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--gray-700);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
}

/* ===== Forms (for login/subscribe pages) ===== */
.form-page {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: var(--gray-50);
}

.form-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header img {
    height: 64px;
    margin: 0 auto 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.938rem;
    color: var(--gray-500);
}

.form-footer a {
    color: var(--accent);
    font-weight: 500;
}

/* ===== PayPal Button Container ===== */
.paypal-container {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin: 24px 0;
}

.paypal-container p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 120px 0 60px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    margin-bottom: 8px;
}

.legal-page .updated {
    color: var(--gray-500);
    margin-bottom: 40px;
}

.legal-page h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.legal-page p,
.legal-page li {
    margin-bottom: 16px;
    color: var(--gray-600);
}

.legal-page ul {
    padding-left: 24px;
}

/* ===== Alert Messages ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.938rem;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* ===== Account Page ===== */
.account-header {
    background: var(--gradient);
    padding: 100px 0 60px;
    color: var(--white);
    text-align: center;
}

.account-header h1 {
    color: var(--white);
}

.account-content {
    padding: 60px 0;
}

.account-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.account-card h3 {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.active {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.inactive {
    background: #fed7d7;
    color: #742a2a;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none; }

