/* ============================================
   SUMOFFY - Ethereal Ambient Tech Design
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Minimal white palette with teal accents */
    --bg-deep: #ffffff;
    --bg-surface: #fafbfc;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f7fa;

    --text-primary: #0f1419;
    --text-secondary: #57606a;
    --text-muted: #8c959f;

    --accent-primary: #0d9488;
    --accent-secondary: #14b8a6;
    --accent-glow: rgba(13, 148, 136, 0.08);
    --accent-glow-strong: rgba(13, 148, 136, 0.15);

    --gradient-orb-1: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle, rgba(45, 212, 191, 0.05) 0%, transparent 70%);

    --border-subtle: rgba(13, 148, 136, 0.08);
    --border-accent: rgba(13, 148, 136, 0.2);

    /* Typography */
    --font-display: 'Work Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-orb-1);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-orb-2);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-orb-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

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

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-cta:hover {
    background: var(--accent-glow-strong);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.15);
}

/* ============================================
   ANIMATIONS BASE
   ============================================ */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    text-align: center;
}

.hero .container {
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.mobile-hide {
    display: inline;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    cursor: pointer;
    border: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.3);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: var(--accent-glow);
    border-color: var(--border-accent);
    color: var(--accent-primary);
}

.btn-large {
    padding: 20px 36px;
    font-size: 16px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

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

.visual-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
}

.visual-dots span:first-child { background: #ff6b6b; opacity: 0.8; }
.visual-dots span:nth-child(2) { background: #ffd93d; opacity: 0.8; }
.visual-dots span:last-child { background: #6bcb77; opacity: 0.8; }

.visual-title {
    font-size: 13px;
    color: var(--text-muted);
}

.visual-content {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.doc-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: 10px;
}

.doc-line {
    height: 10px;
    background: linear-gradient(90deg, var(--text-muted) 0%, transparent 100%);
    border-radius: 4px;
    opacity: 0.3;
    animation: shimmer 2s ease-in-out infinite;
}

.doc-line.long { width: 100%; animation-delay: 0s; }
.doc-line.medium { width: 75%; animation-delay: 0.2s; }
.doc-line.short { width: 50%; animation-delay: 0.4s; }

@keyframes shimmer {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.ai-response {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: 8px;
    color: #ffffff;
}

.ai-avatar svg {
    width: 20px;
    height: 20px;
}

.ai-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.typing-text {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: var(--accent-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

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

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: floatCard 4s ease-in-out infinite;
}

.float-card svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.float-1 {
    top: 20%;
    right: -60px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 30%;
    left: -40px;
    animation-delay: -2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--section-padding) 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

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

.feature-card.featured {
    grid-column: span 1;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border-color: var(--border-accent);
}

.feature-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: var(--gradient-orb-1);
    filter: blur(60px);
    opacity: 0.5;
}

.feature-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

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

.feature-card h3 {
    position: relative;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.005em;
}

.feature-card p {
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, #fafbfc 50%, transparent 100%);
}

.steps-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.steps-line {
    position: absolute;
    left: 40px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--border-subtle) 100%);
    opacity: 0.3;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s var(--ease-out-expo);
}

.step.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.step-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
}

.step-pulse {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    opacity: 0;
    animation: stepPulse 2s ease-out infinite;
}

@keyframes stepPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.3); }
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.005em;
}

.step-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.drop-zone {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border: 2px dashed var(--border-accent);
    border-radius: 20px;
    color: var(--accent-primary);
    animation: dropBounce 2s ease-in-out infinite;
}

.drop-zone svg {
    width: 40px;
    height: 40px;
}

@keyframes dropBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.processing-viz {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100px;
}

.process-bar {
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.process-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    animation: processLoad 1.5s ease-in-out infinite;
}

.process-bar:nth-child(2)::after { animation-delay: 0.2s; width: 80%; }
.process-bar:nth-child(3)::after { animation-delay: 0.4s; width: 45%; }

@keyframes processLoad {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.audio-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 60px;
}

.audio-waves span {
    width: 6px;
    background: var(--accent-primary);
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
}

.audio-waves span:nth-child(1) { height: 20px; animation-delay: 0s; }
.audio-waves span:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.audio-waves span:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.audio-waves span:nth-child(4) { height: 30px; animation-delay: 0.3s; }
.audio-waves span:nth-child(5) { height: 40px; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--section-padding) 0;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 32px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s var(--ease-out-expo);
}

.cta-card.animate-in {
    opacity: 1;
    transform: scale(1);
}

.cta-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: var(--gradient-orb-1);
    filter: blur(100px);
    opacity: 0.4;
}

.cta-card h2 {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.015em;
}

.cta-card p {
    position: relative;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card .btn {
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

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

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

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

    .feature-card.featured {
        grid-column: span 2;
    }

    .step {
        grid-template-columns: 60px 1fr;
        gap: 24px;
    }

    .step-visual {
        display: none;
    }

    .steps-line {
        left: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .mobile-hide {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .visual-content {
        grid-template-columns: 1fr;
    }

    .floating-elements {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.featured {
        grid-column: span 1;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .steps-line {
        display: none;
    }

    .step-marker {
        justify-content: center;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-cta {
        padding: 8px 14px;
        font-size: 13px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .step-content h3 {
        font-size: 22px;
    }
}
