/* Layout Variables */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --cta-gap: clamp(3rem, 5vw, 6rem);
    --badge-gap: clamp(2rem, 4vw, 4rem);
}

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

body, html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--bg-color);
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    color: var(--text-color);
}

body {
    min-height: 100vh;
}

/* Theme Switcher Styles */
.theme-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center; /* Center vertically */
    gap: 2px;
    padding: 4px;
    background: var(--switcher-bg);
    border: 1px solid var(--switcher-border);
    border-radius: 9999px; /* Pill shape */
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    
    /* Circle-to-Pill Animation */
    width: 38px;
    height: 38px;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.5s ease,
                border-color 0.5s ease;
}

.theme-switcher.expanded {
    width: 98px; /* 3 buttons of 28px + gaps + padding */
}

/* Language Switcher Styles */
.lang-switcher {
    position: fixed;
    top: 30px;
    right: 76px; /* Position to the left of theme switcher (30px + 38px + 8px gap) */
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: var(--switcher-bg);
    border: 1px solid var(--switcher-border);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    animation: fadeIn 2s ease-out 0.3s forwards;
    
    /* Circle-to-Pill Animation (same as theme switcher) */
    width: 38px;
    height: 38px;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                right 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.5s ease,
                border-color 0.5s ease;
}

.lang-switcher.expanded {
    width: 98px; /* 3 buttons of 28px + gaps + padding */
}

/* Push language switcher left when theme switcher expands */
.theme-switcher.expanded ~ .lang-switcher {
    right: 136px; /* 76px + 60px (theme expansion from 38px to 98px) */
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.lang-btn.active {
    /* Default (Collapsed): Muted text, no background */
    color: var(--text-muted);
    background: transparent;
    order: -1; /* Always put active element first */
}

/* Expanded State: Highlight the active language */
.lang-switcher.expanded .lang-btn.active {
    color: var(--switcher-active-text);
    background: var(--switcher-active-bg);
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.5s ease, background-color 0.5s ease;
    flex-shrink: 0; /* Prevent shrinking */
}

.theme-btn.active {
    /* Default (Collapsed): Muted text, no background */
    color: var(--text-muted);
    background: transparent;
    order: -1; /* Always put active element first */
}

/* Expanded State: Highlight the active theme */
.theme-switcher.expanded .theme-btn.active {
    color: var(--switcher-active-text);
    background: var(--switcher-active-bg);
}

/* Only apply hover styles on devices that actually support hover */
@media (hover: hover) {
    .theme-switcher:hover {
        width: 98px; /* 3 buttons of 28px + gaps + padding */
    }

    .lang-switcher:hover {
        width: 98px; /* 3 buttons of 28px + gaps + padding */
    }

    .theme-switcher:hover ~ .lang-switcher {
        right: 136px; /* 76px + 60px (theme expansion from 38px to 98px) */
    }

    .lang-switcher:hover .lang-btn.active {
        color: var(--switcher-active-text);
        background: var(--switcher-active-bg);
    }

    .theme-switcher:hover .theme-btn.active {
        color: var(--switcher-active-text);
        background: var(--switcher-active-bg);
    }

    .lang-btn:hover {
        color: var(--accent-color);
    }

    .theme-btn:hover {
        color: var(--accent-color);
        background: transparent;
    }
}

/* Override hover push for small screens (must come after main hover block) */
@media (hover: hover) and (max-width: 600px) {
    .theme-switcher:hover ~ .lang-switcher {
        right: 119px; /* Match expanded state for consistency */
    }
}

#canvas-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Logo link wrapper - remove mobile tap highlight */
a:has(.top-logo) {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.top-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    height: 60px; /* Increased size to match app */
    width: auto;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease; /* Ensure smooth transition for JS update */
    animation: fadeIn 2s ease-out forwards;
}

.logo-spin-in {
  opacity: 0;
  transform: rotate(-180deg);
  transform-origin: 50% 50%;
  animation: logoFadeRotate 900ms forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

@keyframes logoFadeRotate {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

.content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
    width: 100%;
    padding: clamp(8rem, 13vh, 10rem) 1.5rem clamp(3rem, 8vh, 5rem);
    pointer-events: none;
}

.site-footer {
    position: relative;
    width: 100%;
    padding: clamp(3rem, 6vw, 4.5rem) 1.5rem 2rem;
    color: var(--text-secondary);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    animation: fadeIn 2s ease-out 1.8s both;
}

.site-footer-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: clamp(1.6rem, 3vw, 2.25rem);
    border-top: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: minmax(260px, 1.65fr) repeat(3, minmax(120px, 0.7fr));
    gap: clamp(1.75rem, 4vw, 3.5rem);
}

.footer-brand {
    max-width: 430px;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
}

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.footer-logo {
    display: block;
    width: auto;
    height: 34px;
}

.footer-logo-light {
    display: none;
}

[data-theme="light"] .footer-logo-dark {
    display: none;
}

[data-theme="light"] .footer-logo-light {
    display: block;
}

.footer-brand-name {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand-line {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 400;
}

.footer-supporting-line {
    margin-top: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 300;
}

.footer-column {
    min-width: 0;
}

.footer-column-title {
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-link-list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-link:hover,
.footer-brand-link:hover {
    color: var(--accent-color);
}

.footer-link:focus-visible,
.footer-brand-link:focus-visible,
.social-links a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    pointer-events: auto;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-surface);
    opacity: 0.86;
    transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.social-links a:hover {
    opacity: 1;
    border-color: var(--accent-color);
    background: var(--glass-surface-hover);
    transform: translateY(-2px);
}

.social-links img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: var(--icon-filter);
    opacity: 0.94;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.social-links a:hover img {
    opacity: 1;
    filter: var(--icon-hover-filter);
}

.footer-bottom {
    width: 100%;
    max-width: 1100px;
    margin: clamp(1.5rem, 3vw, 2rem) auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.site-footer .copyright {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.5;
}

.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;
}

@media (max-width: 900px) {
    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile: Stack them centered */
@media (max-width: 600px) {
    .site-footer {
        padding: 2.75rem 1.25rem 1.75rem;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-link-list {
        gap: 0.7rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
    }
    /* Adjust top logo and switchers for mobile */
    .theme-switcher {
        top: 20px;
        right: 20px;
        transform: scale(0.9);
    }
    .lang-switcher {
        top: 20px;
        right: 62px;
        transform: scale(0.9);
    }

    /* Reduce gap between switchers when theme expands on small screens */
    .theme-switcher.expanded ~ .lang-switcher {
        right: 116px;
    }
}


.hero-section,
.explanation-section,
.benefits-section,
.trust-section,
.cta-section {
    width: 100%;
    max-width: 1100px;
    pointer-events: auto;
}

.hero-section {
    min-height: calc(100vh - clamp(8rem, 13vh, 10rem));
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(clamp(-4.5rem, -6vh, -2.5rem));
}

/* Enable pointer events for interactive elements */
#brand-container, #interaction-container {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

#brand-container {
    text-align: center;
    width: 100%;
    max-width: 1040px; /* Constrain width to force break earlier */
    padding: 0 2rem;   /* Ensure text doesn't touch edges */
}

.hero-badges {
    opacity: 0;
    animation: fadeIn 2s ease-out 1.4s forwards;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: var(--badge-gap, clamp(2rem, 4vw, 4rem)); /* Fallback added */
}

/* Backed By Badge */
.backed-by-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Reduced from 10px */
    padding: 6px 14px;
    border: 1px solid var(--badge-border);
    border-radius: 9999px;
    background: var(--badge-bg);
    backdrop-filter: blur(4px);
    transition: background-color 0.5s ease,
                border-color 0.5s ease,
                transform 0.3s ease;
}

/* Only apply hover on devices that support hover (not touch) */
@media (hover: hover) {
    .backed-by-badge:hover {
        border-color: var(--badge-hover-border);
        background: var(--badge-hover-bg);
        transform: translateY(-1px);
    }
}

/* Touch-active class is controlled by JS with a 3-second timer */
.backed-by-badge.touch-active {
    border-color: var(--badge-hover-border);
    background: var(--badge-hover-bg);
    transform: translateY(-1px);
}

.backed-text,
.status-badge {
    font-size: 0.75rem;
    color: var(--text-secondary); /* Replaced #94a3b8 */
    font-family: monospace;
    /* text-transform: uppercase; */
    letter-spacing: 0.05em;
    font-weight: 500;
}

.status-badge {
    color: var(--text-color);
    background: rgba(59, 130, 246, 0.08);
}

[data-theme="light"] .status-badge {
    background: rgba(37, 99, 235, 0.08);
}

.backed-logo {
    height: 20.5px;
    width: auto;
    border-radius: 2px;
    transition: filter 0.5s ease;
    vertical-align: middle;
    margin-top: 2px; /* Fine-tune alignment with text */
    margin-right: -8px; /* Fine-tune alignment with text */
    opacity: 0.8;
}

html[lang="eu"] .backed-by-badge {
    gap: 2px;
}

html[lang="eu"] .backed-logo {
    margin-right: -3px;
}

/* Dark mode (default): invert black logo to white */
.backed-logo {
    filter: invert(1);
}

/* Light mode: show original black logo */
[data-theme="light"] .backed-logo {
    filter: none;
}

.hero-title {
    /* Use clamp for smooth scaling: min 2rem, preferred 5vw, max 3rem */
    font-size: clamp(2.2rem, 5.4vw, 4.7rem);
    font-weight: 200;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    line-height: 1.05;
    /* Prefer even line lengths when wrapping (helps avoid orphaned short words like “AI.”) */
    text-wrap: balance;
    background: linear-gradient(to right, var(--gradient-text-start), var(--gradient-text-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* Start invisible */
    animation: fadeIn 2s ease-out 0.2s forwards;
    transition: letter-spacing 0.8s ease;
}

.mobile-break {
    display: none;
}

.tagline {
    opacity: 0; /* Start invisible */
    animation: fadeIn 2s ease-out 0.8s forwards;
    max-width: 850px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 1.4vw, 1.2rem);
    line-height: 1.75;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: var(--text-muted); /* Replaced #64748b */
    font-family: monospace;
}

.section-copy {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(1.35rem, 2.7vw, 2rem) clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: var(--glass-surface);
    box-shadow: var(--glass-shadow);
    color: var(--text-secondary);
    font-family: monospace;
    font-size: clamp(0.86rem, 1.1vw, 0.98rem);
    line-height: 1.75;
    text-align: center;
    contain: paint;
    transition: background-color 140ms ease,
                border-color 140ms ease,
                transform 140ms ease;
}

.section-copy p:first-child {
    color: var(--text-color);
    font-size: clamp(0.9rem, 1.15vw, 1.02rem);
    font-weight: 500;
}

.section-copy p + p {
    margin-top: 0.85rem;
    color: var(--text-muted);
}

.benefits-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}

.benefit-card {
    min-height: 260px;
    padding: clamp(1.35rem, 2.1vw, 1.8rem);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-surface);
    box-shadow: var(--glass-shadow);
    contain: paint;
    transition: background-color 140ms ease,
                border-color 140ms ease,
                transform 140ms ease,
                box-shadow 140ms ease;
}

.benefit-card h3 {
    margin-bottom: 1.1rem;
    color: var(--text-color);
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    line-height: 1.35;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.045em;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.benefit-icon svg {
    stroke-width: 1.8;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.85;
    font-weight: 300;
}

@media (hover: hover) {
    .section-copy:hover {
        border-color: var(--accent-color);
        background: var(--glass-surface-hover);
        transform: translateY(-1px);
    }

    .benefit-card:hover {
        border-color: var(--accent-color);
        background: var(--glass-surface-hover);
        transform: translateY(-2px);
    }
}

.trust-section {
    max-width: 900px;
    color: var(--text-muted);
    font-family: monospace;
    font-size: clamp(0.82rem, 1.1vw, 0.95rem);
    line-height: 1.8;
    text-align: center;
}

.cta-section {
    max-width: 1100px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Interaction container positioning */
#interaction-container {
    position: relative; /* Changed from absolute to flow naturally */
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 220px;
    align-items: center;
}

/* Join Beta Chip (Button) */
/* Copied from .backed-by-badge with modifications */
.join-beta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 12px 24px; /* Slightly larger padding for button feel */
    border: 1px solid var(--badge-border);
    border-radius: 9999px;
    background: var(--badge-bg);
    backdrop-filter: blur(4px);
    
    /* Text Styles (Merged from .backed-text) */
    font-size: 0.75rem;
    color: var(--text-secondary); /* Replaced #94a3b8 */
    font-family: monospace;
    letter-spacing: 0.1rem;
    font-weight: 500;
    text-align: center;
    
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 2.0s forwards;
    
    transition: transform 0.3s ease,
                background-color 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease;
}

.waitlist-disabled {
    cursor: default;
}

.waitlist-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid var(--badge-border);
    border-radius: 9999px;
    background: var(--badge-bg);
    backdrop-filter: blur(4px);
    
    font-size: 0.75rem;
    color: var(--text-secondary); /* Replaced #94a3b8 */
    font-family: monospace;
    letter-spacing: 0.1rem;
    font-weight: 500;
    
    opacity: 0;
    animation: fadeIn 2s ease-in-out 2.0s forwards;
    
    transition: background-color 0.5s ease,
                border-color 0.5s ease,
                color 0.5s ease;
}

.status-line {
    max-width: 820px;
    margin: 1.25rem auto 0;
    color: var(--text-muted);
    font-family: monospace;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    line-height: 1.75;
    text-align: center;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 2.25s forwards;
    padding: 0 1rem;
}

.join-beta-chip:hover {
    color: var(--text-color);
    background: var(--badge-hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.waitlist-disabled:hover {
    transform: translateY(-1px);
}

.join-beta-chip:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Waitlist Form */
#waitlist-form {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
    width: min(100%, 340px);
    position: absolute; /* Stack on top of hint */
}

#waitlist-form.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.input-group {
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--badge-border); /* Replaced #334155 */
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: monospace;
    font-size: 0.9rem;
    padding: 10px 0;
    outline: none;
}

.input-group input::placeholder {
    color: var(--text-muted); /* Replaced #334155 */
}

.input-group button {
    background: transparent;
    border: none;
    color: var(--text-muted); /* Replaced #334155 */
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group button:hover {
    color: var(--accent-color);
}

/* Autofill Fix for Dark Mode */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-color) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-color);
}

.role-row {
    width: 100%;
    border-bottom: 1px solid var(--badge-border);
    margin-top: 4px;
    position: relative; /* For arrow positioning */
    /* Animation props */
    transition: all 0.3s ease;
    transform-origin: top;
}

.role-row select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.8rem;
    padding: 8px 0;
    padding-right: 24px; /* Space for arrow */
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 0; /* Reset for iOS */
}

/* Custom Arrow */
.role-row::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    /* Chevron Down Icon (Lucide style) - Color #64748b matches text-muted in dark mode */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.7;
}

.role-row:hover::after {
    opacity: 1;
}

.role-row select:focus,
.role-row select:active {
    color: var(--text-color);
}

.role-row select option {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.other-role-row {
    width: 100%;
    border-bottom: 1px solid var(--badge-border);
    margin-top: 4px;
    transition: all 0.3s ease;
}

.other-role-row.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-5px);
}

.other-role-row input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: monospace;
    font-size: 0.8rem;
    padding: 8px 0;
    outline: none;
}

.other-role-row input::placeholder {
    color: var(--text-muted);
}

.form-helper {
    margin-top: 8px;
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: monospace;
    opacity: 0.6;
    text-align: left;
}

.form-message {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted); /* Replaced #64748b */
    font-family: monospace;
    text-align: center;
    min-height: 1.2em;
}

.form-message-success {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* State: Input Active (Logo moves up) */
body.input-mode #brand-container {
    transform: translateY(-24px);
}

body.input-mode .hero-title {
    letter-spacing: 0.04em;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Mobile adjustments - Trigger earlier (was 768px) */
@media (max-width: 900px) {
    .content {
        gap: clamp(2.4rem, 8vw, 4rem);
        padding: 7rem 1rem 3rem;
    }

    .hero-section {
        min-height: calc(100vh - 7rem);
        transform: translateY(-2rem);
    }

    .hero-title {
        /* Allow clamp to handle font-size, just adjust spacing/line-height */
        letter-spacing: 0.01em;
        line-height: 1.1;
    }

    body.input-mode .hero-title {
        letter-spacing: 0.02em;
    }

    .mobile-break {
        display: block; /* Force line break earlier */
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 0.02em;
        padding: 0 1rem;
    }

    .hero-badges {
        margin-bottom: calc(var(--badge-gap, 2rem) * 0.75);
    }

    .benefits-section {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        min-height: auto;
    }

    .top-logo {
        top: 20px;
        left: 20px;
        height: 40px;
    }
}

@media (max-height: 600px) {
    .hero-section {
        min-height: auto;
        transform: none;
    }

    #interaction-container {
        min-height: 180px;
    }

    .hero-badges {
        margin-bottom: calc(var(--badge-gap, 2rem) * 0.75);
    }

    .site-footer {
        padding-bottom: 2rem;
    }
}
