/* ==============================
   RIZOS — Styles
   Dark theme, inspired by ProtonVPN
   Colors from logo: orange, purple, blue, green
   ============================== */

/* ====== CSS CUSTOM PROPERTIES ====== */
:root {
    /* Brand colors from logo */
    --orange: #F5A623;
    --purple: #9B6BD4;
    --blue: #4A90D9;
    --green: #4CAF50;

    /* UI colors */
    --bg-primary: #0d0d14;
    --bg-secondary: #13131f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --bg-navbar: rgba(13, 13, 20, 0.85);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --border-color: #2a2a40;
    --border-light: #3a3a55;

    /* Accent */
    --accent: #9B6BD4;
    --accent-hover: #b386e0;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, var(--orange), var(--purple), var(--blue));
    --gradient-text: linear-gradient(90deg, var(--orange), var(--purple), var(--blue), var(--green));

    /* Sizing */
    --container-max: 1140px;
    --container-padding: 1.5rem;
    --nav-height: 72px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: 0.3s ease;
}

/* ====== RESET ====== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ====== UTILITY ====== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.required {
    color: var(--orange);
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn--lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn--block {
    width: 100%;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.btn--primary:hover {
    box-shadow: 0 4px 20px rgba(155, 107, 212, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(155, 107, 212, 0.08);
}

.btn--accent {
    background: var(--accent);
    color: #fff;
}

.btn--accent:hover {
    background: var(--accent-hover);
    color: #fff;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar--scrolled {
    border-bottom-color: var(--border-color);
    background: rgba(13, 13, 20, 0.95);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo-img {
    height: 44px;
    width: auto;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar__links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

.navbar__links a:hover {
    color: var(--text-primary);
}

/* Hamburger */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ====== HERO ====== */
.hero {
    padding: calc(var(--nav-height) + 4rem) 0 5rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(155, 107, 212, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(74, 144, 217, 0.10) 0%, transparent 60%),
        var(--bg-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero visual — grid of 4 colored tiles like the logo */
.hero__visual {
    display: flex;
    justify-content: center;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 360px;
    width: 100%;
}

.hero__grid-item {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero__grid-item svg {
    width: 42px;
    height: 42px;
}

.hero__grid-item:hover {
    transform: translateY(-4px);
}

.hero__grid-item--orange {
    background: linear-gradient(135deg, #F5A623, #e09510);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.25);
}
.hero__grid-item--orange:hover {
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.35);
}

.hero__grid-item--purple {
    background: linear-gradient(135deg, #9B6BD4, #8352c0);
    box-shadow: 0 8px 30px rgba(155, 107, 212, 0.25);
}
.hero__grid-item--purple:hover {
    box-shadow: 0 12px 40px rgba(155, 107, 212, 0.35);
}

.hero__grid-item--blue {
    background: linear-gradient(135deg, #4A90D9, #3578c1);
    box-shadow: 0 8px 30px rgba(74, 144, 217, 0.25);
}
.hero__grid-item--blue:hover {
    box-shadow: 0 12px 40px rgba(74, 144, 217, 0.35);
}

.hero__grid-item--green {
    background: linear-gradient(135deg, #4CAF50, #3d9141);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.25);
}
.hero__grid-item--green:hover {
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.35);
}

/* ====== FEATURES ====== */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card__icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.feature-card__icon--orange { background: linear-gradient(135deg, #F5A623, #e09510); }
.feature-card__icon--purple { background: linear-gradient(135deg, #9B6BD4, #8352c0); }
.feature-card__icon--blue { background: linear-gradient(135deg, #4A90D9, #3578c1); }
.feature-card__icon--green { background: linear-gradient(135deg, #4CAF50, #3d9141); }

.feature-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ====== PRICING ====== */
.pricing {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all var(--transition);
}

.pricing-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.pricing-card--featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(155, 107, 212, 0.08) 0%, var(--bg-card) 50%);
    transform: scale(1.03);
}

.pricing-card--featured:hover {
    transform: scale(1.03) translateY(-2px);
    border-color: var(--accent-hover);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-card__price {
    margin-bottom: 0.75rem;
}

.pricing-card__amount {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pricing-card__period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.pricing-card__features {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-card__features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--green);
}

.pricing__note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2.5rem;
}

.pricing__note a {
    color: var(--accent);
}

/* ====== FAQ ====== */
.faq {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.faq__list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.active {
    border-color: var(--border-light);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
    transition: color var(--transition);
}

.faq-item__question:hover {
    color: var(--accent);
}

.faq-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.active .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item__answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ====== CONTACT ====== */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.contact__form {
    max-width: 640px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 107, 212, 0.15);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 0.35rem;
    min-height: 1.1em;
}

.contact__note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ====== FOOTER ====== */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer__logo {
    height: 48px;
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ====== RESPONSIVE ====== */

/* Tablet */
@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero__title {
        font-size: 2.75rem;
    }

    .hero__subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__grid {
        max-width: 280px;
    }

    .features__grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card--featured {
        transform: none;
    }

    .pricing-card--featured:hover {
        transform: translateY(-2px);
    }
}

/* Mobile */
@media (max-width: 600px) {
    :root {
        --nav-height: 64px;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        border-left: 1px solid var(--border-color);
        z-index: 1000;
    }

    .navbar__links.open {
        transform: translateX(0);
    }

    .hero {
        padding: calc(var(--nav-height) + 2rem) 0 3rem;
        min-height: auto;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__grid {
        max-width: 240px;
    }

    .hero__grid-item svg {
        width: 32px;
        height: 32px;
    }

    .hero__grid-item {
        font-size: 0.85rem;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .features,
    .pricing,
    .faq,
    .contact {
        padding: 4rem 0;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Overlay for mobile nav */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

/* ====== FADE-IN ANIMATION ====== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
