/* ========== HOME PAGE ========== */

.home {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* ===== HERO ===== */

.hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 64px;
    border-radius: 32px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dcebe1 0%, #f0f7f2 100%);
    z-index: 0;
}

/* Add a subtle green focus area behind the planet for contrast */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 75%);
    z-index: 1;
    pointer-events: none;
}

/* Animated orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
    top: -120px;
    left: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
    bottom: -100px;
    right: -80px;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    top: 30%;
    right: 15%;
    animation-delay: -5s;
}

@keyframes orbFloat {

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

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

body.dark .hero-bg {
    background: transparent;
}

body.dark .hero {
    background: #090c10;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

body.dark .hero-orb-1 {
    display: block;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

body.dark .hero-orb-2,
body.dark .hero-orb-3 {
    display: none;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 14px;
    border-radius: 999px;

    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);

    font-size: 13px;
    font-weight: 700;
    color: #047857;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    margin-bottom: 20px;
}

body.dark .hero-badge {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Syne', 'Manrope', system-ui, sans-serif;
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    line-height: 1.1;
    text-align: center;
}

.title-abs {
    font-weight: 800;
    color: #2d6a4f;
}

.title-tools {
    font-weight: 600;
    color: #34d399;
}

body.dark .title-abs {
    color: #6ee7b7;
}

body.dark .title-tools {
    color: #a7f3d0;
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 17px);
    color: #334155;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    text-align: center;
    font-weight: 500;
}

body.dark .hero-subtitle {
    color: #94a3b8;
    opacity: 0.7;
}

/* Stats box */
.hero-stats-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 124px;
    height: 124px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 36px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

body.dark .hero-stats-box {
    background: rgba(18, 23, 20, 0.4);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 38px;
    font-weight: 800;
    font-family: 'Syne', 'Manrope', sans-serif;
    color: #059669;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

body.dark .stat-number {
    color: #34d399;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

body.dark .stat-label {
    color: #94a3b8;
}

/* CTA Button */
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 14px 28px;
    border-radius: 14px;
    border: none;

    font-size: 15px;
    font-weight: 600;
    font-family: inherit;

    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;

    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;

    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(5, 150, 105, 0.4);
    filter: brightness(1.05);
}

.hero-cta:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 3px;
}

body.dark .hero-cta {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    color: #0a1a10;
    box-shadow: 0 4px 20px rgba(52, 211, 153, 0.25);
}

body.dark .hero-cta:hover {
    box-shadow: 0 8px 28px rgba(52, 211, 153, 0.4);
}

/* ===== SECTION HEADER ===== */

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Syne', 'Manrope', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
    letter-spacing: -0.02em;
}

body.dark .section-title {
    color: #f1f5f9;
}

.section-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

body.dark .section-subtitle {
    color: #94a3b8;
}

/* ===== SECTIONS ===== */

.home-section {
    margin-bottom: 64px;
}

/* ===== FEATURED TOOLS GRID ===== */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.featured-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.25s ease,
        border-color 0.2s ease;

    outline: none;
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(5, 150, 105, 0.2);
}

.featured-card:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

body.dark .featured-card {
    background: linear-gradient(145deg, #1e1e1e 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

body.dark .featured-card:hover {
    border-color: rgba(52, 211, 153, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.featured-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.featured-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .featured-icon {
    background: #2a2a2a;
}

.featured-icon.featured-icon--dark {
    background: #1a1a1a;
}

body.dark .featured-icon.featured-icon--dark {
    background: #2a2a2a;
}

.featured-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-info {
    flex: 1;
    min-width: 0;
}

.featured-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark .featured-name {
    color: #f1f5f9;
}

.featured-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark .featured-desc {
    color: #94a3b8;
}

.featured-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(5, 150, 105, 0.08);
    color: #059669;
}

body.dark .featured-tag {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.featured-arrow {
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.featured-card:hover .featured-arrow {
    color: #059669;
    transform: translateX(3px);
}

body.dark .featured-card:hover .featured-arrow {
    color: #34d399;
}
