@import "design-tokens.css";

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
}

/* ========================================
   STUNNING ANIMATED BACKGROUND
   ======================================== */

.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--background);
}

/* Aurora / Northern Lights Effect */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.6;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 200%;
    animation: auroraFlow 15s ease-in-out infinite;
}

.aurora-1 {
    top: -50%;
    left: -50%;
    background: conic-gradient(from 0deg at 50% 50%, 
        transparent 0deg, 
        rgba(160, 160, 160, 0.4) 60deg, 
        transparent 120deg,
        rgba(150, 150, 150, 0.3) 180deg, 
        transparent 240deg,
        rgba(155, 155, 155, 0.35) 300deg, 
        transparent 360deg);
    animation-delay: 0s;
}

.aurora-2 {
    top: -30%;
    left: -30%;
    background: conic-gradient(from 120deg at 40% 60%, 
        transparent 0deg, 
        rgba(145, 145, 145, 0.35) 90deg, 
        transparent 180deg,
        rgba(152, 152, 152, 0.25) 270deg, 
        transparent 360deg);
    animation-delay: -5s;
    animation-duration: 18s;
}

.aurora-3 {
    top: -40%;
    left: -40%;
    background: conic-gradient(from 240deg at 60% 40%, 
        transparent 0deg, 
        rgba(165, 165, 165, 0.3) 45deg, 
        transparent 90deg,
        rgba(155, 155, 155, 0.25) 180deg, 
        transparent 270deg,
        rgba(185, 155, 125, 0.2) 315deg, 
        transparent 360deg);
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes auroraFlow {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.15);
    }
}

/* Morphing Blobs */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(50px);
}

.blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.5;
    animation: blobMorph 20s ease-in-out infinite, blobFloat 15s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(160, 160, 160, 0.6) 0%, rgba(145, 145, 145, 0.3) 100%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(225deg, rgba(150, 150, 150, 0.5) 0%, rgba(0, 0, 0, 0.25) 100%);
    bottom: -5%;
    left: -5%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(45deg, rgba(155, 155, 155, 0.45) 0%, rgba(170, 140, 110, 0.2) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
    animation-duration: 22s;
}

.blob-4 {
    width: 300px;
    height: 300px;
    background: linear-gradient(315deg, rgba(165, 165, 165, 0.4) 0%, rgba(190, 165, 140, 0.15) 100%);
    top: 20%;
    left: 15%;
    animation-delay: -7s;
    animation-duration: 28s;
}

@keyframes blobMorph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 30px) rotate(-5deg);
    }
    75% {
        transform: translate(-40px, -20px) rotate(3deg);
    }
}

/* Floating Glow Orbs */
.orb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    animation: orbPulse 4s ease-in-out infinite, orbDrift 20s ease-in-out infinite;
}

.glow-orb-1 {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(160, 160, 160, 0.9) 0%, rgba(160, 160, 160, 0.4) 40%, transparent 70%);
    box-shadow: 0 0 30px rgba(160, 160, 160, 0.6), 0 0 60px rgba(160, 160, 160, 0.3);
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(150, 150, 150, 0.85) 0%, rgba(150, 150, 150, 0.35) 40%, transparent 70%);
    box-shadow: 0 0 25px rgba(150, 150, 150, 0.5), 0 0 50px rgba(150, 150, 150, 0.25);
    top: 60%;
    left: 15%;
    animation-delay: -1s;
    animation-duration: 5s, 25s;
}

.glow-orb-3 {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(155, 155, 155, 0.9) 0%, rgba(155, 155, 155, 0.4) 40%, transparent 70%);
    box-shadow: 0 0 28px rgba(155, 155, 155, 0.55), 0 0 55px rgba(155, 155, 155, 0.28);
    top: 35%;
    left: 45%;
    animation-delay: -2s;
    animation-duration: 4.5s, 22s;
}

.glow-orb-4 {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(165, 165, 165, 0.85) 0%, rgba(165, 165, 165, 0.35) 40%, transparent 70%);
    box-shadow: 0 0 22px rgba(165, 165, 165, 0.5), 0 0 45px rgba(165, 165, 165, 0.22);
    top: 75%;
    left: 70%;
    animation-delay: -3s;
    animation-duration: 5.5s, 28s;
}

.glow-orb-5 {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(152, 152, 152, 0.88) 0%, rgba(152, 152, 152, 0.38) 40%, transparent 70%);
    box-shadow: 0 0 32px rgba(152, 152, 152, 0.58), 0 0 65px rgba(152, 152, 152, 0.3);
    top: 10%;
    left: 30%;
    animation-delay: -4s;
    animation-duration: 4.2s, 18s;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes orbDrift {
    0%, 100% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(50px, -30px);
    }
    40% {
        transform: translate(-30px, 50px);
    }
    60% {
        transform: translate(40px, 40px);
    }
    80% {
        transform: translate(-50px, -20px);
    }
}

/* Neural Network SVG Lines */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.neural-line {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 0.15;
    stroke-linecap: round;
    animation: neuralPulse 8s ease-in-out infinite;
}

.neural-line-1 { animation-delay: 0s; }
.neural-line-2 { animation-delay: -1.5s; }
.neural-line-3 { animation-delay: -3s; }
.neural-line-4 { animation-delay: -4.5s; }
.neural-line-5 { animation-delay: -6s; }

@keyframes neuralPulse {
    0%, 100% {
        stroke-dasharray: 0 1000;
        stroke-dashoffset: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        stroke-dasharray: 100 1000;
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        stroke-dasharray: 100 1000;
        stroke-dashoffset: -200;
        opacity: 0;
    }
}

/* Particles Canvas Placeholder */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Light Rays */
.light-rays {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    overflow: hidden;
    opacity: 0.15;
}

.ray {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(160, 160, 160, 0.8) 20%, 
        rgba(160, 160, 160, 0.4) 50%, 
        transparent 100%);
    animation: rayShimmer 6s ease-in-out infinite;
}

.ray-1 {
    left: 30%;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.ray-2 {
    left: 50%;
    animation-delay: -2s;
    transform: rotate(0deg);
}

.ray-3 {
    left: 70%;
    animation-delay: -4s;
    transform: rotate(15deg);
}

@keyframes rayShimmer {
    0%, 100% {
        opacity: 0.1;
        transform: translateY(-10%) scaleY(0.95);
    }
    50% {
        opacity: 0.3;
        transform: translateY(10%) scaleY(1.05);
    }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    animation: gridPulse 10s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Noise Texture Overlay */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.gradient-bg {
    background: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
}

.card-hover {
    transition: all 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.02);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1px;
    padding: 11px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Typewriter Text Animation */
.typewriter-container {
    display: inline-block;
    width: 320px;
    text-align: right;
}

@media (max-width: 768px) {
    .typewriter-container {
        width: 200px;
    }
}

.typewriter-text {
    color: #000;
    border-right: 3px solid #000;
    padding-right: 5px;
    animation: cursorBlink 0.7s step-end infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        border-color: #000;
    }

    50% {
        border-color: transparent;
    }
}

/* Contact Dialog */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dialog-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--card);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    z-index: 101;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dialog-box.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dialog-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* ========================================
   DEMO REQUEST DIALOG - MINIMAL DESIGN
   ======================================== */

.demo-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--card);
    border-radius: 1.25rem;
    padding: 0;
    max-width: 580px;
    width: calc(100% - 2rem);
    z-index: 101;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 24px 48px -12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.demo-dialog.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.demo-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.demo-dialog-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.demo-form-container {
    padding: 2.5rem 2rem 2rem;
}

/* Form Content */
.demo-form-content {
    display: flex;
    flex-direction: column;
}

.demo-form-header {
    margin-bottom: 1.75rem;
}

.demo-form-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.375rem;
    letter-spacing: -0.02em;
}

.demo-form-subtitle {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin: 0;
    font-weight: 400;
}

/* Form Fields */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.demo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.demo-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.demo-form-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
}

.demo-form-field label .optional {
    font-weight: 400;
    color: #9ca3af;
}

.demo-form-field label .required-star {
    color: var(--accent);
    font-weight: 600;
}

.demo-form-field .field-error {
    display: none;
    font-size: 0.75rem;
    color: #e53e3e;
    margin-top: 0.125rem;
}

.demo-form-field.has-error input,
.demo-form-field.has-error textarea {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.demo-form-field.has-error .field-error {
    display: block;
}

.demo-form-field input,
.demo-form-field textarea {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    font-size: 0.9375rem;
    font-family: 'Inter', sans-serif;
    color: var(--foreground);
    background: #fff;
    border: 1px solid rgba(10,10,10,0.2);
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    outline: none;
    box-sizing: border-box;
}

.demo-form-field input::placeholder,
.demo-form-field textarea::placeholder {
    color: #9ca3af;
}

.demo-form-field input:hover,
.demo-form-field textarea:hover {
    border-color: rgba(10,10,10,0.35);
}

.demo-form-field input:focus,
.demo-form-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(254, 116, 66, 0.1);
}

.demo-form-field textarea {
    resize: none;
    min-height: 4.5rem;
}

/* Submit Button */
.demo-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8125rem 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.demo-submit-btn:hover {
    background: #1a1a1a;
}

.demo-submit-btn:active {
    transform: scale(0.98);
}

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

.demo-submit-btn .btn-text {
    transition: opacity 0.15s ease;
}

.demo-submit-btn .btn-loading {
    position: absolute;
    display: none;
}

.demo-submit-btn.loading .btn-text {
    opacity: 0;
}

.demo-submit-btn.loading .btn-loading {
    display: flex;
}

.demo-submit-btn .spinner {
    width: 1.25rem;
    height: 1.25rem;
    animation: spin 0.8s linear infinite;
}

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

/* Demo Success State */
.demo-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0;
    min-height: 18rem;
}

.demo-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .demo-dialog {
        /* Bottom sheet on mobile */
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        max-height: 92dvh;
        border-radius: 1.25rem 1.25rem 0 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .demo-dialog.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .demo-form-container {
        padding: 1.5rem 1.25rem 2rem;
    }

    .demo-form-header {
        margin-bottom: 1.25rem;
    }

    .demo-form-title {
        font-size: 1.2rem;
    }

    .demo-form-subtitle {
        font-size: 0.875rem;
    }

    .demo-form {
        gap: 0.875rem;
    }

    .demo-form-row {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .demo-form-field input,
    .demo-form-field textarea {
        font-size: 1rem; /* prevents iOS zoom on focus */
        padding: 0.625rem 0.75rem;
    }

    .demo-form-field textarea {
        min-height: 3.5rem;
    }

    .demo-submit-btn {
        padding: 0.875rem 1.5rem;
        margin-top: 0.25rem;
    }

    .demo-success-content {
        min-height: 65dvh;
    }

    /* Pull-handle visual cue */
    .demo-form-container::before {
        content: '';
        display: block;
        width: 2.5rem;
        height: 4px;
        background: rgba(0,0,0,0.12);
        border-radius: 2px;
        margin: 0 auto 1.25rem;
    }
}

/* Strikethrough Animation */
.strikethrough-animated {
    display: inline;
    background-image: linear-gradient(transparent calc(50% - 1px), #9ca3af calc(50% - 1px), #9ca3af calc(50% + 1px), transparent calc(50% + 1px));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left center;
}

.strikethrough-animated.animate {
    animation: strike 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes strike {
    to {
        background-size: 100% 100%;
    }
}

/* Text Gradient */
.gradient-text {
    color: #000;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Highlight Text */
.text-highlight {
    color: #8b5a2b;
}



@keyframes pulseSoft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Underline Animation */
.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5a2b, #d4a574);
    animation: underlineGrow 1.5s ease forwards 0.5s;
}

@keyframes underlineGrow {
    to {
        width: 100%;
    }
}

/* Capability Card Hover */
.capability-card {
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: -1.5rem;
}

.capability-card:hover {
    background: rgba(139, 90, 43, 0.05);
    transform: translateY(-2px);
}

.capability-card h3 {
    transition: color 0.3s ease;
}

.capability-card:hover h3 {
    color: #8b5a2b;
}

/* Stagger animation for grid items */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-item.visible {
    animation: fadeInUp 0.6s ease forwards;
}

.stagger-item:nth-child(1) {
    animation-delay: 0s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.5s;
}

/* ===== ENHANCED ANIMATIONS ===== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Logo entrance animation */
.logo-animate {
    animation: logoReveal 1s ease-out forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    50% {
        transform: scale(1.1) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Magnetic button effect */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8b5a2b, #d4a574, #8b5a2b);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientRotate 3s linear infinite;
}

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

@keyframes gradientRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Text reveal animation (inner variant) */
.text-reveal-inner {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #8b5a2b;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #8b5a2b;
    }
}

/* Chat Input Section */
.hero-chat-container {
    width: 100%;
    max-width: 800px;
    margin: 2.5rem auto;
    position: relative;
    z-index: 10;
}

.chat-input-wrapper {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 1rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 40px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.chat-input-wrapper:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 20px 40px -10px rgba(139, 90, 43, 0.1);
}

.chat-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 90, 43, 0.3);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(139, 90, 43, 0.15);
    transform: translateY(-2px);
}

.chat-input-field {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    outline: none;
    resize: none;
    min-height: 52px;
    color: #1a1a1a;
    font-family: inherit;
}

.chat-input-field::placeholder {
    color: rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
}

.chat-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0.5rem 0.5rem 1rem;
}

.chat-actions-left {
    display: flex;
    gap: 0.25rem;
}

.chat-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.chat-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--foreground);
}

/* Chat Tooltip Dialogs */
.chat-tooltip-dialog {
    position: relative;
    background: #faf9f7;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.chat-tooltip-arrow-up {
    position: absolute;
    top: -7px;
    left: 20px;
    width: 14px;
    height: 14px;
    background: #faf9f7;
    border-left: 1px solid #e7e5e4;
    border-top: 1px solid #e7e5e4;
    transform: rotate(45deg);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.send-btn:hover {
    transform: scale(1.1) translateY(-1px);
    background: #7a4d24;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.send-btn svg {
    width: 20px;
    height: 20px;
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 90, 43, 0.15);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: #ffffff;
    border-color: rgba(139, 90, 43, 0.5);
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(139, 90, 43, 0.1);
}

@media (max-width: 640px) {
    .quick-actions {
        gap: 0.5rem;
    }

    .quick-action-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {

    /* Hero chat input */
    .hero-chat-container {
        margin: 1.5rem auto;
    }

    .chat-input-wrapper {
        border-radius: 20px;
        padding: 0.75rem;
    }

    .chat-input-field {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 44px;
    }

    .chat-controls {
        padding: 0.25rem 0.25rem 0.25rem 0.5rem;
    }

    .chat-icon-btn {
        width: 36px;
        height: 36px;
    }

    .chat-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .send-btn {
        width: 36px;
        height: 36px;
    }

    .send-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Dialogs positioning for mobile */
    #upload-dialog,
    #platform-dialog {
        left: 0;
        right: auto;
    }

    .chat-tooltip-dialog {
        white-space: normal;
        min-width: 240px;
    }

    /* Suggestions dropdown */
    #chat-suggestions .suggestion-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    #chat-suggestions .suggestion-btn svg {
        flex-shrink: 0;
    }

    /* Section spacing */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Footer mobile */
    footer {
        padding: 3rem 1.5rem;
    }

    /* Comparison table mobile scroll hint */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .overflow-x-auto::-webkit-scrollbar {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .chat-input-field {
        font-size: 0.9375rem;
    }

    /* Reduce visual complexity on small screens */
    .orb {
        opacity: 0.4;
    }

    .particles {
        display: none;
    }

    /* Tighter spacing */
    .hero-chat-container {
        margin: 1rem auto;
    }

    #chat-suggestions .suggestion-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(139, 90, 43, 0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Shimmer text effect */
.shimmer-text {
    color: #000;
}

@keyframes shimmerText {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Bounce in animation */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Stat number glow */
.stat-glow {
    text-shadow: 0 0 20px rgba(139, 90, 43, 0.3);
    transition: text-shadow 0.3s ease;
}

.stat-glow:hover {
    text-shadow: 0 0 40px rgba(139, 90, 43, 0.5);
}

/* Agent dot pulse */
.agent-dot {
    animation: agentPulse 2s ease-in-out infinite;
}

@keyframes agentPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* Line draw animation */
.line-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Capability card enhanced */
.capability-card {
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 90, 43, 0.1), transparent);
    transition: left 0.5s ease;
}

.capability-card:hover::before {
    left: 100%;
}

/* Footer links hover */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== REDIRECT OVERLAY ===== */
#redirect-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(250, 248, 245, 0.98) 0%, rgba(245, 240, 235, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#redirect-overlay.active {
    opacity: 1;
}

.redirect-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
    animation: overlaySlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes overlaySlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.redirect-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.redirect-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

/* Animated loading dots */
.redirect-dots {
    display: flex;
    gap: 6px;
    margin-top: 0.5rem;
}

.redirect-dot {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.redirect-dot:nth-child(1) {
    animation-delay: 0s;
}

.redirect-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.redirect-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.redirect-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.redirect-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    animation: textFadeIn 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.redirect-prompt {
    font-size: 14px;
    color: var(--muted-foreground);
    max-width: 300px;
    line-height: 1.5;
    animation: textFadeIn 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.redirect-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    animation: textFadeIn 0.6s ease forwards, subtitlePulse 2s ease-in-out infinite;
    animation-delay: 0.6s, 1.2s;
    opacity: 0;
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitlePulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Progress bar */
.redirect-progress {
    width: 200px;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.redirect-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #000, #666, #000);
    background-size: 200% 100%;
    animation: progressShimmer 1.5s ease-in-out infinite;
    width: 100%;
}

@keyframes progressShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
/* Text Reveal Animation */
.text-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Image Reveal Animation */
.image-reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.925);
    transition: opacity 0.7s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Text Highlight */
.text-highlight {
    background: linear-gradient(120deg, rgba(160, 160, 160, 0.3) 0%, rgba(150, 150, 150, 0.3) 100%);
    padding: 0.1em 0.3em;
    border-radius: 0.25em;
    font-weight: 500;
    color: #1a1a1a;
}

/* Typewriter Cursor */
.typewriter-cursor {
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== PAIN POINT CARDS ===== */

.pain-card {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(214, 204, 191, 0.4);
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 90, 43, 0.06), transparent);
    transition: left 0.6s ease;
}

.pain-card:hover::before {
    left: 100%;
}

.pain-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(139, 90, 43, 0.2);
    box-shadow: 0 20px 40px -12px rgba(139, 90, 43, 0.12),
                0 8px 16px -6px rgba(0, 0, 0, 0.06);
}

.pain-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(139, 90, 43, 0.08);
    color: #8b5a2b;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
}

.pain-card:hover .pain-card-icon {
    background: rgba(139, 90, 43, 0.14);
    transform: scale(1.1) rotate(-5deg);
}

.pain-card:hover .text-black {
    color: #8b5a2b;
    transition: color 0.3s ease;
}

/* ========================================
   SOCIAL PROOF - "WHAT PEOPLE ARE SAYING"
   ======================================== */

.social-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(214, 204, 191, 0.4);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 90, 43, 0.06), transparent);
    transition: left 0.6s ease;
}

.social-card:hover::before {
    left: 100%;
}

.social-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(139, 90, 43, 0.2);
    box-shadow: 0 20px 40px -12px rgba(139, 90, 43, 0.12),
                0 8px 16px -6px rgba(0, 0, 0, 0.06);
}

.social-card-quote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #1a1a1a;
    flex: 1;
}

.social-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-card-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(139, 90, 43, 0.08);
    color: #8b5a2b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.social-card:hover .social-card-avatar {
    background: rgba(139, 90, 43, 0.14);
    transform: scale(1.1);
}

.social-card-author-info {
    min-width: 0;
}

.social-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-card-name:hover {
    color: #8b5a2b;
}

.social-card-role {
    font-size: 0.6875rem;
    color: #9ca3af;
    line-height: 1.4;
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

