:root {
    --bg-primary: #030712;
    --bg-secondary: #070d1d;
    --bg-panel: rgba(14, 21, 41, 0.75);
    --bg-panel-strong: rgba(22, 32, 62, 0.92);
    --border-glass: rgba(255, 255, 255, 0.12);
    --text-primary: #f8f9ff;
    --text-muted: #b2b8d8;
    --accent: #ffb300;
    --accent-alt: #5ce1e6;
    --accent-dark: #7a5dfa;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 20px 60px rgba(5, 10, 20, 0.35);
    --shadow-card: 0 25px 55px rgba(8, 12, 25, 0.45);
    --gradient-primary: radial-gradient(circle at 10% 20%, rgba(255, 179, 0, 0.35), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(92, 225, 230, 0.45), transparent 50%),
        radial-gradient(circle at 50% 120%, rgba(122, 93, 250, 0.65), transparent 60%),
        #030712;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    background: var(--gradient-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.04), transparent 45%);
    pointer-events: none;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(transparent 95%, rgba(255, 255, 255, 0.03) 100%),
        linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.03) 100%);
    background-size: 220px 220px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
}

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

main {
    width: 100%;
}

section {
    padding: 4rem 0;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.glass {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-soft);
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1.3rem 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.logo-title h1 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.06em;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
    color: var(--text-primary);
}

.nav-cta .btn {
    padding: 0.55rem 1.3rem;
    font-size: 0.85rem;
}

/* Buttons */
.btn,
.hero-btn,
.big-btn,
.contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 1.9rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #050711;
    background: linear-gradient(135deg, var(--accent), #ffa726);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(255, 179, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn.primary {
    background: linear-gradient(120deg, #ffc857, var(--accent));
    color: #1c1305;
}

.btn.ghost,
.hero-btn.ghost,
.big-btn.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.btn:hover,
.hero-btn:hover,
.big-btn:hover,
.contact-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 35px rgba(255, 179, 0, 0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.8rem 0 2.5rem 0;
}

/* Typography helpers */
.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.9rem 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-alt), var(--accent-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero */
.hero-section {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero-section--compact {
    padding: 4rem 0 2.5rem;
}

.hero-bg-animated {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 179, 0, 0.25), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(92, 225, 230, 0.3), transparent 45%),
        radial-gradient(circle at 50% 120%, rgba(122, 93, 250, 0.4), transparent 55%);
    filter: blur(60px);
    opacity: 0.6;
    animation: heroGlow 14s ease-in-out infinite alternate;
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.hero-left h2 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    margin: 0 0 1.2rem 0;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 540px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-card {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-card__header h3 {
    margin: 0.2rem 0 0 0;
    font-size: 1.6rem;
}

.hero-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-list li {
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-list strong {
    display: block;
    font-size: 1rem;
}

.hero-list span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.link-arrow {
    font-size: 0.95rem;
    color: var(--accent-alt);
}

/* Sections */
.section-heading {
    text-align: left;
    margin-bottom: 3rem;
}

.features-section .section-heading {
    max-width: 760px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0.3rem 0;
}

.section-subtitle {
    color: var(--text-muted);
    margin: 0;
}

#ains-pricing .section-title,
#custom-quote .section-title {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.8rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 280px;
    transition: transform 0.3s ease, border 0.3s ease;
}

.feature-card img {
    width: 56px;
    height: 56px;
}

.feature-card h4 {
    margin: 0;
    font-size: 1.3rem;
}

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

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.about-section {
    padding: 3.5rem;
    margin-top: 1rem;
    text-align: center;
}

.about-highlight {
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-grid div {
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.contact-section {
    margin-top: 2rem;
    padding: 3.5rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 3.2rem 1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 1rem;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.input-group textarea {
    min-height: 140px;
}

.input-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    opacity: 0.65;
}

.input-icon img {
    filter: invert(73%) sepia(8%) saturate(692%) hue-rotate(196deg) brightness(108%) contrast(87%);
}

#formMessage {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-social img {
    width: 26px;
    height: 26px;
    filter: brightness(0) invert(1);
}

/* Intro overlay */
#intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 20% 20%, rgba(255, 179, 0, 0.35), rgba(5, 7, 18, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.8s ease;
    opacity: 1;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-shell {
    position: relative;
    width: min(900px, 90vw);
    min-height: 360px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    background: rgba(5, 7, 18, 0.75);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.5rem;
    overflow: hidden;
}

.intro-decoration {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.intro-decoration--one {
    background: var(--accent-alt);
    top: -80px;
    left: -80px;
}

.intro-decoration--two {
    background: var(--accent);
    bottom: -100px;
    right: -60px;
}

.intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.intro-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
}

.intro-content h2 {
    margin: 0;
    font-size: 2rem;
}

.intro-sub {
    color: var(--text-muted);
    margin: 0;
}

.intro-progress {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.intro-progress__label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.intro-progress__track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.intro-progress__track .progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    border-radius: 999px;
}

.intro-3d {
    position: relative;
    width: 100%;
    min-height: 240px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-skip {
    align-self: flex-start;
    margin-top: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
}

/* Scroll reveal support */
.pre-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(.23,1.02,.32,1);
}

.visible-animate {
    opacity: 1 !important;
    transform: none !important;
}

/* Quote builder */
#custom-quote .quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

#custom-quote .quote-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem;
    font-size: 0.95rem;
}

#custom-quote h4 {
    margin-top: 0;
}

#custom-quote label.quote-option {
    display: block;
    margin: 0.4rem 0;
    cursor: pointer;
}

#custom-quote input[type="radio"],
#custom-quote input[type="checkbox"] {
    margin-right: 0.4rem;
}

#custom-quote input[type="text"],
#custom-quote input[type="email"],
#custom-quote input[type="number"] {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 0.65rem 0.75rem;
}

#custom-quote .total-block {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.2), rgba(92, 225, 230, 0.15));
}

#custom-quote .grand-total {
    font-size: 1.3rem;
    font-weight: 700;
}

#custom-quote .breakdown {
    white-space: pre-line;
    max-height: 180px;
    overflow: auto;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.25);
}

#ainsRadioGroup.ains-disabled {
    opacity: 0.45;
    position: relative;
}

#ainsRadioGroup.ains-disabled::after {
    content: "Custom points active";
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    background: var(--accent);
    color: #1f1402;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes heroGlow {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-40px, 30px, 0) scale(1.1); }
}

@keyframes subtleShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.btn-shake {
    animation: subtleShake 0.55s ease;
}

/* Responsive */
@media (max-width: 900px) {
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .intro-shell {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .intro-chip,
    .intro-skip {
        align-self: center;
    }
    .intro-progress__label {
        flex-direction: column;
        gap: 0.2rem;
        text-align: left;
    }
}

@media (max-width: 600px) {
    section {
        padding: 3rem 0;
    }
    .container {
        width: min(100%, 92vw);
    }
    .contact-section,
    .about-section {
        padding: 2.5rem 1.4rem;
    }
    .btn,
    .hero-btn,
    .big-btn,
    .contact-btn {
        width: 100%;
        text-align: center;
    }
}
