:root {
    color-scheme: dark;
    --background: #09020f;
    --surface: rgba(18, 8, 30, 0.75);
    --surface-strong: rgba(24, 10, 40, 0.92);
    --accent: #ff00aa;
    --accent-soft: #e91e63;
    --gold: #d4af37;
    --teal: #13b9c8;
    --purple: #4e217b;
    --text: #f8f5ff;
    --muted: #c3b0d8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Cairo', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 25% 20%, rgba(255, 0, 170, 0.14), transparent 28%),
                radial-gradient(circle at 82% 15%, rgba(19, 185, 200, 0.14), transparent 22%),
                radial-gradient(circle at 30% 85%, rgba(212, 175, 55, 0.08), transparent 30%),
                var(--background);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.04), transparent 18%),
                radial-gradient(circle at 50% 90%, rgba(255, 0, 170, 0.06), transparent 28%);
    pointer-events: none;
    z-index: 0;
}

#fractalCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    cursor: pointer;
}

.heroNote {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    max-width: 28rem;
}

.ui {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: clamp(30px, 4vw, 60px) clamp(20px, 4vw, 48px) 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.centerTitle {
    position: fixed;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    font-size: clamp(80px, 16vw, 160px);
    line-height: 0.9;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.06);
    filter: blur(0.6px);
    white-space: nowrap;
}

.hero {
    position: relative;
    padding: clamp(34px, 4.6vw, 56px) clamp(28px, 4vw, 48px);
    border-radius: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
    min-height: 68vh;
    display: grid;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(255, 0, 170, 0.18), transparent 24%),
                radial-gradient(circle at bottom left, rgba(19, 185, 200, 0.14), transparent 24%);
    pointer-events: none;
}

.eyebrow {
    display: inline-block;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-family: 'Scheherazade', 'Cairo', Georgia, serif;
    font-size: clamp(3rem, 5.6vw, 5.2rem);
    line-height: 1.02;
    max-width: 10ch;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 1s ease 0.45s, transform 1s ease 0.45s;
}

.heroVisuals {
    position: relative;
    margin: 28px 0 0;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1s ease 0.6s, transform 1s ease 0.6s;
}

.heroActions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s ease 0.75s, transform 1s ease 0.75s;
}

body.is-ready .eyebrow,
body.is-ready .hero h1,
body.is-ready .heroVisuals,
body.is-ready .heroActions {
    opacity: 1;
    transform: translateY(0);
}

.heroVisuals__item {
    display: inline-flex;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.heroVisuals__item::before,
.heroVisuals__item::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.heroVisuals__item.item-1::before {
    inset: 18px;
    background: rgba(255, 0, 170, 0.6);
}

.heroVisuals__item.item-1::after {
    width: 18px;
    height: 18px;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.heroVisuals__item.item-2::before {
    inset: 10px;
    background: radial-gradient(circle at 30% 30%, rgba(19, 185, 200, 0.8), transparent 50%);
}

.heroVisuals__item.item-2::after {
    width: 44px;
    height: 44px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(212, 175, 55, 0.75);
}

.heroVisuals__item.item-3::before {
    inset: 12px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.75), rgba(78, 33, 123, 0.55));
    transform: rotate(15deg);
}

.heroVisuals__item.item-3::after {
    width: 16px;
    height: 16px;
    right: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.88);
}

.heroVisuals__item {
    animation: pulseVisual 6s ease-in-out infinite;
}

.heroVisuals__item.item-2 {
    animation-delay: 1s;
}

.heroVisuals__item.item-3 {
    animation-delay: 2s;
}

@keyframes pulseVisual {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.95; }
    50% { transform: translateY(-8px) scale(1.03); opacity: 1; }
}

.contactFooter {
    margin-top: 42px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 720px;
}

.contactCopy {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    min-width: 160px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(255, 0, 170, 0.18), rgba(233, 30, 99, 0.12));
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.pill:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 0, 170, 0.26), rgba(233, 30, 99, 0.18));
    border-color: rgba(255, 255, 255, 0.32);
}

.pill.cta {
    letter-spacing: 0.2em;
}

.brandMark {
    width: 58px;
    height: 58px;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.24), transparent 28%),
                linear-gradient(135deg, #ff00aa 0%, #e91e63 33%, #13b9c8 66%, #f7c57e 100%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.brandMark__ring {
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.brandMark__icon {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.brandMark__icon::before,
.brandMark__icon::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.84);
}

.brandMark__icon::before {
    inset: 10px;
}

.brandMark__icon::after {
    width: 8px;
    height: 8px;
    top: 8px;
    right: 8px;
}

.section {
    margin-top: 40px;
    padding: 34px;
    border-radius: 28px;
    background: rgba(16, 6, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.sectionTitle {
    font-size: 0.84rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.brief {
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.brief p {
    color: var(--muted);
    line-height: 1.9;
}

.brief .contactCopy {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 720px) {
    .heroActions {
        flex-direction: column;
        align-items: stretch;
    }

    .brandMark {
        margin-left: auto;
    }
}

@media (max-width: 720px) {
    .ui {
        padding: 28px 18px 60px;
    }

    .hero {
        padding: 28px 20px;
    }

    .heroActions, .contactActions {
        flex-direction: column;
        align-items: stretch;
    }
}

.glitch::before {
    transform: translate(1px, 0);
    clip-path: inset(0 0 60% 0);
    animation: titleGlitch 2.4s infinite steps(2, end);
}

.glitch::after {
    transform: translate(-1px, 0);
    clip-path: inset(55% 0 0 0);
    animation: titleGlitch 1.9s infinite steps(2, end);
}

@supports not (clip-path: inset(10% 10% 10% 10%)) {
    .glitch::before,
    .glitch::after {
        display: none;
    }
    .glitch {
        text-shadow: 1px 0 rgba(255, 0, 255, 0.35), -1px 0 rgba(0, 255, 255, 0.25);
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero,
    .section,
    .contactBubble {
        background: rgba(0, 0, 0, 0.78);
    }
}

@keyframes titleGlitch {
    0% { opacity: 0.25; }
    10% { opacity: 0.9; transform: translate(2px, -1px); }
    12% { transform: translate(-2px, 1px); }
    14% { transform: translate(1px, 0); }
    50% { opacity: 0.35; }
    55% { opacity: 0.95; transform: translate(-1px, 0); }
    60% { transform: translate(0, 0); }
    100% { opacity: 0.25; }
}
