/* Landing Page Styles */

/* ─── Brand Typography ─────────────────────────────────────── */
.brand-text {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.brand-text-nav {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── Hero Section Height (iOS Safari safe) ───────────────── */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dynamic spacing - scales with viewport height */
.hero-mb-1 { margin-bottom: clamp(6px, 1.2vh, 24px); }
.hero-mb-2 { margin-bottom: clamp(8px, 1.8vh, 32px); }
.hero-mb-3 { margin-bottom: clamp(10px, 2.2vh, 40px); }

/* ─── Logo Showcase ────────────────────────────────────────── */
.logo-blend {
    mix-blend-mode: multiply;
}
.logo-container {
    position: relative;
    width: clamp(120px, 24vh, 180px);
    height: clamp(120px, 24vh, 180px);
}
@media (min-width: 640px) {
    .logo-container { width: 230px; height: 230px; }
}
@media (min-width: 768px) {
    .logo-container { width: 260px; height: 260px; }
}

/* Spinning gradient ring - thin elegant border */
.logo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #4CAF50,
        #66BB6A,
        #FF9800,
        #FFB74D,
        #1e3a5c,
        #2a4f7a,
        #4CAF50
    );
    animation: logoRingSpin 8s linear infinite;
    opacity: 0;
}
.logo-ring::after {
    content: '';
    position: absolute;
    inset: 2.5px;
    border-radius: 50%;
    background: white;
}

/* Soft pulsing glow behind logo */
.logo-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76,175,80,0.2) 0%, rgba(30,58,92,0.06) 50%, transparent 70%);
    animation: logoGlowPulse 3s ease-in-out infinite;
    opacity: 0;
}

/* Logo image area */
.logo-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 40px rgba(30,58,92,0.1), 0 2px 12px rgba(0,0,0,0.04);
}

/* ─── Logo Entrance Animation ──────────────────────────────── */
.hero-logo-entrance {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
    animation: logoEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(30px);
    }
    50% {
        opacity: 1;
        transform: scale(1.08) translateY(-5px);
    }
    70% {
        transform: scale(0.97) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ring and glow appear after logo lands */
.hero-logo-entrance .logo-ring {
    animation: logoRingSpin 8s linear infinite, logoRingReveal 1s ease 0.9s forwards;
}
.hero-logo-entrance .logo-glow {
    animation: logoGlowPulse 3s ease-in-out infinite;
    animation-delay: 0.6s;
    animation-fill-mode: backwards;
}

@keyframes logoRingSpin {
    to { transform: rotate(360deg); }
}
@keyframes logoRingReveal {
    from { opacity: 0; }
    to { opacity: 0.55; }
}
@keyframes logoGlowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Subtle float after entrance */
.hero-logo-entrance {
    animation: logoEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards,
               logoFloat 5s ease-in-out 1.4s infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── AI Dot pulse ─────────────────────────────────────────── */
.ai-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    position: relative;
}
.ai-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #4CAF50;
    animation: aiPulse 2s ease-in-out infinite;
}
@keyframes aiPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.8); }
}

/* ─── Hero Background Blobs ────────────────────────────────── */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
    animation: blobFloat 20s ease-in-out infinite;
}
.hero-blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    top: -100px;
    right: -80px;
    animation-delay: 0s;
}
.hero-blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    bottom: -80px;
    left: -60px;
    animation-delay: -7s;
}
.hero-blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #1e3a5c, #2a4f7a);
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

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

/* ─── Floating Language Bubbles ────────────────────────────── */
.floating-langs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.float-bubble {
    position: absolute;
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6B7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    animation: floatBubble 6s ease-in-out infinite;
    opacity: 0.6;
}
.float-bubble-1 { top: 15%; left: 8%; animation-delay: 0s; }
.float-bubble-2 { top: 25%; right: 6%; animation-delay: -1s; }
.float-bubble-3 { bottom: 30%; left: 5%; animation-delay: -2s; }
.float-bubble-4 { top: 12%; right: 15%; animation-delay: -3s; }
.float-bubble-5 { bottom: 20%; right: 8%; animation-delay: -4s; }
.float-bubble-6 { bottom: 35%; left: 15%; animation-delay: -5s; }

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

/* ─── Rotating Text ────────────────────────────────────────── */
.rotating-wrapper {
    display: inline-block;
    position: relative;
    min-width: 100px;
}
@media (min-width: 640px) {
    .rotating-wrapper { min-width: 160px; }
}
.rotating-text {
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.rotating-text.fade-out {
    opacity: 0;
    transform: translateY(-14px) scale(0.95);
}
.rotating-text.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ─── Brand Shimmer ───────────────────────────────────────── */
.brand-shimmer {
    background: linear-gradient(
        120deg,
        #1e3a5c 0%,
        #1e3a5c 40%,
        #2a4f7a 50%,
        #1e3a5c 60%,
        #1e3a5c 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandShimmer 3s ease-in-out 1.5s 1;
}
@keyframes brandShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ─── Logo Sparkles ───────────────────────────────────────── */
.logo-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFB74D;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}
.logo-sparkle::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: inherit;
    filter: blur(3px);
}
.logo-sparkle-1 {
    top: 8%; left: 15%;
    animation: sparkle 2.5s ease-in-out 1.2s infinite;
}
.logo-sparkle-2 {
    top: 5%; right: 20%;
    background: #66BB6A;
    animation: sparkle 3s ease-in-out 1.6s infinite;
}
.logo-sparkle-3 {
    bottom: 10%; right: 10%;
    animation: sparkle 2.8s ease-in-out 2s infinite;
}
.logo-sparkle-4 {
    bottom: 15%; left: 8%;
    background: #66BB6A;
    animation: sparkle 3.2s ease-in-out 1.4s infinite;
}
.logo-sparkle-5 {
    top: 50%; right: 2%;
    animation: sparkle 2.6s ease-in-out 1.8s infinite;
}
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    20% {
        opacity: 1;
        transform: scale(1) translateY(-4px);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.8) translateY(-8px);
    }
    80% {
        opacity: 0;
        transform: scale(0.3) translateY(-14px);
    }
}

/* ─── Hero Fade-in Animations ──────────────────────────────── */
.hero-fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-delay-1 { animation-delay: 0.15s; }
.hero-delay-2 { animation-delay: 0.3s; }
.hero-delay-3 { animation-delay: 0.5s; }
.hero-delay-4 { animation-delay: 0.65s; }
.hero-delay-5 { animation-delay: 0.85s; }
.hero-delay-6 { animation-delay: 1.05s; }
.hero-delay-7 { animation-delay: 1.25s; }
.hero-delay-8 { animation-delay: 1.45s; }

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

/* ─── CTA Button glow ─────────────────────────────────────── */
.cta-primary {
    position: relative;
}
.cta-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A, #4CAF50);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}
.cta-primary:hover::before {
    opacity: 0.4;
}

/* ─── Scroll Indicator (mouse shape) ──────────────────────── */
.scroll-indicator {
    display: inline-block;
    width: 24px;
    height: 38px;
    border: 2px solid #D1D5DB;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.scroll-indicator:hover {
    border-color: #9CA3AF;
}
.scroll-dot {
    display: block;
    width: 4px;
    height: 8px;
    background: #D1D5DB;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ─── Feature Cards ────────────────────────────────────────── */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:nth-child(2) { transition-delay: 0.12s; }
.feature-card:nth-child(3) { transition-delay: 0.24s; }

.feature-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

/* ─── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
    .hero-blob-1 { width: 250px; height: 250px; }
    .hero-blob-2 { width: 200px; height: 200px; }
    .hero-blob-3 { width: 150px; height: 150px; }
    .float-bubble { display: none; }
    .logo-inner { padding: 10px; }
    .logo-glow { inset: -16px; }
    .logo-sparkle { width: 5px; height: 5px; }
}

/* Very small phones (iPhone SE, Galaxy S8) */
@media (max-height: 680px) {
    .hero-mb-1 { margin-bottom: 4px; }
    .hero-mb-2 { margin-bottom: 6px; }
    .hero-mb-3 { margin-bottom: 8px; }
    .logo-container {
        width: 110px;
        height: 110px;
    }
}
