/* ------------------------------------------------------------------
   TROi Home — glass, winter light, modern product vibe
   Designed for MkDocs Material (light + dark)
------------------------------------------------------------------- */

:root{
  --troi-ink: #0b1220;
  --troi-muted: rgba(15, 23, 42, .72);
  --troi-soft: rgba(15, 23, 42, .55);

  --troi-line: rgba(15, 23, 42, .10);
  --troi-line-strong: rgba(15, 23, 42, .18);

  --troi-radius: 22px;

  --troi-glass: rgba(255,255,255,.60);
  --troi-glass-strong: rgba(255,255,255,.75);

  --troi-shadow-soft: 0 14px 30px rgba(2,6,23,.10);
  --troi-shadow: 0 24px 48px rgba(2,6,23,.14);
}

/* ------------------------------------------------------------------
   Winter background light (Nordic, subtle)
------------------------------------------------------------------- */
body{
  background:
    radial-gradient(1000px 600px at 15% -12%, rgba(180,210,255,.16), transparent 60%),
    radial-gradient(900px 540px at 90% 10%, rgba(190,255,230,.12), transparent 58%),
    radial-gradient(800px 500px at 50% 110%, rgba(220,210,255,.12), transparent 55%),
    var(--md-default-bg-color);
}

/* ------------------------------------------------------------------
   Layout
------------------------------------------------------------------- */
.troi-home{
  padding-top: .6rem;
}

/* ------------------------------------------------------------------
   HERO
------------------------------------------------------------------- */
.troi-hero{
  text-align: center;
  padding: clamp(1.8rem, 3vw, 3rem) 0 clamp(1.4rem, 2.5vw, 2.4rem);
}

.troi-hero__title{
  font-weight: 820;
  letter-spacing: -0.045em;
  color: var(--troi-ink);
  font-size: clamp(2.3rem, 5.4vw, 4.2rem);
  line-height: 1.03;
  margin-bottom: .9rem;
}

.troi-hero__subtitle{
  max-width: 60rem;
  margin: 0 auto .7rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--troi-muted);
}

.troi-hero__lead{
  max-width: 56rem;
  margin: 0 auto 1.3rem;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
  color: var(--troi-soft);
}

/* ------------------------------------------------------------------
   CTA
------------------------------------------------------------------- */
.troi-cta{
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.troi-btn{
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  color: var(--troi-ink);

  background:
    linear-gradient(180deg, var(--troi-glass-strong), var(--troi-glass));
  border: 1px solid var(--troi-line);
  box-shadow: var(--troi-shadow-soft);
  backdrop-filter: blur(14px);

  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.troi-btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--troi-shadow);
  border-color: var(--troi-line-strong);
}

.troi-btn--primary{
  background:
    radial-gradient(1200px 300px at 20% 0%, rgba(190,220,255,.35), transparent 60%),
    radial-gradient(1000px 280px at 80% 0%, rgba(200,255,235,.25), transparent 58%),
    linear-gradient(180deg, var(--troi-glass-strong), var(--troi-glass));
  border-color: rgba(180,210,255,.35);
}

/* ------------------------------------------------------------------
   Pills
------------------------------------------------------------------- */
.troi-pill-row{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}

.troi-pill{
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--troi-line);
  background: rgba(255,255,255,.45);
  font-size: .9rem;
  font-weight: 600;
  color: var(--troi-soft);
}

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------- */
.troi-section{
  text-align: center;
  margin: 2.4rem 0 1.1rem;
}

.troi-section__title{
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  font-weight: 780;
  letter-spacing: -0.03em;
  color: var(--troi-ink);
  margin-bottom: .3rem;
}

.troi-section__subtitle{
  max-width: 52rem;
  margin: 0 auto;
  color: var(--troi-muted);
}

/* ------------------------------------------------------------------
   Grid + Glass cards
------------------------------------------------------------------- */
.troi-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.troi-card{
  grid-column: span 6;
  padding: 1.3rem 1.35rem 1.2rem;

  background:
    linear-gradient(180deg, var(--troi-glass-strong), var(--troi-glass));
  border: 1px solid var(--troi-line);
  border-radius: var(--troi-radius);
  box-shadow: var(--troi-shadow-soft);
  backdrop-filter: blur(16px) saturate(1.05);

  transition: transform .16s ease, box-shadow .16s ease;
}

.troi-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--troi-shadow);
}

.troi-card--wide{
  grid-column: span 12;
}

@media (min-width: 900px){
  .troi-card--wide{
    grid-column: span 6;
  }
}

@media (max-width: 900px){
  .troi-card{
    grid-column: span 12;
  }
}

/* Card content */
.troi-card__title{
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--troi-ink);
}

.troi-card__tagline{
  margin-top: .35rem;
  color: var(--troi-muted);
}

.troi-card__body{
  margin-top: .85rem;
  line-height: 1.65;
  color: var(--troi-muted);
}

/* ------------------------------------------------------------------
   Dark mode winter tuning
------------------------------------------------------------------- */
[data-md-color-scheme="slate"]{
  --troi-ink: rgba(248,250,252,.92);
  --troi-muted: rgba(226,232,240,.78);
  --troi-soft: rgba(226,232,240,.62);

  --troi-line: rgba(226,232,240,.14);
  --troi-line-strong: rgba(226,232,240,.26);

  --troi-glass: rgba(12,18,32,.55);
  --troi-glass-strong: rgba(12,18,32,.70);

  --troi-shadow-soft: 0 14px 30px rgba(0,0,0,.32);
  --troi-shadow: 0 26px 54px rgba(0,0,0,.42);
}
