/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors based on SekoKuva Flutter theme */
    --primary-color: #22313F;       /* Deep navy blue */
    --accent-color: #FF6F1A;        /* Bright orange */
    --secondary-color: #5386A6;     /* Blue-gray */
    --surface-color: #F5F7FA;       /* Light gray - main background */
    --surface-container: #FFFFFF;    /* White for containers/cards */
    --error-color: #D32F2F;         /* Error red */
    
    /* Text colors */
    --text-primary: #22313F;        /* onSurface - for text on background */
    --text-secondary: #5386A6;      /* secondary for muted text */
    --text-muted: #5386A680;        /* secondary with alpha */
    --text-on-primary: #FFFFFF;     /* onPrimary */
    --text-on-accent: #FFFFFF;      /* onAccent */
    
    /* UI colors */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Typography matching Flutter theme */
    --font-family-headings: 'Rubik', sans-serif;  /* Headings/titles/labels */
    --font-family-body: 'Inter', sans-serif;      /* Body text */
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 120px 0;
    --section-padding-mobile: 80px 0;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface-color);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: var(--font-family-body);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: var(--surface-container);
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn--secondary:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn__icon {
    width: 20px;
    height: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav__logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav__title {
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav__link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__link--cta {
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
    font-weight: 600;
}

.nav__link--cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--surface-color) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" fill-opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" fill-opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing Section */
.pricing {
    padding: 60px 0;
    background: var(--surface-container);
}

/* Stripe Pricing Table Customization */
stripe-pricing-table {
    width: 100%;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: var(--surface-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--surface-container);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Support Section */
.support {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.support-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.support-content h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.support-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.support-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #ff8c42);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.support-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: white;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__list a:hover {
    color: var(--accent-color);
}

.footer__list span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-badges {
    margin-top: 1rem;
}

.footer-badge {
    max-height: 40px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-badge:hover {
    opacity: 1;
}

.footer-company {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-bottom: 2rem;
}

.company-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.company-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.company-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.company-info a:hover {
    text-decoration: underline;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }
    
    .nav__menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--surface-container);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
        gap: 1rem;
    }
    
    .nav__menu--active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__link--cta {
        padding: 0.75rem 1.5rem;
        text-align: center;
        margin-top: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .pricing,
    .features,
    .support {
        padding: 40px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .pricing,
    .features,
    .support {
        padding: 30px 0;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Loading States and Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
