:root {
    color-scheme: dark;
    --bg: #020203;
    --bg-strong: #07070b;
    --panel: rgba(17, 17, 24, 0.85);
    --panel-strong: rgba(21, 21, 30, 0.92);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.6);
    --accent-muted: rgba(255, 255, 255, 0.35);
    --primary-green: #90ff6a;
    --text: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-soft: rgba(255, 255, 255, 0.45);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.55);
    --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 16px 40px rgba(0, 0, 0, 0.35);
    --font-display: 'Urbanist', 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-brand: 'Bebas Neue', 'Urbanist', 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Urbanist', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.site-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(120% 95% at 50% 18%, rgba(32, 32, 48, 0.35), transparent 65%) #000000;
    animation: starfieldDrift 32s ease-in-out infinite;
}

.starfield__star {
    position: absolute;
    display: block;
    width: var(--size, 3px);
    height: var(--size, 3px);
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.45) 62%, rgba(255, 255, 255, 0) 100%);
    opacity: var(--opacity, 0.68);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
    clip-path: polygon(50% 0%, 61% 34%, 98% 34%, 68% 57%, 78% 100%, 50% 76%, 22% 100%, 32% 57%, 2% 34%, 39% 34%);
    transform-origin: 50% 58%;
    will-change: transform, opacity;
    animation: star-twinkle var(--twinkle-duration, 12s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
    transform: translate3d(0, 0, 0);
    transition: transform 0.5s ease, opacity 1.2s ease;
}

.site-shell > *:not(.starfield):not(.hero-gradient) {
    position: relative;
    z-index: 1;
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: var(--opacity, 0.7);
    }
    50% {
        opacity: calc(var(--opacity, 0.7) + 0.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .starfield__star {
        animation: none;
    }
}

.hero-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(144, 255, 106, 0.15), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(135, 245, 255, 0.16), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.08), transparent 55%),
        linear-gradient(180deg, rgba(2, 2, 3, 0.95), rgba(2, 2, 3, 1));
    z-index: -2;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(20px, 4vw, 48px);
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: clamp(4px, 0.8vw, 8px);
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    letter-spacing: 0.28em;
    line-height: 1;
    text-transform: none;
    text-rendering: optimizeLegibility;
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
    margin-left: 0;
}

.brand:hover {
    transform: translateY(-2px);
    letter-spacing: 0.32em;
}

.brand-text,
.brand-suffix {
    color: transparent;
    background: linear-gradient(110deg, #90ff6a 0%, #5de6ff 45%, #ac8bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-glyph {
    display: inline-flex;
    width: clamp(1.2rem, 2vw, 1.6rem);
    height: clamp(1.2rem, 2vw, 1.6rem);
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    align-self: center;
    transform: translateY(0.05em);
}

.brand-glyph::after {
    content: "";
    width: 60%;
    height: 60%;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: auto;
}

.site-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: transparent;
    color: var(--text);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.site-nav .nav-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.page {
    flex: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(80px, 12vh, 140px) clamp(18px, 4vw, 48px) 96px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    padding-top: clamp(8px, 3vh, 32px);
}

.hero__background {
    position: relative;
    width: 100%;
    max-width: min(640px, 74vw);
    aspect-ratio: 3 / 4;
    pointer-events: auto;
    z-index: 0;
    margin-left: 0;
    justify-self: start;
    align-self: start;
    overflow: hidden;
    border-radius: var(--radius-lg);
    animation: heroFloat 9s ease-in-out infinite;
    -webkit-mask-image: radial-gradient(ellipse at 50% 62%, rgba(0, 0, 0, 1) 32%, rgba(0, 0, 0, 0) 72%);
    mask-image: radial-gradient(ellipse at 50% 62%, rgba(0, 0, 0, 1) 32%, rgba(0, 0, 0, 0) 72%);
    -webkit-mask-size: 140% 140%;
    mask-size: 140% 140%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero__background::before {
    content: "";
    position: absolute;
    inset: -22% -20% -10%;
    background: radial-gradient(ellipse at 50% 4%, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.88) 30%, rgba(0, 0, 0, 0.46) 56%, rgba(0, 0, 0, 0) 78%);
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.94;
}

.hero__background::after {
    content: "";
    position: absolute;
    inset: -12%;
    background: radial-gradient(ellipse at 50% 58%, rgba(0, 0, 0, 0) 44%, rgba(4, 4, 10, 0.78) 70%, rgba(0, 0, 0, 0.99) 100%);
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.88;
    transition: opacity 0.6s ease;
}

.hero__background:hover::after {
    opacity: 1;
}

.hero__background canvas,
.hero__background video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    pointer-events: none;
}

#heroVideo {
    opacity: 0.45;
    mix-blend-mode: screen;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-logo-circle {
    width: clamp(50px, 7.2vw, 77px);
    height: clamp(50px, 7.2vw, 77px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.hero-logo-circle::after {
    content: "";
    width: 44%;
    height: 44%;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    opacity: 0.65;
}

.hero-logo-circle--cta {
    width: clamp(96px, 20vw, 150px);
    height: clamp(96px, 20vw, 150px);
    border-width: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.hero-logo-circle--cta::after {
    border-width: 3px;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.6vw, 28px);
    width: min(640px, 100%);
    align-items: center;
    text-align: center;
}

.hero__side {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
    width: 100%;
    max-width: 640px;
    justify-self: stretch;
    align-self: start;
}

.hero__cta-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    align-items: center;
}

.hero__cta-panel {
    position: relative;
    width: 100%;
    aspect-ratio: 20 / 11;
    border-radius: clamp(26px, 4.8vw, 38px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 16, 0.75);
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}

.hero__cta-panel::before {
    content: "";
    position: absolute;
    inset: -12%;
    background: radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.18), transparent 55%),
        radial-gradient(circle at 78% 65%, rgba(255, 255, 255, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.15));
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero__cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 14px);
    padding: clamp(16px, 3vw, 28px);
    min-height: clamp(150px, 20vw, 220px);
    width: 100%;
    transform: translateY(-1.25rem);
}

.hero__cta-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    opacity: 0.92;
    pointer-events: none;
}

.hero__cta-button {
    position: relative;
    z-index: 1;
    align-self: center;
}

.hero__cta-button .cta-button__label {
    font-family: 'Manrope', 'Space Grotesk', var(--font-head);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero__cta-button.loading {
    opacity: 0.85;
}

.hero__cta-button.active {
    background: linear-gradient(140deg, #ffffff, #d6ffe3);
}

.hero__cta-button.error {
    background: linear-gradient(140deg, #ff6b6b, #ff9f9f);
    color: #000;
}

.hero__eyebrow {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 6vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    font-weight: 800;
    text-transform: none;
    text-shadow: 0 32px 70px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.hero__title-word {
    display: inline-block;
    background: linear-gradient(120deg, #90ff6a 0%, #5de6ff 45%, #ac8bff 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero__glyph {
    display: inline-flex;
    width: 1.05em;
    height: 1.05em;
    margin-left: 0.06em;
    border-radius: 999px;
    border: 0.08em solid rgba(255, 255, 255, 0.75);
    align-items: center;
    justify-content: center;
    transform: translateY(0.05em);
}

.hero__glyph::after {
    content: "";
    width: 60%;
    height: 60%;
    border-radius: 999px;
    border: 0.08em solid rgba(255, 255, 255, 0.35);
}

.hero__title-word.is-transition {
    opacity: 0;
    transform: translateY(-12px);
}

.hero__body {
    margin: 0;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--text-muted);
    max-width: 520px;
    text-align: center;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    border-radius: 999px;
    background: #ffffff;
    color: #000;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__cta-button {
    min-width: clamp(170px, 36%, 240px);
    padding: 12px 22px;
    border: 5px solid #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.40);
    /* Lower the button ~1 inch on desktop, responsive on small screens */
    margin-top: clamp(24px, 6.5vw, 96px);
}

.cta-button__pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: buttonPulse 3s ease-in-out infinite;
    pointer-events: none;
}

.cta-button__label {
    position: relative;
    z-index: 1;
}

.cta-button.loading {
    color: #000;
    cursor: progress;
}

.cta-button.active {
    background: linear-gradient(140deg, #fff, #d6ffe3);
}

.cta-button.error {
    background: linear-gradient(140deg, #ff6b6b, #ff9f9f);
    color: #000;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 60px rgba(255, 255, 255, 0.16);
}

@keyframes heroFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -12px, 0) scale(1.01); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes starfieldDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 12px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes buttonPulse {
    0% { transform: scale(1); opacity: 0.8; }
    60% { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

@keyframes heroHeartbeat {
    0% { transform: scale(1); }
    28% { transform: scale(1.08); }
    45% { transform: scale(0.96); }
    65% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.hero-highlights {
    position: relative;
    overflow: hidden;
    padding: clamp(16px, 4vw, 26px) 0;
}

.highlights__marquee {
    display: inline-flex;
    align-items: center;
    gap: clamp(52px, 7vw, 96px);
    width: max-content;
    padding: 0 clamp(36px, 7vw, 64px);
    animation: highlightMarquee 42s linear infinite;
}

.highlights__marquee:hover {
    animation-play-state: paused;
}

@keyframes highlightMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.highlight-token {
    display: inline-flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 26px);
    padding: 0 clamp(12px, 3vw, 22px);
    white-space: nowrap;
}

.highlight-token__icon {
    width: clamp(40px, 4vw, 52px);
    height: clamp(40px, 4vw, 52px);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.highlight-token__icon::before {
    content: '';
    width: 100%;
    height: 100%;
    background-size: 78%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
}

.highlight-token__label {
    font-family: 'Space Grotesk', var(--font-head);
    font-size: clamp(1.3rem, 2.3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.highlight-token__meta {
    font-family: 'Manrope', var(--font-body);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.highlight-token--flower .highlight-token__icon {
    background: rgba(144, 255, 106, 0.22);
}

.highlight-token--flower .highlight-token__icon::before {
    background-image: url('assets/flower_of_life.png');
    background-size: 80%;
}

.highlight-token--vesica .highlight-token__icon {
    background: rgba(255, 166, 214, 0.22);
}

.highlight-token--vesica .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ff9dd6' stroke-width='5'%3E%3Ccircle cx='24' cy='32' r='18'/%3E%3Ccircle cx='40' cy='32' r='18'/%3E%3C/svg%3E");
}

.highlight-token--seed .highlight-token__icon {
    background: rgba(135, 245, 255, 0.2);
}

.highlight-token--seed .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2398ecff' stroke-width='4'%3E%3Ccircle cx='32' cy='18' r='10'/%3E%3Ccircle cx='18' cy='32' r='10'/%3E%3Ccircle cx='46' cy='32' r='10'/%3E%3Ccircle cx='32' cy='46' r='10'/%3E%3C/svg%3E");
    background-size: 78%;
}

.highlight-token--spiral .highlight-token__icon {
    background: rgba(255, 232, 150, 0.2);
}

.highlight-token--spiral .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffe27a' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M12 32a20 20 0 1 1 40 0 10 10 0 1 1-20 0 5 5 0 1 1 10 0'/%3E%3C/svg%3E");
}

.highlight-token--veil .highlight-token__icon {
    background: rgba(201, 190, 255, 0.22);
}

.highlight-token--veil .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23cbbcff' stroke-width='4'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3Cpolygon points='32,14 46,32 32,50 18,32'/%3E%3C/svg%3E");
    background-size: 82%;
}

.highlight-token--intel .highlight-token__icon {
    background: rgba(135, 245, 255, 0.18);
}

.highlight-token--intel .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2387f5ff' stroke-width='4'%3E%3Cpolygon points='32,8 52,24 44,48 20,48 12,24'/%3E%3Cline x1='32' y1='8' x2='32' y2='56'/%3E%3C/svg%3E");
}

.highlight-token--persona .highlight-token__icon {
    background: rgba(255, 208, 180, 0.18);
}

.highlight-token--persona .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffd0b4' stroke-width='4'%3E%3Cpolygon points='32,10 52,22 52,42 32,54 12,42 12,22'/%3E%3Ccircle cx='32' cy='32' r='10'/%3E%3C/svg%3E");
}

.highlight-token--bridge .highlight-token__icon {
    background: rgba(144, 255, 213, 0.2);
}

.highlight-token--bridge .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2390ffd5' stroke-width='4'%3E%3Cpolygon points='32,8 52,40 12,40'/%3E%3Cpolygon points='32,56 12,24 52,24'/%3E%3C/svg%3E");
}

.highlight-token--memory .highlight-token__icon {
    background: rgba(190, 190, 255, 0.18);
}

.highlight-token--memory .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23bebeff' stroke-width='4'%3E%3Ccircle cx='32' cy='32' r='20'/%3E%3Ccircle cx='32' cy='32' r='10'/%3E%3C/svg%3E");
}

.highlight-token--guardian .highlight-token__icon {
    background: rgba(255, 190, 140, 0.2);
}

.highlight-token--guardian .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffbe8c' stroke-width='4'%3E%3Cpolygon points='32,6 56,18 50,46 32,58 14,46 8,18'/%3E%3Cpolygon points='32,16 46,24 43,40 32,48 21,40 18,24'/%3E%3C/svg%3E");
}

.highlight-token--spark .highlight-token__icon {
    background: rgba(255, 200, 87, 0.2);
}

.highlight-token--spark .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffc857' stroke-width='4'%3E%3Cpath d='M32 6 L38 24 L56 30 L42 42 L46 60 L32 50 L18 60 L22 42 L8 30 L26 24 Z'/%3E%3C/svg%3E");
}

.highlight-token--pulse .highlight-token__icon {
    background: rgba(76, 175, 80, 0.2);
}

.highlight-token--pulse .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%234caf50' stroke-width='4'%3E%3Ccircle cx='32' cy='32' r='18' opacity='0.3'/%3E%3Ccircle cx='32' cy='32' r='12'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/svg%3E");
}

.highlight-token--loom .highlight-token__icon {
    background: rgba(156, 39, 176, 0.2);
}

.highlight-token--loom .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%239c27b0' stroke-width='4'%3E%3Cpath d='M32 12 L44 24 L44 44 L32 52 L20 44 L20 24 Z'/%3E%3Cline x1='20' y1='32' x2='44' y2='32'/%3E%3Cline x1='32' y1='24' x2='32' y2='52'/%3E%3C/svg%3E");
}

.highlight-token--aura .highlight-token__icon {
    background: rgba(255, 152, 0, 0.2);
}

.highlight-token--aura .highlight-token__icon::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ff9800' stroke-width='4'%3E%3Crect x='16' y='20' width='32' height='24' rx='4'/%3E%3Cline x1='32' y1='20' x2='32' y2='44'/%3E%3Cline x1='16' y1='32' x2='48' y2='32'/%3E%3Ccircle cx='32' cy='52' r='6'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
    .highlight-token__label {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }

    .highlight-token__meta {
        font-size: clamp(0.9rem, 2.6vw, 1.1rem);
    }
}

@media (max-width: 560px) {
    .highlight-token {
        gap: 10px;
    }

    .highlight-token__label {
        letter-spacing: 0.12em;
    }
}
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 620px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(2rem, 3vw, 2.6rem);
}

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

.use-cases__grid {
    display: grid;
    margin-top: 36px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.use-card {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.use-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
}

.use-card header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.use-card__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.use-card h3 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.4rem;
}

.use-card img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

.use-card__demo {
    margin-top: auto;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.use-card__demo:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.feature-accordion {
    margin-top: 36px;
    display: grid;
    gap: 14px;
}

.feature-accordion details {
    background: var(--panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 18px 22px;
    transition: border 0.25s ease;
}

.feature-accordion details[open] {
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-accordion summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
}

.feature-accordion summary::-webkit-details-marker { display: none; }

.feature-accordion summary span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

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

.callback {
    position: relative;
    border-radius: var(--radius-lg);
    padding: clamp(32px, 6vw, 48px);
    background: var(--panel-strong);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.callback__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 680px;
}

.callback__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.callback__form input,
.callback__form textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-size: 1rem;
    transition: border 0.2s ease, background 0.2s ease;
}

.callback__form input:focus,
.callback__form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.callback__privacy {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px clamp(18px, 4vw, 48px) 60px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.site-footer__links {
    display: flex;
    gap: 18px;
}

/* API status badge */
.api-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--text);
    font-size: 0.85rem;
}
.api-status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffcc00; /* pending */
}
.api-status--ok { border-color: rgba(117,255,163,0.5); }
.api-status--ok::before { background: #4dff88; box-shadow: 0 0 12px rgba(77,255,136,0.6); }
.api-status--down { border-color: rgba(255,120,120,0.5); }
.api-status--down::before { background: #ff6b6b; box-shadow: 0 0 12px rgba(255,107,107,0.6); }

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translate3d(-50%, 20px, 0);
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 14px 20px;
    border-radius: 999px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    font-weight: 500;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 999;
}

.toast.visible {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
}

/* Enforce mobile header overrides at end of file so they win the cascade */
@media (max-width: 1024px) {
    /* Keep logo centered; position menu button absolutely on right */
    .hero-header { justify-content: center !important; padding-left: clamp(12px, 4vw, 20px) !important; padding-right: clamp(12px, 4vw, 20px) !important; }
    .hero-header__nav { display: none !important; }
    .mobile-nav-toggle { display: inline-flex !important; }
    .hero-header__logo { margin-left: 0 !important; transform: none !important; }
    .hero-header__logo .hero-logo-circle { width: 36px; height: 36px; animation: none !important; }
    .mobile-nav { top: calc(36px + clamp(12px, 4vw, 16px)) !important; right: clamp(10px, 4vw, 16px) !important; }
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__background {
        justify-self: center;
        margin: 0 auto;
    }

    .hero__side {
        max-width: 720px;
    }

}

@media (max-width: 768px) {
    .site-header { padding: 14px clamp(12px, 5vw, 20px); }
    .site-nav { display: none; }
    .page { padding: clamp(8px, 2vh, 16px) clamp(10px, 4vw, 18px) 48px; gap: 28px; }
    .hero__side { gap: 14px; }
    .use-cases__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .site-footer { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 560px) {


    .hero { gap: 10px; padding-top: 0; margin-top: -6px; }
    .hero__content { gap: 12px; }
    .hero__cta-stack { gap: 6px; margin-top: -6px; }
    .hero__background { margin-top: -12px; }
    .page { padding-top: 4px; gap: 20px; }

    .hero__cta-button,
    .cta-secondary,
    .use-card__demo {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


.page--narrow {
    max-width: 960px;
    width: min(960px, 100%);
    gap: 72px;
    align-items: center;
    text-align: center;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: clamp(24px, 4vw, 48px);
    background: rgba(10, 10, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: clamp(28px, 5vw, 36px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(20px);
}

.content-section__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    letter-spacing: -0.03em;
    text-transform: none;
}

.content-section__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(14, 14, 22, 0.68);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.pricing-card--accent {
    border-color: rgba(144, 255, 106, 0.32);
    background: linear-gradient(150deg, rgba(144, 255, 106, 0.18), rgba(92, 231, 255, 0.12));
}

.pricing-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
}

.pricing-card__price {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-soft);
}

.pricing-card__price span {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text);
}

.pricing-card ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-card__cta {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    background: linear-gradient(140deg, #ffffff, #d6ffe3);
    color: #020203;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card__cta--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text);
}

.pricing-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.billing-status {
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
    min-height: 1.25rem;
}

.billing-status[data-state="error"] {
    color: #ff6b6b;
}

.billing-status[data-state="warning"] {
    color: #fec860;
}

.billing-status[data-state="info"] {
    color: #90ff6a;
}

.billing-portal-hint {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.auth-form {
    display: grid;
    gap: 18px;
    text-align: left;
    margin: 0 auto;
    width: min(480px, 100%);
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.auth-form input,
.auth-form select {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.auth-form__submit {
    margin-top: 12px;
    padding: 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(140deg, #ffffff, #d6ffe3);
    color: #020203;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.auth-form__hint {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-cta--active {
    border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 720px) {
    .page--narrow {
        gap: 48px;
    }

    .content-section {
        padding: 24px;
    }
}

@media (max-width: 820px) {
    .site-header {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .brand {
        margin-left: 0;
    }
    .site-nav {
        margin-left: 0;
    }
}

/* Mobile navigation */
.mobile-nav-toggle {
    display: none;
    position: absolute;
    right: clamp(12px, 5vw, 20px);
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 8px;
    pointer-events: auto;
    cursor: pointer;
    color: #fff;
}
.mobile-nav-toggle__icon { display: block; width: 24px; height: 16px; opacity: 0.9; }
.mobile-nav-toggle:focus-visible { outline: 2px solid rgba(255,255,255,0.6); border-radius: 6px; }
.mobile-nav {
    position: absolute;
    top: calc(clamp(18px, 4vw, 28px) + 44px);
    right: 8px;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(10,10,16,0.92);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.6);
    z-index: 30;
    pointer-events: auto;
}
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a { color: var(--text); }

/* Ensure dropdown never shows on desktop */
@media (min-width: 769px) {
    .mobile-nav { display: none !important; }
}

@media (max-width: 1024px) {
    .hero-header { justify-content: center; pointer-events: auto !important; }
    .hero-header__logo { animation: none; }
    .hero-header__logo .hero-logo-circle { width: 40px; height: 40px; animation: none; }
    .hero-header__nav { display: none; }
    .mobile-nav-toggle { display: inline-flex; }
}

/* Mobile hero adjustments */
@media (max-width: 560px) {
    .hero__title { font-size: clamp(2.2rem, 8.6vw, 3.0rem); letter-spacing: -0.02em; }
    .hero__title-word { white-space: nowrap; }
    .hero__glyph { width: 0.9em; height: 0.9em; margin-left: 0.04em; }
    .hero__cta-button { min-width: min(260px, 78%); padding: 10px 16px; border-width: 3px; font-size: 0.95rem; }
}


.hero-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 28px) clamp(20px, 5vw, 48px);
    pointer-events: none;
}
.hero-header__logo {
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
    animation: heroLogoSpin 24s linear infinite, heroLogoDrift 12s ease-in-out infinite;
    transform-origin: center;
}
.hero-header__logo .hero-logo-circle {
    animation: heroLogoPulse 6s ease-in-out infinite;
}
.hero-header__nav {
    position: absolute;
    right: clamp(20px, 6vw, 72px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 32px);
    font-size: 1rem;
    font-family: var(--font-body);
    pointer-events: auto;
}
.hero-header__nav a {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}
.hero-header__nav a:hover {
    color: var(--text);
    transform: translateY(-2px);
}
.hero-header__nav .nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    padding: 8px 20px;
    color: var(--text);
}

@keyframes heroLogoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes heroLogoGlitch {
    0%, 12%, 28%, 52%, 100% { opacity: 1; filter: none; transform: scale(1); }
    6% { opacity: 0.25; filter: blur(1.1px) saturate(1.45); transform: scale(1.06) translateY(-2px); }
    7% { opacity: 0.9; filter: none; transform: scale(1); }
    34% { opacity: 0.18; filter: blur(1.3px) saturate(1.6) hue-rotate(-10deg); transform: scale(1.04) translateX(1px); }
    35% { opacity: 1; filter: none; transform: scale(1); }
    58% { opacity: 0.3; filter: blur(0.9px) saturate(1.35) hue-rotate(12deg); transform: scale(0.97) translateY(1px); }
    59% { opacity: 1; filter: none; transform: scale(1); }
}

@keyframes heroLogoDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes heroLogoPulse {
    0%, 100% { filter: none; }
    40% { filter: drop-shadow(0 0 12px rgba(144, 255, 106, 0.4)); }
    60% { filter: drop-shadow(0 0 14px rgba(92, 231, 255, 0.35)); }
}

/* Demo End Modal Styles */
.demo-end-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.demo-end-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.demo-end-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.demo-end-modal__content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(144, 255, 106, 0.3);
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(144, 255, 106, 0.1);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-end-modal__title {
    font-size: 2rem;
    font-weight: 700;
    color: #90ff6a;
    margin: 0 0 20px;
    text-align: center;
    font-family: var(--font-display, sans-serif);
}

.demo-end-modal__text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px;
    text-align: center;
}

.demo-end-modal__text strong {
    color: #90ff6a;
}

.demo-end-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.demo-end-modal__button {
    flex: 1;
    min-width: 140px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.demo-end-modal__button--primary {
    background: linear-gradient(135deg, #90ff6a 0%, #5ce7ff 100%);
    color: #0f0f1e;
    border: none;
}

.demo-end-modal__button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(144, 255, 106, 0.4);
}

.demo-end-modal__button--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.demo-end-modal__button--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Blocked Button State */
.cta-button.blocked {
    background: rgba(255, 68, 68, 0.15) !important;
    border-color: rgba(255, 68, 68, 0.5) !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.cta-button.blocked .cta-button__pulse {
    display: none !important;
}

.cta-button.blocked:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .demo-end-modal__content {
        padding: 32px 24px;
    }

    .demo-end-modal__title {
        font-size: 1.75rem;
    }

    .demo-end-modal__text {
        font-size: 1rem;
    }

    .demo-end-modal__actions {
        flex-direction: column;
    }

    .demo-end-modal__button {
        width: 100%;
    }
}

/* ============================================================ */
/* Enterprise Authentication Styles */
/* ============================================================ */

/* Auth Form Enhancements */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.auth-form label {
    display: block;
    margin-bottom: 1.5rem;
}

.auth-form label span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(138, 97, 255, 0.1);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.auth-form small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-form__submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(138, 97, 255, 0.3);
}

.auth-form__submit:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-form__hint {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-form__hint a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-form__hint a:hover {
    color: var(--secondary-color);
}

/* ============================================================ */
/* Dashboard Styles */
/* ============================================================ */

.site-header--dashboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-logo img {
    height: 40px;
}

.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard__header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.dashboard__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.dashboard__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Usage Stats */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.usage-stat {
    text-align: center;
}

.usage-stat__value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.usage-stat__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.usage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0 0.5rem;
}

.usage-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.5s ease;
}

.usage-stat__limit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.action-button__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.action-button__text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Subscription Info */
.subscription-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.subscription-info__label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.subscription-info__value {
    font-weight: 600;
    color: var(--text-primary);
}

.subscription-info__value--active {
    color: #4caf50;
}

.subscription-info__value--inactive {
    color: #f44336;
}

.subscription-cta {
    background: rgba(138, 97, 255, 0.1);
    border: 1px solid rgba(138, 97, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.subscription-cta p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu__name {
    font-weight: 500;
    color: var(--text-primary);
}

.user-menu__link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-menu__link:hover {
    color: var(--primary-color);
}

/* ============================================================ */
/* Voice Chat Modal */
/* ============================================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal__close:hover {
    color: var(--text-primary);
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* Voice Chat */
.voice-chat {
    text-align: center;
}

.voice-chat__status {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.voice-chat__status--error {
    color: #f44336;
}

.voice-chat__status--warning {
    color: #ff9800;
}

.voice-chat__controls {
    margin-bottom: 2rem;
}

.voice-chat__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-chat__button--start {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.voice-chat__button--start:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.voice-chat__button--end {
    background: linear-gradient(135deg, #f44336, #e91e63);
    color: white;
}

.voice-chat__button--end:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(244, 67, 54, 0.3);
}

.voice-chat__icon {
    font-size: 1.25rem;
}

.voice-chat__timer {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
}

/* ============================================================ */
/* Toast Notifications */
/* ============================================================ */

.auth-toast,
.dashboard-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.auth-toast--visible,
.dashboard-toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-toast--error {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    color: #ff6b6b;
}

.auth-toast--success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #66d66d;
}

.auth-toast--info {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
    color: #64b5f6;
}

/* ============================================================ */
/* Responsive Design */
/* ============================================================ */

@media (max-width: 768px) {
    .dashboard {
        padding: 1rem;
    }

    .dashboard__title {
        font-size: 2rem;
    }

    .dashboard__card {
        padding: 1.5rem;
    }

    .usage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .subscription-info {
        flex-direction: column;
        gap: 1rem;
    }

    .modal__content {
        padding: 1.5rem;
    }

    .auth-toast,
    .dashboard-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}
