/* ============================================================
   Delitebook Home Hero Banner — visual design adopted from
   the SeenLoop /application/index.html hero section.
   All CSS is scoped under .hero to avoid clashing with the
   existing Delitebook global stylesheets (style.css, responsive.css).
   ============================================================ */

/* Variables — scoped to .hero so we don't override site-wide vars */
.hero {
    --hero-primary: #7c3aed;
    --hero-accent:  #ec4899;
    --hero-text:    #1a1030;
    --hero-mut:     #6b6485;
    --hero-border:  #ece9f4;
    --hero-success: #22c55e;
    --hero-grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --hero-font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --hero-font-head: 'Poppins', 'Inter', sans-serif;
    --hero-transition: 0.28s cubic-bezier(.4, 0, .2, 1);
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    padding: 20px 0 24px;              /* tightened — banner height compacted */
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #f5f2ff 0%, #fdf2f8 100%);
    font-family: var(--hero-font-body);
    color: var(--hero-text);
}

.hero * { box-sizing: border-box; }

.hero .container {
    width: 100%;
    max-width: 1600px;                   /* Option C — right shift (~184px empty on 1920px) */
    padding: 0 clamp(12px, 2vw, 24px);   /* Responsive: 12px mobile → 24px desktop */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ---- Background blobs + grid overlay ---- */
.hero .hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.hero .hero-bg .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;                                  /* was 0.5 — bumped so login-style blobs read clearly in shorter hero */
    animation: heroFloat 14s ease-in-out infinite;
}
.hero .hero-bg .blob.b1 { width: 480px; height: 480px; background: #a78bfa; top: -140px; left: -100px; }
.hero .hero-bg .blob.b2 { width: 540px; height: 540px; background: #f9a8d4; bottom: -180px; right: -150px; animation-delay: -5s; }
.hero .hero-bg .blob.b3 { width: 380px; height: 380px; background: #67e8f9; top: 45%; left: 30%; animation-delay: -9s; opacity: 0.42; }
.hero .hero-bg .grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ---- Inner grid ---- */
.hero .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: start;                /* right column pins to top instead of stretching */
    gap: 32px;
}

.hero .hero-left {
    padding-left: 0;
    animation: heroFadeUp 0.9s ease both;
}

.hero .hero-left > .badge,
.hero .hero-left > .hero-title,
.hero .hero-left > .hero-sub,
.hero .hero-left > .hero-ctas,
.hero .hero-left > .hero-stats,
.hero .hero-left > .hero-mission {
    opacity: 0;
    animation: heroContentIn 0.55s ease-out forwards;
}
.hero .hero-left > .badge        { animation-delay: 0.08s; }
.hero .hero-left > .hero-title   { animation-delay: 0.16s; }
.hero .hero-left > .hero-sub     { animation-delay: 0.24s; }
.hero .hero-left > .hero-ctas    { animation-delay: 0.32s; }
.hero .hero-left > .hero-stats   { animation-delay: 0.40s; }
.hero .hero-left > .hero-mission { animation-delay: 0.48s; }

@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFloat {
    0%,100% { transform: translate(0, 0) scale(1); }
    50%     { transform: translate(30px, -40px) scale(1.08); }
}

/* ---- Badge with pulse ---- */
.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hero-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--hero-text);
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero .pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--hero-success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: heroPulse 1.8s infinite;
}
@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---- Title, subtitle ---- */
.hero .hero-title {
    font-family: var(--hero-font-head);
    font-size: clamp(24px, 3vw, 36px);      /* trimmed for compact banner */
    line-height: 1.1;
    margin: 10px 0 10px;
    font-weight: 800;
    letter-spacing: -1.1px;
    color: var(--hero-text);
}
.hero .grad-text {
    background: var(--hero-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .hero-sub {
    font-size: 14px;
    color: var(--hero-mut);
    max-width: 540px;
    margin: 0 0 14px;
    line-height: 1.55;
}

/* ---- CTAs ---- */
.hero .hero-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.hero .hero-ctas .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--hero-font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--hero-transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.hero .hero-ctas .btn-primary {
    background: var(--hero-grad);
    color: #fff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
.hero .hero-ctas .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.45);
    text-decoration: none;
}
.hero .hero-ctas .btn-outline {
    background: transparent;
    color: var(--hero-text);
    border-color: var(--hero-border);
}
.hero .hero-ctas .btn-outline:hover {
    border-color: var(--hero-primary);
    color: var(--hero-primary);
    text-decoration: none;
}

/* ---- Stats (with login-style vertical dividers) ---- */
.hero .hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hero .hero-stats > div:not(.hero-stats-divider) {
    display: flex;
    flex-direction: column;
}
.hero .hero-stats strong {
    font-family: var(--hero-font-head);
    font-size: 22px;
    font-weight: 800;
    background: var(--hero-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.hero .hero-stats span {
    font-size: 11px;
    color: var(--hero-mut);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 4px;
    font-weight: 600;
}
.hero .hero-stats-divider {
    width: 1px;
    height: 28px;
    background: var(--hero-border);
    align-self: center;
}

/* ---- Mission block (mirrors login page's "Our Mission" copy) ---- */
.hero .hero-mission {
    margin-top: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    max-width: 560px;
}
.hero .hero-mission h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hero-font-head);
    font-size: 12px;
    color: var(--hero-primary);
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 800;
}
.hero .hero-mission-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--hero-grad);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.hero .hero-mission p {
    margin: 0;
    font-size: 13px;
    color: var(--hero-text);
    line-height: 1.55;
}
.hero .hero-mission p strong { color: var(--hero-primary); font-weight: 700; }

/* ============ RIGHT: ORBIT + FLOATING CARDS ============ */
.hero .hero-right {
    position: relative;
    height: clamp(240px, 18vw, 280px);       /* compact — matches left column better */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroFadeUp 1.1s ease 0.15s both;
}

.hero .orbit {
    position: relative;
    width: 260px;                            /* was 320 — compact */
    height: 260px;
    max-width: 100%;
}

.hero .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px dashed rgba(124, 58, 237, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.hero .ring.r1 { width: 180px; height: 180px; animation: heroSpin 30s linear infinite; }
.hero .ring.r2 { width: 260px; height: 260px; animation: heroSpin 60s linear infinite reverse; }
@keyframes heroSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero .planet.main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--hero-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.4);
    animation: heroBob 4s ease-in-out infinite;
    z-index: 2;
}
.hero .planet.main svg { width: 54px; height: 54px; }
@keyframes heroBob {
    0%,100% { transform: translate(-50%, -50%); }
    50%     { transform: translate(-50%, -58%); }
}

.hero .satellite {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(20, 10, 50, 0.12);
    font-size: 18px;
    z-index: 3;
    transform-origin: center;
}
/* 6 satellites — tighter 90px orbit radius */
.hero .satellite.s1 { transform: translate(-50%, -50%) translate(0,   -90px); animation: heroSatOrbit 20s linear infinite; }
.hero .satellite.s2 { transform: translate(-50%, -50%) translate( 78px, -45px); animation: heroSatOrbit 20s linear infinite -3.3s; }
.hero .satellite.s3 { transform: translate(-50%, -50%) translate( 78px,  45px); animation: heroSatOrbit 20s linear infinite -6.6s; }
.hero .satellite.s4 { transform: translate(-50%, -50%) translate(0,    90px); animation: heroSatOrbit 28s linear infinite reverse; }
.hero .satellite.s5 { transform: translate(-50%, -50%) translate(-78px, 45px); animation: heroSatOrbit 28s linear infinite -7s reverse; }
.hero .satellite.s6 { transform: translate(-50%, -50%) translate(-78px,-45px); animation: heroSatOrbit 28s linear infinite -14s reverse; }

@keyframes heroSatOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg)   translateY(-90px) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg) translateY(-90px) rotate(-360deg); }
}

/* ---- Floating cards ---- */
.hero .floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(20, 10, 50, 0.10);
    z-index: 4;
    animation: heroCardFloat 5s ease-in-out infinite;
    font-family: var(--hero-font-body);
}
.hero .floating-card.fc1 { top: 12%;  right: -8px; animation-delay: -1s; }
.hero .floating-card.fc2 { bottom: 8%; left: -20px; animation-delay: -3s; }

.hero .fc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    font-family: var(--hero-font-head);
}
.hero .floating-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--hero-text);
    line-height: 1.2;
}
.hero .floating-card small {
    display: block;
    font-size: 11.5px;
    color: var(--hero-mut);
    margin-top: 2px;
}

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

/* ============ RESPONSIVE ============ */

/* Container padding is fluid via clamp() — no per-breakpoint override needed */

/* Laptop (< 1240px) — tighten grid + orbit */
@media (max-width: 1240px) {
    .hero { padding: 24px 0 32px; }
    .hero .hero-inner { gap: 32px; }
    .hero .hero-right { height: clamp(240px, 22vw, 300px); }
    .hero .orbit { width: 280px; height: 280px; }
    .hero .ring.r1 { width: 190px; height: 190px; }
    .hero .ring.r2 { width: 280px; height: 280px; }
    .hero .planet.main { width: 96px; height: 96px; }
    .hero .planet.main svg { width: 58px; height: 58px; }
    .hero .satellite.s1 { transform: translate(-50%, -50%) translate(0,   -95px); }
    .hero .satellite.s2 { transform: translate(-50%, -50%) translate( 82px, -47px); }
    .hero .satellite.s3 { transform: translate(-50%, -50%) translate( 82px,  47px); }
    .hero .satellite.s4 { transform: translate(-50%, -50%) translate(0,    95px); }
    .hero .satellite.s5 { transform: translate(-50%, -50%) translate(-82px, 47px); }
    .hero .satellite.s6 { transform: translate(-50%, -50%) translate(-82px,-47px); }
    @keyframes heroSatOrbit {
        from { transform: translate(-50%, -50%) rotate(0deg)   translateY(-95px) rotate(0deg); }
        to   { transform: translate(-50%, -50%) rotate(360deg) translateY(-95px) rotate(-360deg); }
    }
}

/* Tablet (< 960px) — stack right on top of left */
@media (max-width: 960px) {
    .hero { padding: 20px 0 28px; }
    .hero .hero-inner { grid-template-columns: 1fr; gap: 20px; }
    .hero .hero-right { height: clamp(240px, 42vw, 300px); order: -1; }
    .hero .orbit { width: 260px; height: 260px; }
    .hero .ring.r1 { width: 180px; height: 180px; }
    .hero .ring.r2 { width: 260px; height: 260px; }
    .hero .planet.main { width: 90px; height: 90px; }
    .hero .planet.main svg { width: 54px; height: 54px; }
    .hero .satellite { width: 40px; height: 40px; font-size: 18px; }
    .hero .satellite.s1 { transform: translate(-50%, -50%) translate(0,   -88px); }
    .hero .satellite.s2 { transform: translate(-50%, -50%) translate( 76px, -44px); }
    .hero .satellite.s3 { transform: translate(-50%, -50%) translate( 76px,  44px); }
    .hero .satellite.s4 { transform: translate(-50%, -50%) translate(0,    88px); }
    .hero .satellite.s5 { transform: translate(-50%, -50%) translate(-76px, 44px); }
    .hero .satellite.s6 { transform: translate(-50%, -50%) translate(-76px,-44px); }
    @keyframes heroSatOrbit {
        from { transform: translate(-50%, -50%) rotate(0deg)   translateY(-88px) rotate(0deg); }
        to   { transform: translate(-50%, -50%) rotate(360deg) translateY(-88px) rotate(-360deg); }
    }
    .hero .floating-card.fc1 { top: 2%;    right: 2%; }
    .hero .floating-card.fc2 { bottom: 2%; left: 2%; }
    .hero .hero-title { margin-top: 8px; }
}

/* Small tablet / large phone (< 640px) */
@media (max-width: 640px) {
    .hero { padding: 16px 0 24px; }
    .hero .hero-title { font-size: clamp(22px, 6.4vw, 30px); }
    .hero .hero-sub { font-size: 14px; margin-bottom: 16px; }
    .hero .hero-ctas .btn { padding: 11px 18px; font-size: 13.5px; }
    .hero .hero-stats { gap: 14px; }
    .hero .hero-stats strong { font-size: 22px; }
    .hero .hero-stats-divider { height: 28px; }
    .hero .hero-mission { margin-top: 18px; }
    .hero .hero-mission p { font-size: 13px; line-height: 1.65; }
    .hero .badge { font-size: 12px; padding: 5px 12px; }
    .hero .floating-card { padding: 8px 12px 8px 8px; }
    .hero .floating-card strong { font-size: 12px; }
    .hero .floating-card small { font-size: 10.5px; }
    .hero .fc-avatar { width: 32px; height: 32px; font-size: 13px; }
}

/* Small phone (< 480px) — tighter orbit + hide inner ring */
@media (max-width: 480px) {
    .hero .hero-right { height: 240px; }
    .hero .orbit { width: 220px; height: 220px; }
    .hero .ring.r1 { width: 150px; height: 150px; }
    .hero .ring.r2 { width: 220px; height: 220px; }
    .hero .planet.main { width: 78px; height: 78px; }
    .hero .planet.main svg { width: 46px; height: 46px; }
    .hero .satellite { width: 36px; height: 36px; font-size: 16px; }
    .hero .satellite.s1 { transform: translate(-50%, -50%) translate(0,   -75px); }
    .hero .satellite.s2 { transform: translate(-50%, -50%) translate( 65px, -38px); }
    .hero .satellite.s3 { transform: translate(-50%, -50%) translate( 65px,  38px); }
    .hero .satellite.s4 { transform: translate(-50%, -50%) translate(0,    75px); }
    .hero .satellite.s5 { transform: translate(-50%, -50%) translate(-65px, 38px); }
    .hero .satellite.s6 { transform: translate(-50%, -50%) translate(-65px,-38px); }
    @keyframes heroSatOrbit {
        from { transform: translate(-50%, -50%) rotate(0deg)   translateY(-75px) rotate(0deg); }
        to   { transform: translate(-50%, -50%) rotate(360deg) translateY(-75px) rotate(-360deg); }
    }
    .hero .hero-ctas { gap: 8px; }
    .hero .hero-ctas .btn { padding: 10px 16px; font-size: 13px; }
    .hero .hero-stats { gap: 14px; }
}

/* Ultra-small (< 380px) — hide floating cards, single-col stats scroll */
@media (max-width: 380px) {
    .hero .floating-card { display: none; }
    .hero .hero-stats { gap: 12px; }
    .hero .hero-stats strong { font-size: 20px; }
    .hero .badge { font-size: 11.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero *, .hero *::before, .hero *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
