/* ---------------------------------------------------
   RiG²CasT – Site Styles (single file)
   --------------------------------------------------- */

/* CSS Variables */
:root{
  --bg:#f9f9f9;
  --card:#ffffff;
  --ink:#222;
  --muted:#666;
  --accent:#e60023;
  --accent-2:#ff002b;
  --line:#eee;
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Rajdhani',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  margin:0;
  background:var(--bg);
  color:var(--ink);
}
h1,h2,h3{margin:0}
.container{
  width:90%;
  max-width:1100px;
  margin:auto;
  padding:2rem 0;
}

/* ---------------- Nav Bar ---------------- */
.navbar{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:999;
}
.nav-container{
  display:flex; justify-content:space-between; align-items:center;
  padding:.5rem 0;
  position:relative;                 /* allow absolute menu */
}
.nav-logo img{height:40px;width:auto}
.nav-toggle{
  display:block; background:none; border:0; font-size:1.8rem; cursor:pointer; color:#333;
}

/* Mobile menu (hidden by default) */
.nav-links{
  display:none;
  position:absolute; left:0; right:0; top:100%;
  background:#fff; border-bottom:1px solid var(--line);
  padding:.5rem 1rem;
}
.nav-links a{
  display:block;                      /* stack items vertically */
  text-decoration:none; color:#333; font-weight:600;
  padding:.75rem 0;
  transition:color .2s ease;
}
.nav-links a:hover{color:var(--accent)}
.nav-links.show{display:block}        /* shown when toggled */

/* Desktop */
@media (min-width:768px){
  .nav-links{
    position:static; display:flex !important; gap:1.5rem;
    border:0; padding:0; background:transparent;
  }
  .nav-links a{display:inline-block; padding:.25rem 0}
  .nav-toggle{display:none}
}

/* Prevent anchor overlap with sticky header */
.hero, .features, .how-it-works, .story, .cta, .footer{ scroll-margin-top:80px; }


/* Prevent anchor overlap with sticky header */
.hero, .features, .how-it-works, .story, .cta, .footer{
  scroll-margin-top:80px;
}

/* ---------------- Hero ---------------- */
.hero{
  text-align:center;
  padding:4rem 1rem;
  background:linear-gradient(135deg,#ffffff,#f0f0f0);
}
.logo{max-width:300px;margin-bottom:1rem}
.hero h1{font-size:3rem;color:var(--accent)}
.tagline{font-size:1.3rem;margin-bottom:2rem;color:#444}

.btn-primary{
  display:inline-block;
  padding:.75rem 1.5rem;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border-radius:8px;
  transition:background .25s ease, transform .05s ease;
}
.btn-primary:hover{background:var(--accent-2)}
.btn-primary:active{transform:translateY(1px)}

/* ---------------- Features ---------------- */
.features h2{
  text-align:center;
  margin-bottom:2rem;
  color:var(--accent);
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:1.5rem;
}
.feature-card{
  background:var(--card);
  padding:1.5rem;
  border-radius:12px;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
  transition:transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover{
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

/* ---------------- How It Works ---------------- */
.how-it-works h2{
  text-align:center;
  color:var(--accent);
  margin-bottom:2rem;
}
.steps{display:flex;flex-direction:column;gap:1.5rem}
.step{
  background:var(--card);
  padding:1rem;
  border-radius:12px;
  display:flex;
  align-items:center;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
.step-number{
  background:var(--accent);
  color:#fff;
  font-size:1.7rem;
  font-weight:700;
  width:40px;height:40px;flex:0 0 40px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  margin-right:1rem;
}
@media (min-width:768px){
  .steps{flex-direction:row}
  .step{flex:1}
}

/* ---------------- Story / Timeline ---------------- */
.story{background:#fff;padding:4rem 1.5rem}
.story h2{
  text-align:center;color:var(--accent);margin-bottom:1.25rem;
}
.story-intro{
  max-width:840px;margin:0 auto 2.5rem auto;color:#444;text-align:center;
}

.timeline{
  max-width:900px;margin:0 auto;position:relative;padding-left:1rem;
  isolation:isolate;                 /* NEW: create stacking context */
}
.timeline::before{
  content:"";position:absolute;left:32px;top:0;bottom:0;width:2px;
  background:var(--line);
  z-index:0;                         /* NEW: keep the line behind */
}
.t-item{
  display:grid;grid-template-columns:64px 1fr;gap:1rem;margin-bottom:1.5rem;
  align-items:start;position:relative;z-index:1; /* NEW: above the line */
}
.t-dot{
  width:64px;height:64px;border-radius:50%;background:var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;
  box-shadow:0 4px 12px rgba(230,0,35,.18);
  position:relative;z-index:1;       /* NEW: above the line */
}
.t-card{
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:1rem 1.25rem;box-shadow:0 4px 12px rgba(0,0,0,.06);
  position:relative;z-index:1;       /* NEW: above the line */
}
.t-card h3{margin-bottom:.35rem;color:#111}
.t-card p{margin:0;color:#555}

@media (max-width:640px){
  .timeline::before{left:24px}
  .t-item{grid-template-columns:56px 1fr}
  .t-dot{width:56px;height:56px}
}

/* ---------------- CTA ---------------- */
.cta{
  text-align:center;
  background:linear-gradient(135deg,#ffffff,#f0f0f0);
  padding:3rem 1rem;
}
.cta h2{color:var(--accent);margin-bottom:1rem}

/* ---------------- Footer ---------------- */
.footer{
  text-align:center;padding:1rem;background:#f0f0f0;
  font-size:.9rem;color:var(--muted);
}
/* FORCE mobile dropdown to be vertical and drop down */
.nav-container { position: relative; }

.nav-links{
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: none;
  background:#fff;
  border-bottom:1px solid var(--line);
  padding:.5rem 1rem;
  z-index:1000;
}

.nav-links.show{
  display: flex !important;       /* override any display:block */
  flex-direction: column !important;
  align-items: flex-start;
}

.nav-links a{
  display:block; width:100%;
  padding:.75rem 0;
}

/* Desktop */

@media (min-width:768px){
  .nav-links{
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 1rem; 
    border: 0;
    padding: 0;
    background: transparent;
  }
  .nav-links a{
    white-space: nowrap;
  }
}
