/* =========================================================
   Home Page Redesign — Prominent search + split hero
   ========================================================= */

/* ---- Top prominent search bar ---- */
.landing-search-bar {
    padding: 28px 0 18px;
    background: linear-gradient(180deg,
        rgba(20, 184, 166, 0.06) 0%,
        rgba(20, 184, 166, 0.02) 100%);
    border-bottom: 1px solid var(--color-divider);
    position: relative;
}

.landing-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 10px 12px 10px 18px;
    box-shadow: 0 20px 40px -20px rgba(20, 184, 166, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.landing-search-form:focus-within {
    border-color: var(--color-accent-light);
    box-shadow: 0 25px 50px -20px rgba(20, 184, 166, 0.45),
                0 0 0 4px rgba(20, 184, 166, 0.12);
    transform: translateY(-1px);
}

.landing-search-icon {
    color: var(--color-accent-light);
    font-size: 18px;
    display: flex;
    align-items: center;
}

.landing-search-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-family: inherit;
    padding: 8px 4px;
    min-width: 0;
}

.landing-search-input::placeholder {
    color: var(--color-text-muted);
}

.landing-search-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #14b8a6, #10b981);
    color: #fff;
    border: 0;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 18px rgba(20, 184, 166, 0.35);
}

.landing-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.45);
}

.landing-search-suggest {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    max-width: 860px;
    margin: 12px auto 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.landing-search-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.landing-search-suggest a {
    color: var(--color-accent-light);
    text-decoration: none;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    padding: 4px 10px;
    border-radius: 999px;
    transition: background 0.2s, transform 0.15s;
}

.landing-search-suggest a:hover {
    background: rgba(20, 184, 166, 0.18);
    transform: translateY(-1px);
}

/* ---- Hero: split layout ---- */
.hero-split {
    padding: 56px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 20% 0%, rgba(20, 184, 166, 0.15) 0%, transparent 60%),
        radial-gradient(600px 300px at 95% 40%, rgba(16, 185, 129, 0.1) 0%, transparent 60%),
        radial-gradient(400px 200px at 10% 100%, rgba(45, 212, 191, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-split-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 184, 166, 0.1);
    color: var(--color-accent-light);
    border: 1px solid rgba(20, 184, 166, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    background: linear-gradient(135deg, #14b8a6 0%, #22d3ee 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 0 28px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-btn-primary,
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #14b8a6, #10b981);
    color: #fff;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.35);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(20, 184, 166, 0.5);
}

.hero-btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.hero-btn-secondary:hover {
    border-color: var(--color-accent-light);
    background: rgba(20, 184, 166, 0.08);
    transform: translateY(-2px);
}

.hero-progress-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(20, 184, 166, 0.25);
    color: var(--color-text-secondary);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    margin-bottom: 22px;
}
.hero-progress-pill strong { color: var(--color-text-primary); }
.hero-progress-badge {
    background: linear-gradient(135deg, #14b8a6, #10b981);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: 4px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-divider);
    margin-top: 8px;
    flex-wrap: wrap;
}

.hero-metric { display: flex; flex-direction: column; }
.hero-metric-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--color-accent-light);
    line-height: 1;
}
.hero-metric-lbl {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    letter-spacing: 0.3px;
}
.hero-metric-sep {
    width: 1px;
    height: 34px;
    background: var(--color-divider);
}

/* ---- Hero right: visual ---- */
.hero-right {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 460px;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.7;
    animation: orb-float 8s ease-in-out infinite;
}
.hero-orb-1 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #14b8a6 0%, transparent 65%);
    top: 5%; left: 15%;
}
.hero-orb-2 {
    width: 220px; height: 220px;
    background: radial-gradient(circle, #a78bfa 0%, transparent 65%);
    bottom: 10%; right: 5%;
    animation-delay: -3s;
}
.hero-orb-3 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, #22d3ee 0%, transparent 65%);
    top: 55%; left: 5%;
    animation-delay: -5s;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.08); }
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(19, 27, 46, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: card-float 6s ease-in-out infinite;
}

.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hero-float-title {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    line-height: 1.2;
}
.hero-float-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.hero-float-card-1 { top: 8%; left: 2%; animation-delay: 0s; }
.hero-float-card-2 { top: 10%; right: 2%; animation-delay: -1.5s; }
.hero-float-card-3 { bottom: 8%; left: 5%; animation-delay: -3s; }
.hero-float-card-4 { bottom: 12%; right: 3%; animation-delay: -4.5s; }

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

/* Terminal mockup in center */
.hero-terminal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    max-width: 85%;
    background: rgba(8, 12, 22, 0.92);
    border: 1px solid rgba(20, 184, 166, 0.35);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.hero-terminal-head {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 184, 166, 0.08);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(20, 184, 166, 0.15);
}
.hero-terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.hero-terminal-title {
    margin-left: 8px;
    color: var(--color-text-muted);
    font-size: 0.72rem;
}
.hero-terminal-body {
    padding: 14px 16px;
    color: #e2e8f0;
    line-height: 1.7;
}
.hl-prompt { color: #14b8a6; font-weight: 600; }
.hl-cmd { color: #e2e8f0; }
.hl-muted { color: #64748b; }
.hl-ok { color: #22c55e; }
.hl-caret { animation: blink 1s step-end infinite; color: #14b8a6; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Why section ---- */
.why-section {
    padding: 56px 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.why-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s;
}
.why-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-light);
}
.why-card i {
    font-size: 1.6rem;
    color: var(--color-accent-light);
    margin-bottom: 12px;
    display: block;
}
.why-card h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--color-text-primary);
}
.why-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* ---- Hide old hero styles that we don't use anymore ---- */
.hero { display: none !important; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-right {
        min-height: 360px;
        order: 2;
    }
    .hero-visual { min-height: 360px; }
    .hero-terminal { width: 280px; }
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .landing-search-form {
        flex-wrap: wrap;
        padding: 12px;
    }
    .landing-search-submit {
        width: 100%;
        justify-content: center;
    }
    .hero-split { padding: 28px 0 40px; }
    .hero-metrics { gap: 16px; }
    .hero-metric-num { font-size: 1.45rem; }
    .hero-float-card-1, .hero-float-card-4 { display: none; }
    .why-grid {
        grid-template-columns: 1fr;
    }
}
