:root {
    --bg: #0b0b10;
    --surface: #12121a;
    --surface-2: #171723;
    --text: #e5e7eb;
    --muted: #a1a1aa;
    --primary: #8b5cf6;
    --primary-2: #7c3aed;
    --ring: rgba(139, 92, 246, 0.35);
    --shadow: rgba(0, 0, 0, 0.35);
    
    /* Toast system CSS variables */
    --bg-elevated: var(--surface);
    --border-color: rgba(255, 255, 255, 0.06);
    --z-modal: 1000;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --accent-info: #3b82f6;
    --text-primary: var(--text);
    --text-secondary: var(--muted);
    --text-muted: #71717a;
    --bg-secondary: var(--surface-2);
    --bg-hover: rgba(255, 255, 255, 0.08);
    --primary-500: var(--primary);
    --primary-600: var(--primary-2);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 999px;
    --shadow-xl: 0 10px 24px var(--shadow);
    --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --transition-base: 0.3s ease;
    --transition-fast: 0.15s ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1000px 500px at 20% 0%, rgba(124, 58, 237, 0.12), transparent 60%), var(--bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header entfernt */

/* Hero */
.hero {
    padding: 80px 0 40px;
    position: relative;
}

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

.hero-kicker {
    display: inline-block;
    font-size: 14px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 6px 12px;
    border-radius: 999px;
}

.hero-title {
    margin: 16px 0 12px;
    font-size: 48px;
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #c4b5fd, #8b5cf6 60%, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--muted);
    font-size: 18px;
    max-width: 620px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin: 22px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    color: white;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    box-shadow: 0 10px 24px var(--ring);
}

.btn-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    color: #93c5fd;
}

.hero-bullets li {
    margin: 6px 0;
}

.stats {
    display: grid;
    gap: 16px;
}

/* Geometric animation */
/* Geometric animation replaced by Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content */
    opacity: 0.8;
    pointer-events: auto;
    /* Allow mouse interaction */
}

/* Ensure hero content is above canvas */
.hero-grid {
    position: relative;
    z-index: 1;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 24px var(--shadow);
}

.stat-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #c4b5fd;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* Features */
.features {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 28px;
}

.section-header p {
    color: var(--muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px var(--shadow);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 12px;
    margin-bottom: 10px;
}

.feature-card h3 {
    margin: 8px 0;
    font-size: 18px;
}

.feature-card p {
    color: var(--muted);
}

.feature-tag {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 6px 10px;
    border-radius: 999px;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 6px 10px;
    border-radius: 999px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.testimonial {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 24px var(--shadow);
}

.testimonial blockquote {
    margin: 0 0 14px;
    color: var(--text);
}

.person {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.person .avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.person .name {
    font-weight: 600;
    color: var(--text);
}

/* Dev Badge */
.dev-badge {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 60;
    color: #fff;
    background: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.6);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
}

/* Pricing */
.pricing {
    padding: 60px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px var(--shadow);
    display: flex;
    flex-direction: column;
}

.pricing-featured {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 14px 28px var(--shadow);
}

.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
}

.plan-tag {
    font-size: 12px;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.35);
    padding: 6px 10px;
    border-radius: 999px;
}

.price {
    margin: 8px 0 10px;
    font-size: 28px;
    font-weight: 800;
    color: #c4b5fd;
}

.price .per {
    font-size: 12px;
    color: var(--muted);
    margin-left: 6px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    color: var(--muted);
}

.plan-features li {
    margin: 6px 0;
}

.plan-cta {
    margin-top: auto;
}

/* Policy */
.policy {
    padding: 60px 0;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.policy-card {
    background: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 24px var(--shadow);
}

.policy-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.policy-card h4 {
    margin: 12px 0 6px;
    font-size: 14px;
    color: #c4b5fd;
}

.policy-card p {
    color: var(--muted);
}

.policy-card ul {
    color: var(--muted);
    margin: 8px 0 0;
}

.policy-card a {
    color: #c4b5fd;
    text-decoration: none;
}

.policy-collapsible {
    display: block;
}

.policy-collapsible summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.policy-collapsible summary::-webkit-details-marker {
    display: none;
}

.policy-collapsible .summary-sub {
    color: var(--muted);
    font-size: 12px;
}

.policy-collapsible[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.policy-collapsible[open] .policy-grid {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding-top: 12px;
}

/* Mail links */
.policy-card a[href^="mailto:"],
.contact-card a[href^="mailto:"] {
    color: var(--text);
    text-decoration: none;
}

.policy-card a[href^="mailto:"]:hover,
.contact-card a[href^="mailto:"]:hover {
    color: #c4b5fd;
}

/* Contact */
.contact {
    padding: 60px 0;
}

.waitlist-grid {
    display: flex;
    justify-content: center;
}

.waitlist-form {
    width: 100%;

    display: grid;
    gap: 12px;

    padding: 16px;
    border-radius: 16px;

    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 24px var(--shadow);
}

.waitlist-input {
    text-align: center;
    height: 44px;
    border-radius: 16px;
}

.waitlist-button {
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-title {
    font-size: 18px;
    font-weight: 700;
}

.contact-detail {
    color: var(--muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 26px 0;
    background: linear-gradient(to top, rgba(18, 18, 26, 0.9), rgba(18, 18, 26, 0.4));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    margin-right: 12px;
}

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

.copyright {
    color: var(--muted);
    justify-self: end;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .geo-anim {
        right: -40px;
        top: -20px;
        width: 420px;
        height: 420px;
    }

    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .policy-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .geo-anim {
        display: none;
    }
}

/* --- UI Polish & Animations --- */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids if needed, but simple reveal is often enough. 
   We can add .delay-100 etc. if we want more control later. */

/* Enhanced Card Hover Effects */
.feature-card,
.pricing-card,
.testimonial,
.contact-card,
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover,
.pricing-card:hover,
.testimonial:hover,
.contact-card:hover,
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Glow effect for icons on card hover */
.feature-card:hover .feature-icon,
.stat-card:hover .stat-icon {
    background: rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.matrix-icon {
  width: 62px;
  height: 30px;
  vertical-align: middle;
  cursor: pointer;
}