/* ============================================
   Binocula — Global Styles
   Theme: Black & Gold, Premium, Security
   ============================================ */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #0f0f0f;
    --bg-card-hover: #141414;
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dark: #a88a32;
    --gold-subtle: rgba(201, 168, 76, 0.1);
    --gold-glow: rgba(201, 168, 76, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #1a1a1a;
    --border-light: #222222;
    --error: #e54d4d;
    --danger: #e54d4d;
    --danger-bg: rgba(229, 77, 77, 0.06);
    --danger-border: rgba(229, 77, 77, 0.25);
    --safe-bg: rgba(201, 168, 76, 0.06);
    --safe-border: rgba(201, 168, 76, 0.25);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000, #1a1a1a, #0d0d0d, #111111, #000000);
    background-size: 400% 400%;
    animation: ambientGradient 15s ease infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes ambientGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 0%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

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

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: var(--text-primary);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--gold);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 0 0 6px 6px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 200;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Global focus styles */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    font-weight: 400;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

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

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bg-primary);
    background: var(--gold);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

/* Mobile nav */
.nav-mobile {
    display: none;
    align-items: center;
    gap: 1rem;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 28px;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
    animation: animFadeIn 0.2s ease forwards;
}

.nav-links.mobile-open .nav-link {
    display: block;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.nav-links.mobile-open .nav-cta {
    font-size: 1rem;
    padding: 0.8rem 2rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-primary:active {
    transform: scale(1) translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    padding: 0.9rem 2.2rem;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-text, .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Hero Section — Velum Labs inspired
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
}

.hero-label-dot {
    width: 7px;
    height: 7px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(201, 168, 76, 0); }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7.5vw, 6rem);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.hero-title em {
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.85;
    font-weight: 300;
    letter-spacing: 0.005em;
}

.hero-ctas {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero outline buttons — refined, Velum-style */
.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline-hero:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.15);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    opacity: 0.4;
}

.scroll-dot {
    animation: scrollBounce 2.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { cy: 8; opacity: 1; }
    50% { cy: 18; opacity: 0.2; }
}

/* Hero entrance animations */
.anim-fade {
    opacity: 0;
    transform: translateY(12px);
    animation: animFadeIn 0.7s ease forwards;
    animation-delay: var(--delay, 0s);
}

.anim-slide {
    opacity: 0;
    transform: translateY(30px);
    animation: animSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes animFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes animSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Scroll-driven animation system
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--stagger, 0s);
    will-change: opacity, transform;
}

[data-animate="left"] {
    transform: translateX(-60px) scale(0.95);
}

[data-animate="right"] {
    transform: translateX(60px) scale(0.95);
}

[data-animate="scale"] {
    transform: scale(0.85);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    padding: 5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.how-container {
    max-width: 900px;
    margin: 0 auto;
}

.how-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.how-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.how-step-number {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
    animation: stepPulse 4s ease-in-out infinite;
}

.how-step:nth-child(1) .how-step-number { animation-delay: 0s; }
.how-step:nth-child(3) .how-step-number { animation-delay: 0.6s; }
.how-step:nth-child(5) .how-step-number { animation-delay: 1.2s; }

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.15); }
    50% { box-shadow: 0 0 12px 4px rgba(201, 168, 76, 0.08); }
}

.how-step:hover .how-step-number {
    background: var(--gold-subtle);
}

.how-step-content {
    max-width: 220px;
}

.how-step-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.how-step-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.how-step-line {
    flex: 0 0 auto;
    width: 60px;
    height: 1px;
    background: var(--border-light);
    margin-top: -2rem;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.how-steps.animated .how-step-line {
    transform: scaleX(1);
}

/* ============================================
   Products Section
   ============================================ */

.products {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.products::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
    top: 20%;
    right: -10%;
    animation: ambientOrb1 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ambientOrb1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-40px, 30px); }
    66% { transform: translate(20px, -20px); }
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    font-weight: 300;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 168, 76, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover .product-icon {
    transform: rotate(5deg) scale(1.1);
}

.product-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--border-light);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.product-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 1.5rem;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-icon svg {
    width: 100%;
    height: 100%;
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-icon svg path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.4s ease;
}

.product-card.animated .feature-icon svg path {
    stroke-dashoffset: 0;
}

.product-card.animated li:nth-child(1) .feature-icon svg path { transition-delay: 0.3s; }
.product-card.animated li:nth-child(2) .feature-icon svg path { transition-delay: 0.45s; }
.product-card.animated li:nth-child(3) .feature-icon svg path { transition-delay: 0.6s; }

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    margin-top: auto;
    padding-top: 0.5rem;
    transition: gap 0.25s ease, color 0.25s ease;
}

.product-cta:hover {
    gap: 1rem;
    color: var(--gold-light);
}

.product-cta svg {
    transition: transform 0.25s ease;
}

.product-cta:hover svg {
    transform: translateX(6px);
}

/* ============================================
   Code Block — Terminal Style
   ============================================ */

.code-block {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .code-block {
    border-color: rgba(201, 168, 76, 0.15);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.05);
}

.code-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #080808;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-lang {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-copy:hover {
    color: var(--gold);
    border-color: var(--gold-dark);
}

.code-copy.copied {
    color: #28c840;
    border-color: #28c840;
}

.code-copy-label {
    pointer-events: none;
}

.code-content {
    padding: 1.25rem 1.25rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.75;
    color: #d4d4d4;
    tab-size: 4;
}

.code-content code {
    font-family: inherit;
}

/* Syntax highlighting classes */
.syn-key { color: #c586c0; }
.syn-mod { color: #4ec9b0; }
.syn-fn  { color: #dcdcaa; }
.syn-str { color: #ce9178; }
.syn-cmt { color: #6a9955; font-style: italic; }

/* ============================================
   Threat Visualization
   ============================================ */

.threat-viz {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
}

.threat-viz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.threat-viz-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.threat-viz-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.threat-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.threat-panel {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.threat-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
}

.threat-panel-danger {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

.threat-panel-danger::before {
    background: var(--danger);
}

.threat-panel-safe {
    border-color: var(--safe-border);
    background: var(--safe-bg);
}

.threat-panel-safe::before {
    background: var(--gold);
}

.threat-panel-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.threat-panel-danger .threat-panel-label {
    color: var(--danger);
}

.threat-panel-safe .threat-panel-label {
    color: var(--gold);
}

.threat-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.threat-line {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.threat-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.threat-tag-user {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.threat-tag-email {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.threat-tag-agent {
    background: rgba(229, 77, 77, 0.1);
    color: var(--danger);
}

.threat-tag-scan {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
}

.threat-tag-agent-safe {
    background: rgba(40, 200, 64, 0.1);
    color: #28c840;
}

.threat-line-email {
    flex-direction: column;
    gap: 0.4rem;
}

.threat-email-content {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.65;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.threat-injection {
    display: block;
    margin-top: 0.5rem;
    color: var(--danger);
    font-weight: 500;
    background: rgba(229, 77, 77, 0.08);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border-left: 2px solid var(--danger);
}

.threat-danger-text {
    color: var(--danger);
    font-weight: 600;
}

.threat-detected {
    color: var(--gold);
    font-weight: 600;
}

.threat-blocked {
    color: var(--gold-light);
    font-weight: 700;
}

.threat-safe-text {
    color: #28c840;
    font-weight: 500;
}

.threat-line-scan {
    background: rgba(201, 168, 76, 0.04);
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

/* ============================================
   Beta Signup Section
   ============================================ */

.signup {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.signup::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    bottom: 10%;
    left: -8%;
    animation: ambientOrb2 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ambientOrb2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -25px); }
    66% { transform: translate(-20px, 15px); }
}

.signup-container {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.signup-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.7;
    margin-top: 1rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.form-group:focus-within .form-label {
    color: var(--gold);
}

.form-input {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.form-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow), 0 0 20px rgba(201, 168, 76, 0.08);
    transform: translateY(-1px);
}

.form-input:focus::placeholder {
    color: var(--text-secondary);
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(229, 77, 77, 0.1);
}

.form-error {
    font-size: 0.78rem;
    color: var(--error);
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

.form-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-option {
    flex: 1;
    min-width: 120px;
    cursor: pointer;
}

.form-option input {
    display: none;
}

.option-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.option-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

.form-option input:checked + .option-box {
    border-color: var(--gold-dark);
    background: var(--gold-subtle);
    color: var(--gold-light);
}

.form-option input:checked + .option-box .option-check {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: inset 0 0 0 3px var(--bg-primary);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Loading spinner */
.spinner {
    animation: spin 0.8s linear infinite;
}

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

/* Success State */
.signup-success {
    text-align: center;
    padding: 2rem 0;
    animation: animFadeIn 0.5s ease forwards;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--gold);
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.success-text {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
}

.footer-logo .logo-text {
    font-size: 1.1rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.footer-social-link:hover {
    color: var(--gold);
    border-color: var(--gold-dark);
    background: var(--gold-subtle);
    transform: translateY(-2px);
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Legacy scroll animations (kept for compat)
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }

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

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1.5rem 4rem;
        min-height: 85vh;
        min-height: 85svh;
    }

    .hero-label {
        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.6rem, 10vw, 4rem);
        line-height: 1.08;
        margin-bottom: 2.5rem;
    }

    .hero-subtitle {
        margin-bottom: 3rem;
    }

    .hero-scroll-hint {
        display: none;
    }

    .how-steps {
        flex-direction: column;
        gap: 0;
    }

    .how-step-line {
        width: 1px;
        height: 40px;
        margin: 0;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .products {
        padding: 5rem 1.5rem;
    }

    .products::after,
    .signup::after {
        animation: none;
        display: none;
    }

    .how-step-number {
        animation: none;
    }

    .signup {
        padding: 5rem 1.5rem;
    }

    .form-options {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-right {
        align-items: flex-start;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    /* Mobile nav: hide desktop links, show mobile controls */
    .nav-links {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    /* Threat viz stacks on mobile */
    .threat-panels {
        grid-template-columns: 1fr;
    }

    .threat-viz {
        margin-top: 3rem;
        padding-top: 3rem;
    }

    /* Shorter transitions on mobile */
    [data-animate] {
        transition-duration: 0.5s;
    }

    .product-card:hover {
        transform: translateY(-4px);
    }

    .code-content {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline-hero {
        width: 100%;
        max-width: 280px;
    }

    .product-card {
        padding: 2rem;
    }

    .threat-panel {
        padding: 1.25rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    body::before {
        animation: none;
    }

    .hero-particles {
        display: none;
    }

    .fade-in, .anim-fade, .anim-slide, [data-animate] {
        opacity: 1;
        transform: none;
    }

    .fade-in-stagger > * {
        opacity: 1;
        transform: none;
    }
}
