/* KeClaw Website Styles — Premium Dark Edition */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #07070f;
}

/* ─── Navigation ─── */
.nav-glass {
    background: rgba(7, 7, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-glass.scrolled {
    background: rgba(7, 7, 15, 0.93);
    border-bottom-color: rgba(255, 255, 255, 0.09);
}

/* ─── Buttons ─── */
.btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255, 107, 53, 0.45);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* ─── Hero Background ─── */
.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 45%, rgba(255, 107, 53, 0.14) 0%, transparent 65%),
        radial-gradient(ellipse 55% 45% at 85% 55%, rgba(0, 78, 137, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 179, 71, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 75%);
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: orb-drift 14s ease-in-out infinite;
}

.orb-orange {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.28), transparent 70%);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.orb-blue {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 78, 137, 0.28), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0); }
    25%  { transform: translate(40px, -30px); }
    50%  { transform: translate(20px, 45px); }
    75%  { transform: translate(-30px, 15px); }
}

/* ─── Badge ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
    animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 6px rgba(74, 222, 128, 0.6); }
    50%       { box-shadow: 0 0 14px rgba(74, 222, 128, 1); }
}

/* ─── Gradient text ─── */
.gradient-text {
    background: linear-gradient(135deg, #FF6B35 0%, #FFB347 55%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradient-shift 5s ease-in-out infinite;
}

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

/* ─── Lobster float ─── */
.lobster-hero {
    display: inline-block;
    animation: lobster-float 4.5s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(255, 107, 53, 0.45));
}

@keyframes lobster-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%       { transform: translateY(-9px) rotate(2deg); }
    75%       { transform: translateY(5px) rotate(-1.5deg); }
}

/* ─── Stats row ─── */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    padding: 0 36px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.01em;
}

.stat-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
}

/* ─── Scroll indicator ─── */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.22);
    animation: scroll-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.35; }
    50%       { transform: translateX(-50%) translateY(7px); opacity: 0.7; }
}

/* ─── Section tags ─── */
.section-tag {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.22);
    color: #FF6B35;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* ─── Section ambient glows ─── */
.section-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    opacity: 0.055;
}

.section-glow-left {
    background: radial-gradient(circle, #FF6B35, transparent);
    top: 50%;
    left: -250px;
    transform: translateY(-50%);
}

.section-glow-right {
    background: radial-gradient(circle, #004E89, transparent);
    top: 50%;
    right: -250px;
    transform: translateY(-50%);
}

/* ─── Feature Cards ─── */
.feature-card {
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.065);
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

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

.feature-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 107, 53, 0.28);
    box-shadow: 0 0 45px rgba(255, 107, 53, 0.09), 0 24px 48px rgba(0, 0, 0, 0.35);
    transform: translateY(-5px) !important;
}

/* Icon boxes */
.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-orange { background: rgba(255, 107, 53, 0.14); border: 1px solid rgba(255, 107, 53, 0.22); }
.icon-blue   { background: rgba(0, 78, 137, 0.18);   border: 1px solid rgba(0, 78, 137, 0.28); }
.icon-purple { background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.22); }
.icon-green  { background: rgba(34, 197, 94, 0.12);  border: 1px solid rgba(34, 197, 94, 0.2); }
.icon-yellow { background: rgba(255, 179, 71, 0.12); border: 1px solid rgba(255, 179, 71, 0.2); }

/* ─── Step circles ─── */
.step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.32);
    background: rgba(255, 107, 53, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.step-group:hover .step-circle {
    background: rgba(255, 107, 53, 0.16);
    border-color: rgba(255, 107, 53, 0.55);
    box-shadow: 0 0 24px rgba(255, 107, 53, 0.25);
}

/* ─── Chat Demo ─── */
.chat-demo {
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    overflow: hidden;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg-user { display: flex; justify-content: flex-end; }
.chat-msg-bot  { display: flex; align-items: flex-start; gap: 10px; }

.chat-bubble-user {
    background: linear-gradient(135deg, #FF6B35, #FF8C5A);
    color: white;
    border-radius: 16px 4px 16px 16px;
    padding: 10px 14px;
    max-width: 78%;
    font-size: 0.875rem;
    line-height: 1.55;
}

.chat-bubble-bot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px 16px 16px 16px;
    padding: 10px 14px;
    max-width: 78%;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

/* ─── Scenario Cards ─── */
.scenario-card {
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.065);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.scenario-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.scenario-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 53, 0.22);
    transform: translateY(-5px) !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.scenario-icon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scenario-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 107, 53, 0.75);
    background: rgba(255, 107, 53, 0.09);
    border: 1px solid rgba(255, 107, 53, 0.18);
    padding: 3px 9px;
    border-radius: 100px;
}

.scenario-example {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
}

/* ─── Download Cards ─── */
.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.download-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(255, 107, 53, 0.15), 0 0 0 1px rgba(255, 107, 53, 0.15);
}

.download-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B35;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.download-card:hover .download-card-icon {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
}

.download-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.download-card-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.01em;
}

.download-card-btn {
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 100px;
    padding: 5px 16px;
    transition: all 0.3s ease;
}

.download-card:hover .download-card-btn {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
}

/* ─── CTA glow ─── */
.cta-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.13), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(50px);
}

/* ─── Loading spinner ─── */
.loading {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    border-top-color: #FF6B35;
    animation: spin 0.8s linear infinite;
}

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

/* ─── Focus ─── */
a:focus-visible, button:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.6);
    outline-offset: 3px;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #07070f; }
::-webkit-scrollbar-thumb { background: rgba(255, 107, 53, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 107, 53, 0.5); }

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .stat-item    { padding: 0 18px; }
    .stat-number  { font-size: 1.6rem; }
    .orb-orange   { width: 350px; height: 350px; }
    .orb-blue     { width: 280px; height: 280px; }
    .hero-grid    { display: none; }
    .stat-divider { height: 32px; }
}

/* ─── Print ─── */
@media print {
    nav, #download { display: none; }
}
