/* ============================================================
   FlowDesk – SaaS Landing Page Stylesheet
   Mobile-first: 375px → Desktop ab 768px
   ============================================================ */

/* === CUSTOM PROPERTIES === */
:root {
    /* Farben */
    --clr-bg: #0a0a0a;
    --clr-primary: #6366f1;
    --clr-primary-hover: #818cf8;
    --clr-accent: #a5b4fc;
    --clr-text: #f8fafc;
    --clr-text-muted: #94a3b8;
    --clr-surface: #141414;
    --clr-border: rgba(255, 255, 255, 0.08);

    /* Typografie */
    --ff-body: 'Inter', sans-serif;
    --ff-heading: 'Syne', sans-serif;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semi: 600;
    --fw-bold: 700;
    --fw-extra: 800;

    /* Spacing (8px-Grid) */
    --sp-4: 4px;
    --sp-8: 8px;
    --sp-12: 12px;
    --sp-16: 16px;
    --sp-24: 24px;
    --sp-32: 32px;
    --sp-48: 48px;
    --sp-64: 64px;
    --sp-96: 96px;

    /* Layout */
    --max-width: 1120px;
    --nav-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Transition */
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

ul,
ol {
    list-style: none;
}

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

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

/* === BASE STYLES === */
body {
    font-family: var(--ff-body);
    font-weight: var(--fw-regular);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    line-height: 1.2;
}

/* Utility: Primary Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
    font-family: var(--ff-body);
    font-weight: var(--fw-semi);
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--clr-primary);
    color: var(--clr-text);
    padding: var(--sp-12) var(--sp-24);
}

.btn--primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    transition: background-color var(--transition);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--sp-24);
}

/* Logo */
.nav__logo {
    font-family: var(--ff-heading);
    font-weight: var(--fw-extra);
    font-size: 1.375rem;
    color: var(--clr-text);
    letter-spacing: -0.02em;
    transition: color var(--transition);
}

.nav__logo:hover {
    color: var(--clr-accent);
}

/* Hamburger Toggle (Mobile) */
.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    z-index: 1001;
}

.nav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--clr-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X Animation (active state) */
.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu (Overlay) */
.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--clr-surface);
    padding: calc(var(--nav-height) + var(--sp-32)) var(--sp-32) var(--sp-32);
    display: flex;
    flex-direction: column;
    gap: var(--sp-32);
    transition: right var(--transition);
    border-left: 1px solid var(--clr-border);
    z-index: 999;
}

.nav__menu.open {
    right: 0;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
}

.nav__link {
    display: block;
    font-size: 1.0625rem;
    font-weight: var(--fw-medium);
    color: var(--clr-text-muted);
    padding: var(--sp-12) 0;
    border-bottom: 1px solid var(--clr-border);
    transition: color var(--transition);
}

.nav__link:hover {
    color: var(--clr-text);
}

/* CTA inside mobile menu */
.nav__cta {
    margin-top: auto;
    text-align: center;
}

/* Mobile Overlay Backdrop */
.nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.nav__overlay.visible {
    display: block;
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* === NAVIGATION – DESKTOP (768px+) === */
@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background-color: transparent;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: var(--sp-32);
        border-left: none;
    }

    .nav__list {
        flex-direction: row;
        gap: var(--sp-8);
    }

    .nav__link {
        font-size: 0.9375rem;
        padding: var(--sp-8) var(--sp-16);
        border-bottom: none;
        border-radius: var(--radius-sm);
        position: relative;
    }

    .nav__link:hover {
        color: var(--clr-text);
        background-color: rgba(255, 255, 255, 0.06);
    }

    .nav__cta {
        margin-top: 0;
    }

    .nav__overlay {
        display: none !important;
    }
}

/* === SECTION SPACING (Global) === */
section {
    padding: var(--sp-96) var(--sp-24);
}

section:first-of-type {
    padding-top: calc(var(--nav-height) + var(--sp-96));
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Decorative Glow Circle */
.hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(99, 102, 241, 0.25) 0%,
            rgba(99, 102, 241, 0.08) 40%,
            transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* Content */
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 0 var(--sp-24);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-24);
}

/* Headline – Gradient Text */
.hero__title {
    font-family: var(--ff-heading);
    font-weight: var(--fw-extra);
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--clr-text) 30%, var(--clr-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subline */
.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--clr-text-muted);
    max-width: 540px;
}

/* CTA Buttons */
.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
    margin-top: var(--sp-8);
    width: 100%;
    max-width: 340px;
}

.hero__actions .btn {
    width: 100%;
}

/* Secondary Button (Outline) */
.btn--secondary {
    background: transparent;
    color: var(--clr-text);
    padding: var(--sp-12) var(--sp-24);
    border: 1px solid var(--clr-border);
    transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.btn--secondary:hover {
    border-color: var(--clr-accent);
    background-color: rgba(165, 180, 252, 0.06);
    transform: translateY(-1px);
}

.btn--secondary svg {
    flex-shrink: 0;
}

/* === HERO – DESKTOP (768px+) === */
@media (min-width: 768px) {
    .hero__glow {
        width: 700px;
        height: 700px;
    }

    .hero__content {
        gap: var(--sp-32);
    }

    .hero__actions {
        flex-direction: row;
        justify-content: center;
        max-width: none;
        width: auto;
    }

    .hero__actions .btn {
        width: auto;
    }
}

/* === FEATURES === */
.features {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Section Header */
.features__header {
    text-align: center;
    margin-bottom: var(--sp-64);
}

.features__title {
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    color: var(--clr-text);
    margin-bottom: var(--sp-16);
}

.features__subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--clr-text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* Card Grid */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-24);
}

/* Individual Card */
.feature-card {
    background-color: #111;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--sp-32);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 32px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

/* Icon */
.feature-card__icon {
    color: var(--clr-primary);
    margin-bottom: var(--sp-16);
    line-height: 0;
}

.feature-card__icon svg {
    width: 40px;
    height: 40px;
}

/* Card Title */
.feature-card__title {
    font-family: var(--ff-heading);
    font-weight: var(--fw-semi);
    font-size: 1.25rem;
    color: var(--clr-text);
    margin-bottom: var(--sp-12);
}

/* Card Text */
.feature-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
}

/* === FEATURES – DESKTOP (768px+) === */
@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sp-32);
    }
}

/* === TESTIMONIAL === */
.testimonial {
    background-color: #0f0f0f;
}

.testimonial__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.testimonial__card {
    position: relative;
    max-width: 720px;
    text-align: center;
    padding: var(--sp-48) var(--sp-24);
}

/* Decorative Quote Mark */
.testimonial__card::before {
    content: '\201E';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--ff-heading);
    font-size: 8rem;
    line-height: 1;
    color: var(--clr-primary);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Star Rating */
.testimonial__stars {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-24);
    color: var(--clr-primary);
    position: relative;
    z-index: 1;
}

/* Blockquote */
.testimonial__quote {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    font-style: italic;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: var(--sp-32);
    position: relative;
    z-index: 1;
}

/* Author Row */
.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-16);
    position: relative;
    z-index: 1;
}

/* Avatar Circle */
.testimonial__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--clr-primary);
    color: var(--clr-text);
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* Author Info */
.testimonial__info {
    text-align: left;
}

.testimonial__name {
    font-weight: var(--fw-semi);
    font-size: 1rem;
    color: var(--clr-text);
    margin-bottom: var(--sp-4);
}

.testimonial__role {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

/* === PRICING === */
.pricing {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Section Header */
.pricing__header {
    text-align: center;
    margin-bottom: var(--sp-64);
}

.pricing__title {
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    color: var(--clr-text);
    margin-bottom: var(--sp-16);
}

.pricing__subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--clr-text-muted);
}

/* Card Grid */
.pricing__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-24);
    max-width: 760px;
    margin: 0 auto;
}

/* Individual Card */
.pricing-card {
    position: relative;
    background-color: #111;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-48) var(--sp-32);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
}

/* Pro Card – Highlighted */
.pricing-card--pro {
    border: 2px solid var(--clr-primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* Badge – Default */
.pricing-card__badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: var(--fw-semi);
    color: var(--clr-text-muted);
    background-color: rgba(255, 255, 255, 0.06);
    padding: var(--sp-4) var(--sp-16);
    border-radius: 100px;
    margin-bottom: var(--sp-24);
}

/* Badge – Pro (Empfohlen) */
.pricing-card__badge--pro {
    position: absolute;
    top: -14px;
    right: var(--sp-24);
    color: var(--clr-text);
    background-color: var(--clr-primary);
    margin-bottom: 0;
}

/* Price */
.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--sp-8);
    margin-bottom: var(--sp-32);
}

.pricing-card__amount {
    font-family: var(--ff-heading);
    font-weight: var(--fw-extra);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    color: var(--clr-text);
    letter-spacing: -0.02em;
}

.pricing-card__period {
    font-size: 1rem;
    color: var(--clr-text-muted);
}

/* Feature List */
.pricing-card__features {
    width: 100%;
    margin-bottom: var(--sp-32);
}

.pricing-card__feature {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
    padding: var(--sp-12) 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: 0.9375rem;
    color: var(--clr-text);
    text-align: left;
}

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

/* Checkmark Icon */
.icon-check {
    color: var(--clr-primary);
    flex-shrink: 0;
}

/* Cross Icon – Disabled Feature */
.icon-cross {
    color: #475569;
    flex-shrink: 0;
}

.pricing-card__feature--disabled {
    color: #475569;
}

/* CTA Button */
.pricing-card__cta {
    width: 100%;
    margin-top: auto;
}

/* === PRICING – DESKTOP (768px+) === */
@media (min-width: 768px) {
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-32);
        max-width: 760px;
    }
}

/* === FOOTER === */
.footer {
    background-color: #050505;
    padding: var(--sp-64) var(--sp-24) var(--sp-32);
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-48);
    margin-bottom: var(--sp-48);
}

/* Brand Column */
.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--sp-12);
}

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--clr-text-muted);
}

/* Link Columns */
.footer__heading {
    font-family: var(--ff-heading);
    font-weight: var(--fw-semi);
    font-size: 0.875rem;
    color: var(--clr-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-16);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-12);
}

.footer__link {
    font-size: 0.9375rem;
    color: var(--clr-text-muted);
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--clr-text);
}

/* Bottom Bar */
.footer__bottom {
    border-top: 1px solid var(--clr-border);
    padding-top: var(--sp-24);
    text-align: center;
}

.footer__copyright {
    font-size: 0.8125rem;
    color: var(--clr-text-muted);
}

/* === FOOTER – DESKTOP (768px+) === */
@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--sp-64);
    }
}

/* === SCROLLED NAVIGATION === */
.nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* === ANIMATIONS === */

/* Initial hidden state for scroll-reveal elements */
.feature-card,
.pricing-card,
.testimonial__card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Stagger feature cards */
.feature-card:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.2s;
}

/* Stagger pricing cards */
.pricing-card:nth-child(2) {
    transition-delay: 0.1s;
}

/* Visible state (added by JS Intersection Observer) */
.feature-card.visible,
.pricing-card.visible,
.testimonial__card.visible {
    opacity: 1;
    transform: translateY(0);
}