/* ===== StarSafe / Skull — full style.css =====
   - Mobile-first, slide-down mobile menu
   - Desktop: header links RIGHT, compact height
   - Brand text sized to match screenshot
   - Sticky footer layout
================================================ */

/* Reset & base */
*,*::before,*::after{box-sizing:border-box}
:root{color-scheme:light dark}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  margin:0;
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#0a0f1a;
  color:#e8eefc;

  /* Sticky footer */
  display:grid;
  grid-template-rows:auto 1fr auto;
  min-height:100vh;
  min-height:100svh;
}

/* Tokens */
:root{
  --bg:#0a0f1a;
  --surface:#0f1626;
  --surface-2:#121c30;
  --text:#e8eefc;
  --muted:#9aa6c4;
  --border:rgba(148,163,184,.15);
  --brand:#3b82f6;
  --accent:#22d3ee;
  --radius:16px;
  --shadow:0 12px 40px rgba(0,0,0,.35);
  --maxw:1100px;

  /* Header sizing (matches screenshot) */
  --header-h:44px;
  --nav-gap:24px;

  /* Mobile menu */
  --menu-max:60vh;

  /* Blue → Yellow gradient tokens */
  --by-blue:#3b82f6;
  --by-blue-200:#60a5fa;
  --by-yellow:#facc15;
}
@media (prefers-color-scheme: light){
  :root{
    --bg:#f7f8ff; --surface:#ffffff; --surface-2:#f2f5ff;
    --text:#0a0f1a; --muted:#5b6b8d; --border:rgba(15,23,42,.12);
  }
}

.inner{max-width:var(--maxw);margin-inline:auto;padding-inline:16px}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

/* ======================== Header ======================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:
    radial-gradient(60% 700% at 50% 0%, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 42%),
    #0b0e14;
  border-bottom:1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
}
.site-header .inner{
  position:relative;
  height:var(--header-h);
  display:flex; align-items:center; gap:12px;
  padding-inline:16px;
}

/* Brand “Skull•” / “StarSafe” — compact like screenshot */
.brand{
  font-weight:800;
  font-size:18px;
  line-height:1;
  letter-spacing:.2px;
  color:#e7ebf7;
  text-decoration:none;
  -webkit-font-smoothing:antialiased;
}
.brand::after{
  content:"•";
  position:relative;
  top:-2px;
  margin-left:6px;
  font-size:18px;
  color:#fff;
  opacity:.95;
}

/* Burger */
.nav-toggle{
  width:40px; height:32px; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:#101623;
  color:#e8eefc;
  cursor:pointer;
}

/* -------- Mobile nav (slide-down) -------- */
.nav{
  position:absolute; left:12px; right:12px; top:calc(100% + 8px);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:.35rem;
  box-shadow:var(--shadow);
  display:flex; flex-direction:column; gap:.25rem;

  /* collapsed */
  max-height:0; overflow:hidden;
  opacity:0; transform:translateY(-6px);
  visibility:hidden; pointer-events:none;

  transition:
    max-height .35s ease,
    opacity .25s ease,
    transform .25s ease,
    visibility 0s linear .35s;
  will-change:transform,opacity;
}
.nav a{
  padding:.6rem .7rem;
  border-radius:10px;
  display:block;
  color:var(--text);
  text-decoration:none;
}
.nav a:hover{background:rgba(59,130,246,.12)}
body.nav-open .nav{
  max-height:var(--menu-max);
  opacity:1; transform:translateY(0);
  visibility:visible; pointer-events:auto;
  transition:
    max-height .35s ease,
    opacity .25s ease,
    transform .25s ease;
}

/* -------- Desktop nav: RIGHT-aligned -------- */
@media (min-width:768px){
  .nav{
    position:static;
    background:transparent; border:0; box-shadow:none; padding:0; margin:0;
    display:flex; flex-direction:row; gap:var(--nav-gap);
    margin-left:auto;             /* push links to the right */
    max-height:none; opacity:1; transform:none; visibility:visible; pointer-events:auto;
    overflow:visible;
  }
  .nav a{
    padding:0;                    /* compact like screenshot */
    font-size:14px;
    font-weight:600;
    color:#cfd6e6;
  }
  .nav a:hover{ color:#ffffff; text-decoration:none }
  .nav-toggle{ display:none }
}

/* ======================== Main ======================== */
main.inner{padding-block:28px}
h1{margin:0 0 .5rem;font-size:clamp(1.6rem,2.4vw + 1rem,2.4rem);line-height:1.15}
h4{margin:.25rem 0 1rem;color:var(--muted);font-weight:600}
main p{margin:0 0 1.25rem;color:var(--muted)}

/* CTA buttons as links (Blue → Yellow gradient) */
a.btn{
  display:inline-block;
  color:#fff; text-decoration:none;
  border-radius:14px;
  padding:.7rem 1.1rem;
  font-weight:800; letter-spacing:.2px;
  background:linear-gradient(135deg, var(--by-blue) 0%, var(--by-blue-200) 45%, var(--by-yellow) 100%);
  box-shadow:var(--shadow);
  transition:filter .2s ease, transform .06s ease;
  margin:.25rem .4rem .25rem 0;
}
a.btn:hover{filter:brightness(1.06)}
a.btn:active{transform:translateY(1px)}
.actions{display:flex;flex-wrap:wrap;gap:.6rem}

/* Optional sections/cards */
.section{padding-block:1rem 2.5rem}
.section-title{font-size:1.75rem;margin:0 0 1rem}
.section-title::after{
  content:"";display:block;width:56px;height:3px;border-radius:3px;
  background:linear-gradient(90deg,var(--brand),var(--accent));margin-top:.5rem
}
.card-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.card{
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
  border:1px solid var(--border);
  border-radius:20px;
  padding:1.1rem 1.1rem .8rem;
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset, var(--shadow);
}
.card h3{margin:.1rem 0 .6rem;font-size:1.15rem}
.card ul{margin:0 0 .8rem 1.1rem;padding:0}
.card li{margin:.2rem 0}
.card-tag{
  display:inline-block;margin-bottom:.9rem;font-size:.8rem;color:var(--muted);
  text-decoration:none;border-radius:10px;padding:.25rem .5rem;background:rgba(148,163,184,.12)
}
.card-tag:hover{text-decoration:none;filter:brightness(1.08)}

/* ======================== Footer ======================== */
.site-footer{
  border-top:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 92%, transparent);
}
.footer-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:1rem 16px;color:var(--muted)
}
.footer-link{color:var(--muted)}
.footer-link:hover{color:var(--text);text-decoration:none}

/* ======================== A11y & Motion ======================== */
:where(a,button,.btn,.nav a){-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid rgba(59,130,246,.5);outline-offset:2px;border-radius:12px}
@media (prefers-reduced-motion: reduce){
  .nav{transition:none}
  body.nav-open .nav{transition:none}
  *{animation:none !important;transition:none !important}
}

/* ===== Flush header edges (logo left, links right) ===== */
:root{
  --edge-pad: 0px;   /* set to 16px if you want a little breathing room later */
}

/* Make header span full width with no side padding */
.site-header .inner{
  max-width: none;
  width: 100%;
  padding-inline: var(--edge-pad);
}

/* Ensure the brand hugs the left edge */
.brand{
  margin-left: 0;
}

/* Right-align the nav on desktop */
@media (min-width: 768px){
  .nav{
    margin-left: auto;   /* pushes links fully right */
    gap: var(--nav-gap); /* keep your link spacing */
  }
}

/* Make the mobile dropdown align with the same edge padding */
.nav{
  left: var(--edge-pad);
  right: var(--edge-pad);
}

/*Miscellaneous styles (pc styles)*/
.main-content {
  padding: 20px;
  background-color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

/* Center the actions row */
.actions{
  display:flex;
  justify-content:center;     /* center horizontally */
  align-items:center;
  gap:14px;                   /* space between buttons */
  flex-wrap:wrap;
  padding-block:8px 24px;     /* a little breathing room */
}

/* Remove the default margins from .btn so true center aligns */
.actions .btn{ margin:0 }

/* Credit page — stacked rounded cards like the screenshot */
.contact-screen{
  min-height:100dvh;
  display:grid;
  align-content:start;
  justify-items:center;
  gap:22px;
  padding:96px 20px 48px;
}

.contact-title{
  max-width:900px;
  text-align:center;
  font-weight:800;
  letter-spacing:.2px;
  margin:0 0 6px;

  /* Blue → Yellow gradient text */
  background:linear-gradient(90deg, var(--by-blue) 0%, var(--by-yellow) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}

.contact-stack{
  width:min(760px, 92vw);
  display:grid;
  gap:18px;
  margin-top:4px;
}

.contact-card{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  padding:16px 20px;
  border-radius:18px;
  background:#111219;            /* deep panel */
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 8px 28px rgba(0,0,0,.35) inset, 0 2px 10px rgba(0,0,0,.25);
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}

.contact-card:hover{
  transform:translateY(-1px);
  border-color:rgba(99,102,241,.45);
  background:#10121b;
}

.contact-card .label{
  color:#6d74ff;                 /* bright label */
  font-weight:800;
  min-width:110px;               /* keeps labels aligned */
  text-shadow:0 0 1px rgba(109,116,255,.25);
}

.contact-card .value{
  color:var(--text);
  opacity:.95;
  font-weight:500;
  word-break:break-word;
}

/* Miscellaneous styles (mobile styles) */
@media (max-width:520px){
  .contact-card{ padding:14px 16px }
  .contact-card .label{ min-width:96px }
}

/* ===== Quick Start — Step Card ===== */
.qs{ padding-block:28px 48px }

/* Card shell */
.step{
  position:relative;
  border-radius:26px;
  background:linear-gradient(180deg,#2b3bbf 0%, #2736a9 100%); /* rich blue */
  color:#e8eefc;
  box-shadow:0 18px 60px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.06);
  padding:28px 28px 28px 28px;
  overflow:hidden;
}

/* Yellow left rail */
.step::before{
  content:"";
  position:absolute; inset:18px auto 18px 18px; width:18px;
  border-radius:12px;
  background:linear-gradient(180deg,#ffe68a 0%, #f7c73a 55%, #e3ad07 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
}

/* Number badge */
.step-badge{
  position:absolute; left:44px; top:36px;
  width:82px; height:82px; border-radius:999px;
  display:grid; place-items:center;
  background:radial-gradient(65% 65% at 38% 35%, #fff5b3 0%, #ffe06e 40%, #f6c436 70%, #d79f05 100%);
  box-shadow:0 10px 24px rgba(0,0,0,.35), 0 0 0 6px rgba(64,81,181,.25) inset;
  color:#1e2a78; font-weight:900; font-size:44px; line-height:1;
}

/* Content area */
.step-body{ margin-left:160px; }
.step-title{
  margin:0 0 12px;
  font-weight:900;
  color:#f6c436;                /* yellow title */
  font-size:clamp(1.6rem,3.2vw + 1rem,2.6rem);
  line-height:1.15;
}
.step p{ margin:0 0 12px; }
.step p strong{ font-weight:900; }

/* Mobile tweaks */
@media (max-width:700px){
  .step{ padding:24px; }
  .step::before{ inset:14px auto 14px 14px; width:14px; }
  .step-badge{
    left:36px; top:28px; width:68px; height:68px; font-size:36px;
  }
  .step-body{
    margin-left:0;
    padding-top:84px;           /* clear the badge on small screens */
  }
  .step-title{ font-size:clamp(1.4rem,5.4vw + .5rem,2rem) }
}
/* ===== Quick Start — Step Card ===== */
.qs{ padding-block:28px 48px }

/* Card shell */
.step{
  position:relative;
  border-radius:26px;
  background:linear-gradient(180deg,#2b3bbf 0%, #2736a9 100%); /* rich blue */
  color:#e8eefc;
  box-shadow:0 18px 60px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.06);
  padding:28px 28px 28px 28px;
  overflow:hidden;
}

/* Yellow left rail */
.step::before{
  content:"";
  position:absolute; inset:18px auto 18px 18px; width:18px;
  border-radius:12px;
  background:linear-gradient(180deg,#ffe68a 0%, #f7c73a 55%, #e3ad07 100%);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
}

/* Number badge */
.step-badge{
  position:absolute; left:44px; top:36px;
  width:82px; height:82px; border-radius:999px;
  display:grid; place-items:center;
  background:radial-gradient(65% 65% at 38% 35%, #fff5b3 0%, #ffe06e 40%, #f6c436 70%, #d79f05 100%);
  box-shadow:0 10px 24px rgba(0,0,0,.35), 0 0 0 6px rgba(64,81,181,.25) inset;
  color:#1e2a78; font-weight:900; font-size:44px; line-height:1;
}

/* Content area */
.step-body{ margin-left:160px; }
.step-title{
  margin:0 0 12px;
  font-weight:900;
  color:#f6c436;                /* yellow title */
  font-size:clamp(1.6rem,3.2vw + 1rem,2.6rem);
  line-height:1.15;
}
.step p{ margin:0 0 12px; }
.step p strong{ font-weight:900; }

/* Mobile tweaks */
@media (max-width:700px){
  .step{ padding:24px; }
  .step::before{ inset:14px auto 14px 14px; width:14px; }
  .step-badge{
    left:36px; top:28px; width:68px; height:68px; font-size:36px;
  }
  .step-body{
    margin-left:0;
    padding-top:84px;           /* clear the badge on small screens */
  }
  .step-title{ font-size:clamp(1.4rem,5.4vw + .5rem,2rem) }
}

/* ===== Support & Help Resources ===== */
.support-screen{ padding-block:28px 64px }
.support-title{
  text-align:center;
  margin:0 0 6px;
  color:#f6c436;                 /* yellow title like screenshot */
  font-weight:900;
  letter-spacing:.2px;
}
.support-lead{
  max-width:700px;
  margin:0 auto 18px;
  color:var(--muted);
  text-align:center;
}

/* Stack of help cards */
.help-stack{
  display:grid;
  gap:28px;
  justify-items:center;
}

/* Card shell (rich blue with inner border + left rail accent) */
.help-card{
  position:relative;
  width:min(560px, 92vw);
  border-radius:22px;
  background:linear-gradient(180deg,#2b3bbf 0%, #2736a9 100%);
  color:#e8eefc;
  box-shadow:0 18px 60px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.06);
  padding:28px 24px 22px;
  overflow:hidden;
}
.help-card::before{
  content:"";
  position:absolute; inset:16px auto 16px 16px; width:16px;
  border-radius:10px;
  background:linear-gradient(180deg,#ffe68a 0%, #f7c73a 55%, #e3ad07 100%);
}

/* Yellow circular icon badge (top-center) */
.help-badge{
  position:absolute; left:50%; top:20px; transform:translateX(-50%);
  width:70px; height:70px; border-radius:999px;
  display:grid; place-items:center;
  background:radial-gradient(65% 65% at 38% 35%, #fff5b3 0%, #ffe06e 40%, #f6c436 70%, #d79f05 100%);
  box-shadow:0 6px 16px rgba(0,0,0,.35), 0 0 0 5px rgba(64,81,181,.25) inset;
  font-size:34px;
}

/* Card content */
.help-card h3{
  margin:70px 0 10px;           /* clear the badge */
  font-weight:900;
  font-size:1.35rem;
  line-height:1.2;
}
.help-card h4{
  margin:10px 0 6px;
  color:#f6c436;                /* yellow subheading */
  font-weight:800;
}
.help-card p{ margin:0 0 10px }
.help-card ul{ margin:0; padding-left:1.1rem }
.help-card li{ margin:.25rem 0 }

/* Common issues card */
.issues-card{
  width:min(560px, 92vw);
  margin:28px auto 0;
  border-radius:18px;
  background:linear-gradient(180deg,#26358f 0%, #212f7e 100%);
  color:#e8eefc;
  box-shadow:0 14px 44px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  overflow:hidden;
}
.issues-head{
  background:linear-gradient(90deg,#f7c73a,#ffe68a);
  color:#1b245f;
  font-weight:900;
  padding:.65rem .9rem;
  text-align:left;
}
.issues-list{
  list-style:disc;
  margin:.4rem 1.2rem 1rem;
  padding-left:1rem;
}
.issues-list li{ margin:.45rem 0 }
.issues-list code{
  background:rgba(0,0,0,.18);
  padding:0 .35em;
  border-radius:6px;
}

/* Mobile tweaks */
@media (max-width:560px){
  .help-card{ padding:24px 18px 18px }
  .help-card::before{ inset:12px auto 12px 12px; width:12px }
  .help-badge{ top:16px; width:64px; height:64px; font-size:30px }
  .help-card h3{ margin-top:64px; font-size:1.2rem }
}

/* Remove the yellow lines on step/help cards */
.step::before,
.help-card::before{
  content: none !important;   /* hides the pseudo-element */
  background: none !important;
  width: 0 !important;
}

/* ===== Core Features & Capabilities ===== */
.features-screen{ padding-block:28px 72px }
.features-title{
  text-align:center;
  margin:0 0 10px;
  color:#f6c436;                 /* gold heading like screenshot */
  font-weight:900;
  letter-spacing:.2px;
}

/* centered vertical stack */
.feature-stack{
  display:grid;
  gap:28px;
  justify-items:center;
}

/* Card */
.feature-card{
  position:relative;
  width:min(420px, 92vw);
  border-radius:22px;
  background:linear-gradient(180deg,#2b3bbf 0%, #2736a9 100%);
  color:#e8eefc;
  box-shadow:0 18px 60px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  padding:26px 22px 22px;
  overflow:hidden;
}

/* circular gold badge top-center */
.feature-badge{
  position:absolute; left:50%; top:14px; transform:translateX(-50%);
  width:60px; height:60px; border-radius:999px;
  display:grid; place-items:center;
  background:radial-gradient(65% 65% at 38% 35%, #fff5b3 0%, #ffe06e 40%, #f6c436 70%, #d79f05 100%);
  box-shadow:0 6px 16px rgba(0,0,0,.35), 0 0 0 4px rgba(64,81,181,.25) inset;
  font-size:28px;
}

/* Titles & copy */
.feature-card h3{
  margin:54px 0 8px;            /* clear the badge */
  font-weight:900;
  color:#f6c436;                 /* gold title */
  font-size:1.25rem;
  line-height:1.2;
}
.feature-card p{ margin:0 0 10px }

/* Purple info chip inside the card */
.feature-chip{
  background:linear-gradient(180deg,#5a67d8 0%, #4c59c9 100%);
  border:1px solid rgba(255,255,255,.28);
  border-radius:16px;
  padding:12px 14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);
}
.chip-title{
  font-weight:800;
  color:#eaf0ff;
  margin:0 0 6px;
}
.feature-chip ul{ margin:0; padding-left:1rem }
.feature-chip li{ margin:.28rem 0 }

/* Mobile tweaks */
@media (max-width:560px){
  .feature-card{ padding:22px 16px 16px; width:min(380px,92vw) }
  .feature-badge{ width:54px; height:54px; font-size:24px; top:12px }
  .feature-card h3{ margin-top:52px; font-size:1.15rem }
}

/* Hero logo square under the buttons */
.hero-logo{
  width: min(520px, 80vw);      /* responsive width */
  aspect-ratio: 1 / 1;          /* keep it a perfect square */
  margin: 18px auto 0;          /* center under the buttons */
  background: center / contain no-repeat url("images/starsafe.png");
  /* optional subtle frame—remove if you want just the image */
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 36px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  background-color: rgba(255,255,255,.02);
}

/* Smaller hero logo */
.hero-logo{
  width: min(320px, 56vw);  /* was min(520px, 80vw) */
  margin-top: 12px;         /* a bit closer to the buttons */
}

/* Extra-small screens */
@media (max-width: 480px){
  .hero-logo{ width: min(240px, 70vw); }
}
