/* ===========================================
   ANOMITY - AI-Powered Business Logic Security
   Stylesheet v2.0
   =========================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --accent: #00d4aa;
    --accent-dim: #00d4aa20;
    --accent-glow: #00d4aa40;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --danger: #ff4757;
    --danger-dim: #ff475720;
    --warning: #ffa502;
    --border: #2a2a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================================
   BACKGROUND EFFECTS
   =========================================== */

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, var(--accent-dim) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ===========================================
   NAVIGATION
   =========================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '◢';
    font-size: 1.2rem;
}

.nav-cta {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ===========================================
   MAIN CONTENT
   =========================================== */

main {
    position: relative;
    z-index: 1;
}

/* ===========================================
   HERO SECTION
   =========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

h1 .highlight {
    color: var(--accent);
    position: relative;
}

h1 .highlight-danger {
    color: var(--danger);
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    max-width: 650px;
}

.section-label.hero-label{
    font-size: 1.25rem;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.cta-primary::after {
    content: '→';
    transition: transform 0.3s ease;
}

.cta-primary:hover::after {
    transform: translateX(4px);
}

.tagline {
    margin-top: 4rem;
    padding: 1rem 2rem;
    border-left: 2px solid var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-urgency {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem 2rem;
    background: var(--danger-dim);
    border-left: 3px solid var(--danger);
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-urgency strong {
    color: var(--danger);
}

.hero-threat-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0 0 2rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--danger-dim), transparent 70%);
    border: 1px solid var(--danger);
    border-radius: 8px;
    max-width: 700px;
    text-align: left;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-threat-card .threat-icon {
    position: static;
    background: none;
    padding: 0.15rem 0 0 0;
    color: var(--danger);
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.hero-threat-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-threat-content strong:first-child {
    color: var(--danger);
    font-size: 1rem;
}

.hero-threat-content strong:last-child {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.hero-threat-content span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===========================================
   SECTIONS
   =========================================== */

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 900px;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* ===========================================
   THREAT SECTION (PAIN)
   =========================================== */

.threat-section {
    padding-top: 2rem;
}

.threat-card {
    background: linear-gradient(135deg, var(--danger-dim), transparent 60%);
    border: 1px solid var(--danger);
    padding: 3rem;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.threat-icon {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--bg-primary);
    padding: 0 1rem;
    color: var(--danger);
    font-size: 1.5rem;
}

.threat-card h2 {
    color: var(--danger);
    margin-bottom: 1.5rem;
}

.threat-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    max-width: 800px;
}

.threat-card p strong {
    color: var(--text-primary);
}

/* ===========================================
   COMPARISON SECTION
   =========================================== */

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.comparison-card.traditional {
    opacity: 0.8;
}

.comparison-card.anomity {
    border-color: var(--accent);
    box-shadow: 0 0 60px var(--accent-dim);
}

.comparison-card.anomity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.traditional .card-label {
    color: var(--text-muted);
}

.anomity .card-label {
    color: var(--accent);
}

.card-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.traditional .card-label::before {
    background: var(--text-muted);
}

.anomity .card-label::before {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.comparison-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.comparison-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '×';
    color: var(--danger);
    font-weight: bold;
    flex-shrink: 0;
}

.anomity .feature-list li::before {
    content: '✓';
    color: var(--accent);
}

/* ===========================================
   CAROUSEL
   =========================================== */

.vulns-section {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.vulns-section > .reveal:first-child {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 0 1rem;
    max-width: 100%;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    max-width: calc(100% - 120px);
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: var(--text-muted);
}

.carousel-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ===========================================
   VULNERABILITY CARDS
   =========================================== */

.vuln-card {
    flex: 0 0 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vuln-card:hover {
    border-color: var(--danger);
    transform: translateY(-4px);
}

.vuln-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--danger), var(--warning));
}

.vuln-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--danger);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vuln-type::before {
    content: '⚡';
}

.vuln-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.vuln-scenario {
    background: var(--bg-primary);
    border-left: 3px solid var(--danger);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.vuln-impact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--warning);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.vuln-impact::before {
    content: '→';
}

.vuln-explanation {
    background: linear-gradient(135deg, var(--accent-dim), transparent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 1rem;
    margin-top: auto;
}

.vuln-explanation-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vuln-explanation-title::before {
    content: '?';
    width: 16px;
    height: 16px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
}

.vuln-explanation p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.vuln-explanation em {
    color: var(--accent);
    font-style: normal;
}

/* ===========================================
   HOW IT WORKS SECTION
   =========================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-dim);
    line-height: 1;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===========================================
   TEAM SECTION
   =========================================== */

.team-section {
    background: var(--bg-secondary);
    max-width: 100%;
    padding: 6rem 2rem;
}

.team-section > .reveal {
    max-width: 1200px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.team-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.team-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-card p {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

.team-summary {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.team-summary p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.team-summary strong {
    color: var(--accent);
}

/* ===========================================
   NAME ETYMOLOGY SECTION
   =========================================== */

.footer-etymology {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.name-etymology {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.name-part {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.name-part.anomaly {
    background: var(--danger-dim);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.name-part.anonymity {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.name-plus, .name-equals {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.name-result {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--danger), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-explanation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.explanation-item {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.explanation-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.explanation-item strong {
    color: var(--text-primary);
}

/* ===========================================
   FORM SECTION
   =========================================== */

.form-section {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-container h2 {
    margin-bottom: 0.5rem;
}

.form-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

#early-access-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input, select, textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
}

/* intl-tel-input dark theme overrides */
.iti { width: 100%; }

.iti__country-list {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}

.iti__country-list .iti__country:hover,
.iti__country-list .iti__country--highlight {
    background: var(--bg-secondary);
}

.iti__selected-country {
    background: transparent;
}

.iti__selected-dial-code {
    color: var(--text-secondary);
}

.iti__search-input {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border);
}

.iti__country-name, .iti__dial-code {
    color: var(--text-secondary);
}

.form-submit {
    padding: 1.1rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ===========================================
   FOOTER
   =========================================== */

footer {
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-logo::before {
    content: '◢';
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===========================================
   SCROLL ANIMATIONS
   =========================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .vuln-card {
        flex: 0 0 350px;
    }
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: 1fr;
    }

    .comparison {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3.5rem 1.5rem;
    }

    .name-explanation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-primary {
        padding: 0.9rem 1.75rem;
        font-size: 0.85rem;
    }

    .tagline {
        margin-top: 2.5rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }

    .hero-urgency {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }

    .hero-threat-card {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-threat-content strong {
        font-size: 0.95rem;
    }

    .hero-threat-content span {
        font-size: 0.85rem;
    }

    .threat-card {
        padding: 2rem 1.5rem;
    }

    .threat-card h2 {
        font-size: 1.3rem;
    }

    .threat-card p {
        font-size: 0.95rem;
    }

    .comparison-card {
        padding: 1.75rem;
    }

    .comparison-card.traditional {
        opacity: 0.85;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-text {
        font-size: 1rem;
    }

    .carousel-container {
        padding: 0 0.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .vuln-card {
        flex: 0 0 300px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-summary {
        padding: 1.5rem;
    }

    .team-summary p {
        font-size: 0.9rem;
    }

    .form-section {
        padding: 4rem 1.5rem;
    }

    .form-container h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 500px) {
    nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-cta {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.7rem;
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-primary {
        padding: 0.85rem 1.5rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .tagline {
        margin-top: 2rem;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .hero-urgency {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-threat-card {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }

    .hero-threat-card .threat-icon {
        font-size: 1.25rem;
    }

    .hero-threat-content strong {
        font-size: 0.9rem;
    }

    .hero-threat-content span {
        font-size: 0.8rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-label {
        font-size: 0.65rem;
    }

    h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .section-text {
        font-size: 0.9rem;
    }

    .threat-card {
        padding: 1.5rem 1rem;
    }

    .threat-icon {
        top: -12px;
        left: 15px;
        font-size: 1.2rem;
    }

    .threat-card h2 {
        font-size: 1.1rem;
    }

    .threat-card p {
        font-size: 0.85rem;
    }

    .name-part {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }

    .name-result {
        font-size: 1.3rem;
    }

    .name-plus, .name-equals {
        font-size: 1rem;
    }

    .explanation-item {
        font-size: 0.85rem;
    }

    .comparison-card {
        padding: 1.5rem;
    }

    .comparison-card h3 {
        font-size: 1.1rem;
    }

    .comparison-card p {
        font-size: 0.85rem;
    }

    .feature-list li {
        font-size: 0.8rem;
    }

    .carousel-viewport {
        max-width: calc(100% - 100px);
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }

    .vuln-card {
        flex: 0 0 280px;
        padding: 1.5rem;
    }

    .vuln-type {
        font-size: 0.65rem;
    }

    .vuln-card h3 {
        font-size: 1rem;
    }

    .vuln-scenario {
        padding: 0.85rem 1rem;
        font-size: 0.75rem;
    }

    .vuln-impact {
        font-size: 0.8rem;
    }

    .vuln-explanation {
        padding: 0.85rem;
    }

    .vuln-explanation-title {
        font-size: 0.65rem;
    }

    .vuln-explanation p {
        font-size: 0.75rem;
    }

    .step {
        padding: 1.5rem;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .step h3 {
        font-size: 1rem;
    }

    .step p {
        font-size: 0.85rem;
    }

    .team-card {
        padding: 1.5rem;
    }

    .team-icon {
        width: 56px;
        height: 56px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container h2 {
        font-size: 1.25rem;
    }

    .form-container > p {
        font-size: 0.9rem;
    }

    input, select, textarea {
        padding: 0.9rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .form-submit {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .form-note {
        font-size: 0.75rem;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-logo {
        font-size: 1rem;
    }

    footer p {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .vuln-card {
        flex: 0 0 260px;
    }

    .vuln-scenario {
        font-size: 0.7rem;
    }

    .name-etymology {
        flex-direction: column;
        gap: 0.75rem;
    }

    .name-plus, .name-equals {
        display: none;
    }
}

/* Improve touch targets */
@media (hover: none) and (pointer: coarse) {
    .nav-cta,
    .cta-primary,
    .form-submit,
    .carousel-btn {
        min-height: 44px;
    }

    .feature-list li {
        padding: 0.25rem 0;
    }

    .carousel-dot {
        width: 14px;
        height: 14px;
    }
}
