/* FlightAtom Homepage - Specific Styles */

/* --- HOMEPAGE CSS VARIABLES (extends styles.css) --- */
:root {
    --atom-size: 320px;
}

/* --- HERO SECTION --- */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 60px 20px 100px;
    overflow: hidden;
}

/* Animated Aurora Background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(129, 140, 248, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    animation: aurora 15s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, transparent 0%, var(--bg) 70%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

@keyframes aurora {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(1deg); }
    100% { transform: translate(2%, -1%) rotate(-1deg); }
}

/* Grid Background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 20s infinite linear;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { left: 30%; animation-delay: -10s; animation-duration: 28s; }
.particle:nth-child(4) { left: 40%; animation-delay: -15s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: -3s; animation-duration: 26s; }
.particle:nth-child(6) { left: 60%; animation-delay: -8s; animation-duration: 24s; }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; animation-delay: -18s; animation-duration: 27s; }
.particle:nth-child(9) { left: 90%; animation-delay: -6s; animation-duration: 23s; }
.particle:nth-child(10) { left: 15%; animation-delay: -2s; animation-duration: 19s; }
.particle:nth-child(11) { left: 45%; animation-delay: -7s; animation-duration: 24s; }
.particle:nth-child(12) { left: 75%; animation-delay: -11s; animation-duration: 22s; }

@keyframes float-particle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    5% { opacity: 0.6; }
    95% { opacity: 0.6; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orb-float 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.15);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.1);
    top: 50%;
    right: 10%;
    animation-delay: -5s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(129, 140, 248, 0.08);
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* --- ATOM ANIMATION --- */
.atom-wrapper {
    position: relative;
    width: var(--atom-size);
    height: var(--atom-size);
    transform-style: preserve-3d;
    animation: float 10s ease-in-out infinite;
    z-index: 10;
    transition: transform 0.3s var(--ease-out-expo);
}

.nucleus {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 60px var(--accent),
        0 0 120px var(--accent-glow-strong),
        0 0 200px rgba(56, 189, 248, 0.2),
        inset 0 0 30px rgba(255,255,255,0.6);
    z-index: 10;
    animation: pulse-core 4s ease-in-out infinite alternate;
}

.nucleus::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: nucleus-glow 3s ease-in-out infinite alternate;
}

@keyframes nucleus-glow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0.8; }
}

.orbit {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 2px solid rgba(56, 189, 248, 0.15);
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.05);
}

.orbit:nth-child(2) { transform: rotateY(60deg) rotateX(45deg); animation: spin1 8s linear infinite; }
.orbit:nth-child(3) { transform: rotateY(120deg) rotateX(-45deg); animation: spin2 10s linear infinite; }
.orbit:nth-child(4) { transform: rotateY(180deg) rotateX(0deg); animation: spin3 12s linear infinite; }

.electron {
    position: absolute;
    top: -8px;
    left: 50%;
    margin-left: -8px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent), 0 0 60px var(--accent-glow-strong);
}

.electron::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: electron-pulse 1.5s ease-in-out infinite;
}

@keyframes electron-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 0.3; }
}

.electron.icon {
    top: -16px;
    margin-left: -16px;
    width: 32px;
    height: 32px;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.electron.icon::after {
    display: none;
}

.electron.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    transform: rotate(90deg);
    filter: drop-shadow(0 0 15px currentColor);
}

.electron.red {
    background: #ef4444;
    box-shadow: 0 0 30px #ef4444, 0 0 60px rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.electron.red.icon {
    background: transparent;
    box-shadow: none;
}

@keyframes spin1 { 0% { transform: rotateY(60deg) rotateX(45deg) rotateZ(0deg); } 100% { transform: rotateY(60deg) rotateX(45deg) rotateZ(360deg); } }
@keyframes spin2 { 0% { transform: rotateY(120deg) rotateX(-45deg) rotateZ(0deg); } 100% { transform: rotateY(120deg) rotateX(-45deg) rotateZ(360deg); } }
@keyframes spin3 { 0% { transform: rotateY(180deg) rotateX(0deg) rotateZ(0deg); } 100% { transform: rotateY(180deg) rotateX(0deg) rotateZ(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate3d(1, 1, 0, 0deg); } 50% { transform: translateY(-30px) rotate3d(1, 1, 0, 5deg); } }
@keyframes pulse-core { 0% { transform: translate3d(-50%, -50%, 0) scale(0.9); } 100% { transform: translate3d(-50%, -50%, 0) scale(1.1); } }

/* --- HERO TEXT --- */
.hero-text {
    text-align: center;
    margin-top: 80px;
    z-index: 20;
    max-width: 900px;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-text h1 .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-20deg);
    animation: wordReveal 0.8s var(--ease-out-expo) forwards;
}

.hero-text h1 .word:nth-child(1) { animation-delay: 0.1s; }
.hero-text h1 .word:nth-child(2) { animation-delay: 0.2s; }
.hero-text h1 .word:nth-child(3) { animation-delay: 0.3s; }

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.hero-text h1 .gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wordReveal 0.8s var(--ease-out-expo) forwards, gradientShift 5s ease-in-out 0.8s infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-text p {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.7s forwards;
}

.hero-cta .btn {
    min-width: 200px;
    justify-content: center;
    white-space: nowrap;
}

/* Magnetic Button Container */
.magnetic-btn {
    position: relative;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    border-radius: 60px;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-primary {
    background: #fff;
    color: var(--bg);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(255, 255, 255, 0.15),
        0 0 60px rgba(56, 189, 248, 0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover span,
.btn-primary:hover svg {
    color: #fff;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
    transition: color 0.4s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 40px var(--accent-glow),
        inset 0 0 20px rgba(56, 189, 248, 0.05);
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Button shine effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover .btn-shine {
    left: 100%;
}

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

/* --- HERO STATS --- */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 60px;
    padding: 40px 20px;
    opacity: 0;
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.9s forwards;
    position: relative;
    z-index: 20;
}

.hero-stat {
    text-align: center;
    min-width: 140px;
}

.hero-stats .divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
    flex-shrink: 0;
}

.hero-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stat-value .counter {
    display: inline-block;
}

.hero-stat-value .suffix {
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- SECTION STYLES --- */
.section-header {
    text-align: center;
    padding: 140px 20px 70px;
    max-width: 800px;
    margin: 0 auto;
}

.section-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-header .eyebrow::before,
.section-header .eyebrow::after {
    content: '';
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}

.section-header .eyebrow::after {
    background: linear-gradient(90deg, var(--accent), transparent);
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 48px 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-card {
    position: relative;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.grid-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.grid-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px var(--accent-glow);
}

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

.grid-card:hover::after {
    opacity: 1;
}

.grid-card .card-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-card .subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-card .subtitle::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.3;
}

.grid-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
    transition: color 0.3s var(--ease-out-expo);
}

.grid-card:hover h3 {
    color: #fff;
}

.grid-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
}

.grid-card .card-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.3s var(--ease-out-expo);
}

.grid-card .card-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out-expo);
}

.grid-card:hover .card-arrow {
    color: var(--accent);
}

.grid-card:hover .card-arrow svg {
    transform: translateX(4px);
}

/* --- CONNECTING LINES (Animated Pulse) --- */
.connection-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.connection-line {
    position: absolute;
    background: var(--accent);
    opacity: 0.4;
}

.connection-line.horizontal {
    height: 2px;
    animation: pulse-line 3s ease-in-out infinite;
}

.connection-line.vertical {
    width: 2px;
    animation: pulse-line 3s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.2; box-shadow: 0 0 5px var(--accent); }
    50% { opacity: 0.6; box-shadow: 0 0 15px var(--accent); }
}

/* --- SPOTLIGHT CARDS --- */
.feature-spotlight {
    padding: 0 48px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.spotlight-card {
    position: relative;
    background: linear-gradient(180deg, var(--surface-solid) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s var(--ease-out-expo);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    animation: rotate-gradient 20s linear infinite;
}

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

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

.spotlight-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.spotlight-card h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #fff;
    z-index: 2;
}

.spotlight-card p {
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.7;
    z-index: 2;
    color: var(--text-muted);
}

.spotlight-features {
    display: flex;
    gap: 12px;
    margin-top: 48px;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

.pill {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--accent);
    transition: all 0.3s var(--ease-out-expo);
}

.spotlight-card:hover .pill {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
}

/* --- CONTACT SECTION --- */
.contact {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px;
    background: var(--bg);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
}

.contact > p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 60px;
    text-align: center;
}

.contact-form {
    width: 100%;
    max-width: 520px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s var(--ease-out-expo);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    background: var(--surface);
    color: var(--text);
    transition: all 0.3s var(--ease-out-expo);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-solid);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.btn-submit span {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

.btn-submit:hover:not(:disabled)::before {
    opacity: 1;
}

.btn-submit:hover:not(:disabled) span {
    color: #fff;
}

.btn-submit:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.15);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* Loading state for button */
.btn-submit[aria-busy="true"] span::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* --- HOMEPAGE FOOTER OVERRIDE --- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 100px; /* Space for back-to-top button */
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-stagger.visible {
    animation: staggerFadeUp 0.8s var(--ease-out-expo) forwards;
}

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

/* --- SKIP LINK --- */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    transition: top 0.3s var(--ease-out-expo);
    text-decoration: none;
}

.skip-link:focus {
    top: 20px;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-size: 0.95rem;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    animation: toast-in 0.4s var(--ease-out-expo) forwards;
}

.toast.toast-out {
    animation: toast-out 0.3s var(--ease-out-expo) forwards;
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), var(--surface-solid));
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), var(--surface-solid));
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text);
}

.toast-close svg {
    width: 18px;
    height: 18px;
}

@keyframes toast-in {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: color 0.3s var(--ease-out-expo);
}

.back-to-top:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.back-to-top:hover svg {
    color: var(--accent);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- AI PRODUCT DIFFERENTIATION --- */
.spotlight-card.ai-powered {
    position: relative;
    border-color: rgba(168, 85, 247, 0.3);
}

.spotlight-card.ai-powered::before {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
}

.spotlight-card.ai-powered::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a855f7, #38bdf8, transparent);
    opacity: 0.7;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a855f7;
    margin-bottom: 24px;
    z-index: 2;
}

.ai-badge svg {
    width: 16px;
    height: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.spotlight-card.ai-powered .pill {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.spotlight-card.ai-powered:hover .pill {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

/* Safety-specific green theme */
.spotlight-card.ai-safety {
    border-color: rgba(16, 185, 129, 0.3);
}

.spotlight-card.ai-safety::before {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

.spotlight-card.ai-safety::after {
    background: linear-gradient(90deg, transparent, #10b981, #38bdf8, transparent);
}

.spotlight-card.ai-safety .ai-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.2));
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.spotlight-card.ai-safety .pill {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.spotlight-card.ai-safety:hover .pill {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

/* --- FORM VALIDATION --- */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #10b981;
}

.form-group input.valid:focus,
.form-group textarea.valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-error {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 8px;
    align-items: center;
    gap: 6px;
}

.form-error.visible {
    display: flex;
}

.form-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --atom-size: 200px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 80px;
        gap: 20px;
    }

    .grid-card {
        padding: 28px;
        min-height: auto;
    }

    .grid-card .card-arrow {
        padding: 12px 0;
    }

    .section-header {
        padding: 80px 20px 40px;
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .section-header p {
        font-size: 1rem;
    }

    .spotlight-card {
        padding: 48px 20px;
    }

    .spotlight-card h3 {
        font-size: 1.8rem;
    }

    .spotlight-card p {
        font-size: 1rem;
    }

    .spotlight-features {
        margin-top: 32px;
        gap: 8px;
    }

    .pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .feature-spotlight {
        padding: 0 20px 20px;
    }

    .hero {
        padding: 30px 20px 60px;
        min-height: calc(100vh - var(--nav-height));
    }

    .hero-text {
        margin-top: 40px;
    }

    .hero-text h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        gap: 12px;
    }

    .hero-cta .magnetic-btn {
        width: 100%;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        min-width: unset;
        padding: 16px 24px;
        min-height: 52px;
        text-align: center;
    }

    .hero-cta .btn svg {
        display: none;
    }

    .hero-stats {
        gap: 16px;
        margin-top: 32px;
        padding: 24px 16px;
        flex-wrap: wrap;
    }

    .hero-stat {
        min-width: 80px;
    }

    .hero-stats .divider {
        display: none;
    }

    .hero-stat-value {
        font-size: 1.8rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .hero-orb {
        display: none;
    }

    .particles {
        display: none;
    }

    .contact {
        min-height: auto;
        padding: 80px 20px;
    }

    .contact h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .contact > p {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .btn-submit {
        padding: 16px;
        min-height: 52px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    #toast-container {
        top: 80px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 30px 20px;
        padding-bottom: 80px; /* Space for back-to-top button */
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
