:root{
  --home-bg-deep:#0a1020;
  --home-bg-mid:#121933;
  --home-surface:rgba(12,18,36,.92);
  --home-surface-2:rgba(20,27,48,.96);
  --home-line:rgba(255,255,255,.08);
  --home-line-strong:rgba(255,255,255,.14);
  --home-text:rgba(248,250,255,.94);
  --home-text-soft:rgba(216,223,236,.82);
  --home-text-muted:rgba(200,208,225,.72);
  --home-gold:#d4af37;
  --home-gold-soft:rgba(212,175,55,.20);
  --home-shadow:0 16px 40px rgba(0,0,0,.28);
  --home-shadow-soft:0 12px 30px rgba(0,0,0,.20);
  --home-radius-xl:28px;
  --home-radius-lg:24px;
  --home-radius-md:18px;
}

/* =========================================================
   HOME WRAPPER / OFFSET
   ========================================================= */

main{
  padding-top:24px;
  padding-bottom:24px;
}

@media (max-width:768px){
  main{
    padding-top:24px;
    padding-bottom:12px;
  }
}

/* =========================================================
   HOME LAYOUT
   ========================================================= */

.hero{
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) minmax(320px, .95fr);
  gap:24px;
  align-items:stretch;
  margin:0 0 28px;
  padding-top:8px;
}

.hero .panel,
.hero .featured{
  min-width:0;
}

/* =========================================================
   LEFT PANEL
   ========================================================= */

.hero .panel{
  padding:34px 32px 30px;
  border-radius:var(--home-radius-xl);
  background:linear-gradient(180deg, rgba(11,18,40,.96) 0%, rgba(8,14,30,.98) 100%);
  border:1px solid var(--home-line);
  box-shadow:
    0 20px 52px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.03);
  overflow:visible;
}

.hero .panel h1{
  display:block;
  margin:0 0 18px;
  font-size:clamp(2.8rem, 4.6vw, 4.25rem);
  line-height:1.03;
  letter-spacing:-0.045em;
  color:var(--home-text);
  text-wrap:balance;
}

.hero .lead{
  margin:0 0 16px;
  font-size:1.08rem;
  line-height:1.66;
  color:var(--home-text-soft);
}

.hero .lead em{
  color:rgba(255,255,255,.92);
}

/* =========================================================
   DAILY FEATURE
   ========================================================= */

.daily-feature{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:100%;
  margin:22px 0 16px;
  padding:18px 20px;
  border-radius:24px;
  text-decoration:none;
  color:inherit;
  background:linear-gradient(180deg, rgba(28,34,58,.96) 0%, rgba(16,20,36,.98) 100%);
  border:1px solid rgba(212,175,55,.20);
  box-shadow:
    0 14px 36px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.03);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.daily-feature:hover{
  transform:translateY(-3px);
  border-color:rgba(212,175,55,.34);
  box-shadow:
    0 18px 42px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.daily-feature-text{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  flex:1 1 auto;
}

.daily-feature-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.84rem;
  font-weight:700;
  letter-spacing:.04em;
  color:#f1d98a;
  text-transform:uppercase;
}

.daily-feature-text strong{
  display:block;
  margin:0;
  font-size:clamp(1.2rem, 1.8vw, 1.62rem);
  line-height:1.15;
  color:rgba(255,255,255,.96);
  letter-spacing:-0.02em;
}

.daily-feature-text span:last-child{
  display:block;
  color:var(--home-text-soft);
  line-height:1.52;
  font-size:1rem;
}

.daily-feature-thumb{
  flex:0 0 72px;
  width:72px;
  height:72px;
  margin-left:8px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--home-line);
  background:rgba(255,255,255,.03);
  box-shadow:0 8px 22px rgba(0,0,0,.22);
}

.daily-feature-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* =========================================================
   QUICK TOOLS
   ========================================================= */

.quick-tools{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:8px;
}

.qtool{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-width:0;
  min-height:94px;
  padding:16px 18px;
  border-radius:22px;
  text-decoration:none;
  color:rgba(245,247,252,.92);
  font-size:1.02rem;
  font-weight:600;
  line-height:1.35;
  background:linear-gradient(180deg, rgba(24,31,56,.94) 0%, rgba(18,24,44,.98) 100%);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:
    0 10px 24px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.02);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

.qtool:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.13);
  box-shadow:
    0 14px 32px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.03);
  color:#fff;
}

.qtool .thumb{
  flex:0 0 58px;
  width:58px;
  height:58px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.qtool .thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* =========================================================
   FEATURED MOON CARD
   ========================================================= */

.hero .featured{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:100%;
  padding:28px 26px 24px;
  border-radius:var(--home-radius-xl);
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  background:linear-gradient(180deg, rgba(8,10,18,.18) 0%, rgba(7,9,16,.72) 50%, rgba(6,8,14,.9) 100%);
  border:1px solid var(--home-line);
  box-shadow:
    0 20px 52px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.hero .featured::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(180deg, rgba(4,8,16,.18) 0%, rgba(5,8,14,.45) 45%, rgba(5,7,12,.78) 100%);
}

.hero .featured > *{
  position:relative;
  z-index:1;
}

.hero .featured img{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:saturate(.95) brightness(.72);
}

.hero .featured h2{
  margin:0 0 14px;
  font-size:clamp(2rem, 3vw, 2.75rem);
  line-height:1.08;
  letter-spacing:-0.03em;
  color:rgba(255,244,240,.95);
  text-wrap:balance;
}

.hero .featured p{
  margin:0;
  max-width:34ch;
  font-size:1.03rem;
  line-height:1.62;
  color:rgba(239,229,224,.88);
}

/* =========================================================
   BLOG SECTION
   ========================================================= */

.home-blog{
  margin-top:10px;
}

.home-blog-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:16px;
}

.home-blog-head h2{
  margin:0;
  font-size:clamp(1.7rem, 2.4vw, 2.3rem);
  line-height:1.1;
  letter-spacing:-0.02em;
  color:rgba(255,255,255,.94);
}

.home-blog-all{
  color:rgba(216,225,245,.82);
  text-decoration:none;
  font-size:.96rem;
  font-weight:600;
  transition:color .18s ease, transform .18s ease;
}

.home-blog-all:hover{
  color:rgba(255,255,255,.96);
  transform:translateX(2px);
}

.home-blog-grid{
  align-items:stretch;
}

.home-blog-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:420px;
  padding:18px;
  border-radius:24px;
  text-decoration:none;
  color:inherit;
  background:linear-gradient(180deg, rgba(30,36,58,.92) 0%, rgba(16,20,36,.96) 100%);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    0 12px 34px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.03);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.home-blog-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,255,255,.14);
  box-shadow:
    0 18px 42px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.home-blog-thumb{
  margin-bottom:16px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  aspect-ratio:1200 / 675;
}

.home-blog-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

.home-blog-title{
  display:block;
  margin:0 0 12px;
  font-size:clamp(1.15rem, 1.4vw, 1.38rem);
  line-height:1.25;
  font-weight:700;
  color:rgba(248,250,255,.92);
  letter-spacing:-0.01em;
}

.home-blog-excerpt{
  margin:0;
  color:rgba(214,221,236,.78);
  line-height:1.55;
  font-size:1rem;
}

.home-blog-readmore{
  margin-top:auto;
  padding-top:18px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:rgba(228,233,244,.84);
  font-size:.96rem;
  font-weight:600;
  letter-spacing:.01em;
  transition:color .18s ease;
}

.home-blog-readmore span{
  display:inline-block;
  transition:transform .18s ease;
}

.home-blog-card:hover .home-blog-readmore{
  color:rgba(255,255,255,.94);
}

.home-blog-card:hover .home-blog-readmore span{
  transform:translateX(3px);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:1100px){
  .hero{
    grid-template-columns:1fr;
  }

  .hero .featured{
    min-height:480px;
  }
}

@media (max-width:980px){
  .home-blog-card{
    min-height:unset;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:768px){
  .hero{
    grid-template-columns:1fr;
    gap:18px;
    padding-top:10px;
    margin-bottom:16px;
  }

  .hero .panel,
  .hero .featured{
    min-width:0;
    overflow:visible;
  }

  .hero .panel{
    height:auto;
    min-height:0;
    padding:34px 18px 22px;
  }

  .hero .panel h1{
    margin:0 0 14px;
    padding:0;
    font-size:clamp(1.85rem, 8vw, 2.35rem);
    line-height:1.14;
    letter-spacing:-0.03em;
    white-space:normal;
    word-break:normal;
    overflow-wrap:break-word;
    overflow:visible;
    text-wrap:balance;
  }

  .hero .lead{
    margin:0 0 14px;
    font-size:1rem;
    line-height:1.6;
  }

  .daily-feature{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:16px 0 14px;
    padding:16px;
    border-radius:22px;
  }

  .daily-feature-text{
    min-width:0;
    gap:5px;
    flex:1 1 auto;
  }

  .daily-feature-kicker{
    font-size:.74rem;
    line-height:1.2;
  }

  .daily-feature-text strong{
    font-size:1.34rem;
    line-height:1.18;
  }

  .daily-feature-text span:last-child{
    font-size:.96rem;
    line-height:1.52;
  }

  .daily-feature-thumb{
    width:56px;
    height:56px;
    flex:0 0 56px;
    margin-left:8px;
    border-radius:14px;
    align-self:center;
  }

  .quick-tools{
    grid-template-columns:1fr;
    gap:12px;
  }

  .qtool{
    min-height:unset;
    padding:14px;
    font-size:1rem;
    line-height:1.35;
  }

  .qtool .thumb{
    width:48px;
    height:48px;
    flex:0 0 48px;
  }

  .hero .featured{
    min-height:360px;
    padding:22px 18px 20px;
    overflow:hidden;
  }

  .hero .featured h2{
    font-size:clamp(1.45rem, 6vw, 1.95rem);
    line-height:1.16;
  }

  .hero .featured p{
    max-width:none;
    font-size:1rem;
    line-height:1.58;
  }

  .home-blog{
    margin-top:0;
  }

  .home-blog-head{
    align-items:flex-start;
    margin-bottom:14px;
  }

  .home-blog-head h2{
    font-size:clamp(1.45rem, 6vw, 1.9rem);
    line-height:1.15;
  }

  .home-blog-all{
    font-size:.94rem;
  }

  .home-blog-card{
    padding:16px;
    border-radius:20px;
  }

  .home-blog-thumb{
    margin-bottom:14px;
    border-radius:14px;
  }

  .home-blog-title{
    margin-bottom:10px;
    font-size:1.1rem;
    line-height:1.28;
  }

  .home-blog-excerpt{
    font-size:.97rem;
    line-height:1.55;
  }

  .home-blog-readmore{
    padding-top:16px;
    font-size:.94rem;
  }

  main > *:last-child{
    margin-bottom:0 !important;
  }
}

@media (max-width:560px){
  .daily-feature{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .daily-feature-text{
    flex:1 1 auto;
    min-width:0;
  }

  .daily-feature-thumb{
    flex:0 0 52px;
    width:52px;
    height:52px;
    margin-left:8px;
    align-self:center;
  }
}

@media (max-width:480px){
  main{
    padding-top:24px;
    padding-bottom:10px;
  }

  .hero{
    padding-top:8px;
    margin-bottom:14px;
  }

  .hero .panel{
    padding:32px 16px 20px;
  }

  .hero .panel h1{
    font-size:clamp(1.65rem, 8.8vw, 2.05rem);
    line-height:1.16;
  }

  .hero .lead{
    font-size:.97rem;
    line-height:1.58;
  }

  .daily-feature{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    padding:15px;
    gap:12px;
    border-radius:20px;
  }

  .daily-feature-kicker{
    font-size:.7rem;
  }

  .daily-feature-text{
    flex:1 1 auto;
    min-width:0;
  }

  .daily-feature-text strong{
    font-size:1.2rem;
    line-height:1.2;
  }

  .daily-feature-text span:last-child{
    font-size:.93rem;
    line-height:1.5;
  }

  .daily-feature-thumb{
    width:52px;
    height:52px;
    flex:0 0 52px;
    margin-left:8px;
    border-radius:13px;
    align-self:center;
  }

  .qtool{
    padding:13px;
    font-size:.97rem;
    line-height:1.34;
  }

  .qtool .thumb{
    width:46px;
    height:46px;
    flex:0 0 46px;
  }

  .hero .featured h2{
    font-size:clamp(1.32rem, 7vw, 1.7rem);
    line-height:1.16;
  }

  .hero .featured p{
    font-size:.96rem;
    line-height:1.56;
  }

  .home-blog{
    margin-top:0;
  }

  .home-blog-head{
    gap:10px;
  }

  .home-blog-head h2{
    font-size:1.38rem;
  }

  .home-blog-card{
    padding:14px;
    border-radius:18px;
  }

  .home-blog-title{
    font-size:1.04rem;
  }

  .home-blog-excerpt{
    font-size:.95rem;
  }

  .home-blog-readmore{
    font-size:.92rem;
  }

  main > *:last-child{
    margin-bottom:0 !important;
  }
}