:root {
    --color-bg: #030712;
    --color-surface: #0a0f1f;
    --color-surface-alt: #111a2f;
    --color-card: #121c33;
    --color-highlight: #fede6b;
    --color-accent: #40e0d0;
    --color-accent-2: #7c5dfa;
    --color-muted: #9fb3d1;
    --color-border: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #fede6b 0%, #ff7d67 35%, #40e0d0 100%);
    --gradient-dark: linear-gradient(145deg, #030712 0%, #0c1224 50%, #030712 100%);
    --font-primary: 'Space Grotesk', 'Montserrat', sans-serif;
    --font-secondary: 'Inter', 'Roboto', sans-serif;
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 2.5rem;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-hard: 0 30px 90px rgba(3, 7, 18, 0.8);
    --transition-base: 0.35s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-muted);
    background: var(--gradient-dark);
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(64, 224, 208, 0.08), transparent 45%), radial-gradient(circle at 80% 0%, rgba(255, 126, 102, 0.08), transparent 40%), radial-gradient(circle at 50% 80%, rgba(126, 102, 255, 0.08), transparent 35%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' opacity='0.18'%3E%3Cpath d='M0 0h160v160H0z'/%3E%3Cpath d='M0 20h160M0 60h160M0 100h160M0 140h160M20 0v160M60 0v160M100 0v160M140 0v160' stroke='%232f3b57' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -3;
    opacity: 0.5;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: #f4f7ff;
    margin-top: 0;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.2rem, 3vw, 3.5rem);
}

h3 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-highlight);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #0b0f1c;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-hard);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: #f4f7ff;
    background: transparent;
}

.btn-outline:hover,
.btn-outline:focus {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.glass-panel {
    background: rgba(8, 12, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.hero-stage {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: radial-gradient(circle at 25% 25%, rgba(255, 221, 118, 0.14), rgba(64, 224, 208, 0.03));
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(3, 7, 18, 0.4) 0%, rgba(3, 7, 18, 0.05) 60%, rgba(64, 224, 208, 0.2) 100%);
}

.hero-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

.hero-orb {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.45;
    animation: float 12s ease-in-out infinite;
}

.hero-orb.orb-1 {
    background: #ff7d67;
    top: 10%;
    left: 12%;
}

.hero-orb.orb-2 {
    background: #40e0d0;
    bottom: 5%;
    right: 15%;
    animation-delay: 2s;
}

.hero-orb.orb-3 {
    background: #7c5dfa;
    top: 45%;
    right: 30%;
    animation-delay: 4s;
}

.hero-spotlight {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
}

.hero-spotlight h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-spotlight p {
    max-width: 40rem;
    margin-inline: auto;
    font-size: 1.15rem;
}

.section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
    opacity: 0.4;
    pointer-events: none;
}

.section-bg-1 {
    background: linear-gradient(140deg, rgba(9, 12, 24, 0.9), rgba(5, 6, 13, 0.95));
}

.section-bg-2 {
    background: linear-gradient(140deg, rgba(7, 14, 32, 0.9), rgba(10, 14, 26, 0.92));
}

.section-bg-3 {
    background: linear-gradient(140deg, rgba(9, 10, 18, 0.95), rgba(14, 18, 33, 0.9));
}

.category-card {
    border-radius: var(--radius-md);
    background: rgba(13, 20, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 45%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-card:hover::after {
    opacity: 1;
}

.feature-card {
    border-radius: var(--radius-md);
    background: rgba(12, 16, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-soft);
}

.feature-card img {
    border-radius: calc(var(--radius-md) - 0.5rem);
}

.expert-card {
    border-radius: var(--radius-md);
    background: rgba(8, 13, 27, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    padding: 2.5rem 2rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.expert-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.expert-card img {
    width: 110px;
    height: 110px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.newsletter-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 10% 20%, rgba(254, 222, 107, 0.12), transparent), radial-gradient(circle at 80% 30%, rgba(64, 224, 208, 0.18), transparent), rgba(9, 12, 24, 0.9);
}

.newsletter-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 60%);
    mix-blend-mode: screen;
}

.newsletter-panel form input {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(3, 7, 18, 0.65);
    color: #f4f7ff;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.newsletter-panel form input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.35);
    outline: none;
}

.accent-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: #f4f7ff;
}

.glow-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 2.5rem 0;
}

form .error-message {
    color: #ff7d67;
}

footer {
    background: rgba(2, 4, 10, 0.95);
    color: var(--color-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #40e0d0, #7c5dfa);
    border-radius: 999px;
}

::selection {
    background: rgba(64, 224, 208, 0.4);
    color: #030712;
}

@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -18px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 4rem 0;
    }
    .hero-spotlight {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-spotlight {
        padding: 2rem 1.25rem;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .section::before {
        opacity: 0.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}