/* ==== Theme ==== */
:root {
    --color-bg: #0d1117;
    --color-surface: #161b22;
    --color-primary: #58a6ff;
    --color-primary-dark: #1f6feb;
    --color-secondary: #8b949e;
    --color-text: #c9d1d9;
    --color-muted: #6e7681;
    --font-base: 'Inter', system-ui, sans-serif;
    --radius: 8px;
    --transition: 0.3s ease;
}

/* ==== Global ==== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}
a {
    color: var(--color-primary);
    text-decoration: none;
}
a:hover,
a:focus {
    text-decoration: underline;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 2rem 0;
}

/* ==== Header ==== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-surface);
    z-index: 1000;
    border-bottom: 1px solid var(--color-muted);
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.nav {
    display: flex;
}
.nav__list {
    display: flex;
    gap: 1.5rem;
}
.nav__link {
    color: var(--color-text);
    font-weight: 600;
    padding: .5rem;
}
.nav__link:hover,
.nav__link:focus {
    color: var(--color-primary);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    display: block;
    position: relative;
    transition: var(--transition);
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
}
.nav-toggle__icon::before {
    top: -8px;
}
.nav-toggle__icon::after {
    top: 8px;
}

/* ==== Hero ==== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background: url('https://source.unsplash.com/collection/190726/1600x900') center/cover no-repeat;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
}
.hero__content {
    position: relative;
    text-align: center;
    max-width: 800px;
}
.hero__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-muted);
}
.btn {
    display: inline-block;
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
}
.btn--primary:hover,
.btn--primary:focus {
    background: var(--color-primary-dark);
}
.btn--secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn--secondary:hover,
.btn--secondary:focus {
    background: rgba(88, 166, 255, 0.1);
}

/* ==== Sections ==== */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.section.visible {
    opacity: 1;
    transform: none;
}
.section__title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

/* ==== Features ==== */
.features__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
    background: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: var(--transition);
}
.card:hover,
.card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.card__img {
    height: 150px;
    object-fit: cover;
}
.card__title {
    font-size: 1.25rem;
    margin: 1rem;
    color: var(--color-primary);
}
.card__text {
    margin: 0 1rem 1rem;
    color: var(--color-muted);
}

/* ==== Pricing ==== */
.pricing__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pricing__card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}
.pricing__card--highlight {
    border-color: var(--color-primary);
}
.pricing__plan {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    color: var(--color-primary);
}
.pricing__price {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.pricing__price span {
    font-size: 1rem;
    color: var(--color-muted);
}
.pricing__features {
    list-style: none;
    margin: 1rem 0 2rem;
    text-align: left;
}
.pricing__features li {
    margin-bottom: .5rem;
    position: relative;
    padding-left: 1.2rem;
}
.pricing__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ==== Testimonials ==== */
.testimonials__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.testimonial {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.testimonial__text {
    font-style: italic;
    margin-bottom: .75rem;
    color: var(--color-muted);
}
.testimonial__author {
    text-align: right;
    font-weight: 600;
    color: var(--color-primary);
}

/* ==== Footer ==== */
.footer {
    background: var(--color-surface);
    color: var(--color-muted);
    padding: 2rem 0;
}
.footer__container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}
.footer__brand,
.footer__nav,
.footer__legal {
    flex: 1 1 200px;
}
.logo--footer {
    font-size: 1.5rem;
    color: var(--color-primary);
}
.footer__tagline {
    margin-top: .5rem;
}
.footer__list {
    list-style: none;
}
.footer__link {
    color: var(--color-muted);
}
.footer__link:hover,
.footer__link:focus {
    color: var(--color-primary);
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--color-surface);
        flex-direction: column;
        width: 200px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .nav.open {
        max-height: 500px;
    }
    .nav__list {
        flex-direction: column;
        gap: 0;
    }
    .nav__link {
        padding: 1rem;
        border-bottom: 1px solid var(--color-muted);
    }
    .nav-toggle {
        display: block;
    }
}

/* ==== Utility ==== */
.hidden {
    display: none !important;
}

/* ==== Scroll Animations ==== */
.section {
    will-change: opacity, transform;
}