/* Styka’s Sheets — minimalist “financial app” vibe
   Core palette (your scheme):
   bg:    #262a30
   panel: #32373f
*/

:root{
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --wrap: 960px;
  --radius: 14px;
  --t: 180ms;

  --sp2: 10px;
  --sp3: 14px;
  --sp4: 18px;
  --sp5: 24px;
  --sp6: 32px;
  --sp7: 44px;
  --sp8: 64px;

  --accentHover: color-mix(in srgb, var(--accent) 88%, #000 12%);
}

:root[data-theme="dark"]{
  --bg: #262a30;
  --panel: #32373f;
  --panel2: #2c3037;
  --text: #e6e9ee;
  --muted: #aeb6c2;
  --border: rgba(255,255,255,0.10);
  --shadow: rgba(0,0,0,0.35);

  --accent: #25d0a6;                 /* teal */
  --accentSoft: rgba(37,208,166,0.18);
  --focus: rgba(37,208,166,0.35);

  --status: #f2c94c;                 /* warm “lit” yellow */
  --statusSoft: rgba(242,201,76,0.18);
  --statusBorder: rgba(242,201,76,0.42);
}

:root[data-theme="light"]{
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel2: #ffffff;
  --text: #0b1220;
  --muted: #4b5b73;
  --border: rgba(10,16,32,0.12);
  --shadow: rgba(10,16,32,0.10);

  --accent: #0aa886;
  --accentSoft: rgba(10,168,134,0.14);
  --focus: rgba(10,168,134,0.26);

  --status: #d4a72c;
  --statusSoft: rgba(212,167,44,0.18);
  --statusBorder: rgba(212,167,44,0.42);
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

.wrap{
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.tiny{ font-size: 0.92rem; }

.skip{
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
}
.skip:focus{ left: 10px; outline: 3px solid var(--focus); outline-offset: 2px; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
:root[data-theme="dark"] .topbar{ background: rgba(38,42,48,0.72); }
:root[data-theme="light"] .topbar{ background: rgba(244,246,249,0.72); }

.bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: var(--sp2);
  min-width: 220px;
}
.mark{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accentSoft);
}
.name{ font-weight: 900; letter-spacing: 0.2px; }

.pill{
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}
.pillActive{
  color: var(--text);
  border-color: var(--statusBorder);
  background: linear-gradient(180deg, var(--statusSoft), rgba(255,255,255,0.02));
  box-shadow:
    0 0 0 4px rgba(242,201,76,0.10),
    0 10px 26px var(--shadow);
}

.nav{
  display: none;
  gap: 14px;
}
.nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background var(--t), color var(--t);
}
.nav a:hover{ background: rgba(255,255,255,0.05); color: var(--text); }

.themeBtn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 26px var(--shadow);
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.themeBtn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.themeBtn:focus-visible{ outline: 3px solid var(--focus); outline-offset: 2px; }

.themeIcon{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.hero{
  padding: var(--sp8) 0 var(--sp7);
}
.heroGrid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp6);
  align-items: start;
}

.heroCopy h1{
  font-size: clamp(2.05rem, 5vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 var(--sp3);
  letter-spacing: -0.02em;
}
.lede{
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 62ch;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t), border-color var(--t), background var(--t);
  box-shadow: 0 10px 26px var(--shadow);
  font-weight: 800;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.18); }
.btn:focus-visible{ outline: 3px solid var(--focus); outline-offset: 2px; }

.btn.primary{
  background: linear-gradient(180deg, var(--accentSoft), rgba(255,255,255,0.02));
  border-color: rgba(37,208,166,0.30);
}
.btn.ghost{
  background: transparent;
  /* Standardize button shadows (ghost buttons should still cast a shadow) */
  box-shadow: 0 10px 26px var(--shadow);
}

.btn.small{
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.95rem;
}

.heroCard{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel2);
  padding: var(--sp5);
  box-shadow: 0 24px 60px var(--shadow);
}
.hcTitle{ font-weight: 950; letter-spacing: -0.01em; }
.hcSub{ margin-top: 4px; color: var(--muted); font-size: 0.98rem; }
.hcList{
  list-style: none;
  padding: 0;
  margin: var(--sp5) 0;
  display: grid;
  gap: var(--sp2);
}
.hcList li{
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}
.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accentSoft);
}
.hcFooter{ display: flex; gap: var(--sp2); flex-wrap: wrap; }

.section{
  padding: var(--sp7) 0;
  border-top: 1px solid var(--border);
}

.sectionHead{
  display: grid;
  gap: 8px;
  margin-bottom: var(--sp5);
}
h2{
  margin: 0;
  letter-spacing: -0.01em;
  font-size: 1.55rem;
}
h3{ margin: 0; letter-spacing: -0.01em; }

.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp4);
}
.grid.two{ grid-template-columns: 1fr; }

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: var(--sp5);
  box-shadow: 0 18px 44px var(--shadow);
}
.card p{ margin: 8px 0 0; color: var(--muted); }

.cardHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp3);
}

.tag{
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-weight: 800;
}
.tagLive{
  border-color: rgba(37,208,166,0.35);
  background: rgba(37,208,166,0.10);
  color: var(--text);
}
.tagSoon{
  border-color: rgba(242,201,76,0.35);
  background: rgba(242,201,76,0.10);
  color: var(--text);
}

.links{
  display: grid;
  gap: var(--sp3);
}
.linkRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp4);
  padding: var(--sp4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 44px var(--shadow);
}
.linkMeta{ display: grid; gap: 6px; min-width: 0; }
.linkTitle{ font-weight: 900; }
.linkUrl{
  font-family: var(--mono);
  font-size: 0.90rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58ch;
}
.linkActions{ display: flex; gap: var(--sp2); flex-wrap: wrap; }

.about{
  display: grid;
  gap: var(--sp4);
  max-width: 70ch;
  color: var(--muted);
}
.about p{ margin: 0; }

.footer{
  border-top: 1px solid var(--border);
  padding: var(--sp5) 0;
}
.foot{
  display: flex;
  justify-content: space-between;
  gap: var(--sp3);
  flex-wrap: wrap;
  color: var(--muted);
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 18px 44px var(--shadow);
  transition: opacity var(--t), transform var(--t);
  color: var(--text);
  font-weight: 900;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 860px){
  .nav{ display: flex; }
  .heroGrid{ grid-template-columns: 1.25fr 0.75fr; }
  .grid.two{ grid-template-columns: repeat(2, 1fr); }
}

/* --- Overrides (keep latest layout tweaks) --- */

/* Header brand a bit bigger */
.name{ font-size: 1.12rem; }

/* Hero headline: slightly smaller + one line on desktop */
.heroCopy h1{
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
}
@media (max-width: 560px){
  .heroCopy h1{ white-space: normal; }
}

/* Force Sheets grid to single column for more room */
.grid.four{ grid-template-columns: 1fr !important; }

/* Card bullets */
.cardBullets{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
  margin-left: 10px;   /* indent */
  padding-left: 10px;  /* indent text block */
}
.cardBullets li{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}
.cardBullets li strong{
  color: var(--text);
  font-weight: 900;
}
/* Dot alignment for card bullets */
.cardBullets .dot{
  margin-top: 9px;
  flex: 0 0 auto;
}

/* Card actions: left + right alignment, with breathing room */
.cardActions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding-top:2px;

  /* IMPORTANT: allow button shadows to render fully (no clipping) */
  overflow:visible;     /* was: hidden */
  padding-bottom:10px;  /* gives the shadow room */
}

.cardActionsLeft{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.cardActionsRight{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}
@media (max-width: 520px){
  .cardActions{ flex-wrap: wrap; }
  .cardActionsRight{ width: 100%; justify-content: flex-start; }
}

/* =========================================================
   Buttons: default ghost → highlight to solid on hover/focus
   (Added to standardize all buttons across the site)
   ========================================================= */
.btn{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 10px 26px var(--shadow);
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

/* Hover / keyboard focus becomes solid */
.btn:hover,
.btn:focus-visible{
  background: var(--accentHover, var(--accent));
  border-color: var(--accentHover, var(--accent));
  box-shadow: 0 14px 34px var(--shadow);
  transform: translateY(-1px);
}

/* Click */
.btn:active{
  transform: translateY(0px);
  box-shadow: 0 10px 26px var(--shadow);
}

/* Keep ghost semantic (optional) */
.btn.ghost{ background: transparent; }

/* Hover / keyboard focus becomes solid (accent highlight) */
.btn:hover,
.btn:focus-visible{
  background: var(--accent);
  border-color: var(--accent);
  color: #061311; /* dark text for contrast on bright teal */
  box-shadow: 0 14px 34px var(--shadow), 0 0 0 4px var(--accentSoft);
  transform: translateY(-1px);
}

/* =========================================================
   Header brand: slightly bigger, less heavy
   ========================================================= */
.name{
  font-size: 1.24rem;  /* slightly bigger */
  font-weight: 800;    /* was 900 - less thick */
}

/* =========================================================
   Header brand adjustments (bigger text, lighter weight, dot lower)
   ========================================================= */
.name{
  font-size: 1.30rem;  /* one step bigger */
  font-weight: 750;    /* lighter than 800; not "fat" */
}

/* Move the green dot down a couple pixels to align with the larger text */
.mark{
  position: relative;
  top: 3px;            /* down 3px */
}

/* =========================================================
   Header brand adjustments (bigger + lighter)
   ========================================================= */
.name{
  font-size: 1.44rem;  /* couple sizes bigger */
  font-weight: 720;    /* lighter so it doesn't look fat */
}

/* =========================================================
   Hero spacing: add extra breathing room under the headline
   ========================================================= */
.heroCopy h1{ margin-bottom: 30px; } /* "double space" feel */
.heroCopy p{ margin-top: 0; }

/* =========================================================
   Card action buttons: lower + right-aligned + consistent spacing
   ========================================================= */
.cardActions{
  justify-content: flex-end; /* align actions to the right */
  margin-top: 26px;          /* move buttons down (~one line) */
  gap: 12px;
}

/* =========================================================
   "Create Own Copy" -> non-link "Soon" on hover/focus
   ========================================================= */
.btn.isSoon{
  cursor: default;
  pointer-events: none; /* not clickable */
  position: relative;
}

/* Swap label to "Soon" on hover/focus for visual effect */
.btn.isSoon .label{ transition: opacity .12s ease; }

.btn.isSoon:hover .label,
.btn.isSoon:focus-visible .label{
  opacity: 0;
}

.btn.isSoon:hover::after,
.btn.isSoon:focus-visible::after{
  content: "Soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* =========================================================
   FIX: "Create Own Copy" should still behave like a real button
   (hover highlights + label swaps to "Soon")
   ========================================================= */
.btn.isSoon{
  cursor: pointer;   /* behave like other buttons */
}

/* Swap label to "Soon" on hover/focus */
.btn.isSoon .label{ transition: opacity .12s ease; }

.btn.isSoon:hover .label,
.btn.isSoon:focus-visible .label{
  opacity: 0;
}

.btn.isSoon:hover::after,
.btn.isSoon:focus-visible::after{
  content: "Soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: inherit;
}

/* =========================================================
   FIX: isSoon must be hoverable/clickable (was accidentally pointer-events:none)
   ========================================================= */
.btn.isSoon{
  pointer-events: auto !important; /* restore hover + click */
  cursor: pointer;
  position: relative;
}


/* Top bar: show the same fantasy image, but heavily darkened for readability */
.topbar{
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.72)),
    url("hero-bg.png");
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
}

/* Hero: full background image with a readability overlay */
.hero{
  position: relative; /* enables overlay */
  background-image: url("hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  /* Slightly stronger at the top so the headline stays crisp */
  background:
    radial-gradient(900px 520px at 26% 34%, rgba(0,0,0,.00), rgba(0,0,0,.52)),
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.22));
  pointer-events:none;
  z-index:0;
}

/* Ensure hero content stays above overlay */
.hero > *{
  position: relative;
  z-index: 1;
}

/* =========================================================
   Background image applied to HERO + TOP BAR (blurred "glass" bar)
   File: hero-bg.png (place beside index.html)
   ========================================================= */

/* Top bar: always shows the background image inside the bar, blurred + darkened */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 22, 28, .40);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Blurred image layer inside the bar (so it shows even before you scroll) */
.topbar::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("hero-bg.png");
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  filter: blur(16px);
  transform: scale(1.12); /* prevents blur edges from clipping */
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}

/* Dark tint layer to keep text readable */
.topbar::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(18, 22, 28, .55);
  z-index: 0;
  pointer-events: none;
}

/* Ensure topbar content stays above the blurred layers */
.topbar > *{
  position: relative;
  z-index: 1;
}

/* Hero: full background image with readability overlay */
.hero{
  position: relative; /* enables overlay */
  background-image: url("hero-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  /* Slightly stronger at the top so the headline stays crisp */
  background:
    radial-gradient(900px 520px at 26% 34%, rgba(0,0,0,.00), rgba(0,0,0,.52)),
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.22));
  pointer-events:none;
  z-index:0;
}

/* Ensure hero content stays above overlay */
.hero > *{
  position: relative;
  z-index: 1;
}

/* =========================================================
   Hero highlight card: subtle "glass" (blurred background bleed-through)
   ========================================================= */
.heroCard{
  position: relative;
  background: rgba(40, 45, 53, .55); /* transparent panel */
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  border: 1px solid rgba(255,255,255,.10);
}

/* Optional: add a faint inner sheen */
.heroCard::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  pointer-events:none;
}
.heroCard > *{
  position: relative;
  z-index: 1;
}


/* Make sure section content stays above the glow */
.section > *{
  position: relative;
  z-index: 1;
}


/* Ensure section content stays above the glow */
.section > *{
  position: relative;
  z-index: 1;
}

/* =========================================================
   Sheets section glow (contained) — does NOT affect the hero
   ========================================================= */
#sheets{
  position: relative;
  overflow: hidden;     /* keeps the glow inside the section */
  isolation: isolate;   /* prevents blend/tint from leaking upward */
}

#sheets::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  z-index: 0;

  /* Smooth, centered glow behind the full card stack (top + mid + bottom) */
  background:
    radial-gradient(1100px 560px at 50% 18%, rgba(46, 220, 178, .13), rgba(46, 220, 178, 0) 72%),
    radial-gradient(1000px 520px at 50% 48%, rgba(46, 220, 178, .085), rgba(46, 220, 178, 0) 76%),
    radial-gradient(1100px 560px at 50% 82%, rgba(46, 220, 178, .075), rgba(46, 220, 178, 0) 74%),
    radial-gradient(900px 520px at 50% 112%, rgba(46, 220, 178, .040), rgba(46, 220, 178, 0) 78%),
    /* tiny top fade so the section boundary feels intentional */
    linear-gradient(180deg, rgba(46, 220, 178, .040), rgba(0,0,0,0) 220px);
}
/* Keep content above the glow */
#sheets .wrap{
  position: relative;
  z-index: 1;
}

/* =========================================================
   Buttons: restore "proper" behavior (ghost by default, accent on hover)
   ========================================================= */
:root{
  /* Slightly darker accent on hover for depth */
  --accentHover: color-mix(in srgb, var(--accent) 88%, #000 12%);
}

.btn{
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow2) !important;
  text-decoration: none !important;
}

.btn:hover,
.btn:focus-visible{
  background: var(--accentHover, var(--accent)) !important;
  border-color: var(--accentHover, var(--accent)) !important;
  color: #061311 !important;
  box-shadow: var(--shadow) !important;
}

.btn:active{
  box-shadow: var(--shadow2) !important;
}

/* Make "ghost" class match default (kept for semantics) */
.btn.ghost{
  background: transparent !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow2) !important;
}

/* "Soon" swap: keep it clickable + swap label on hover/focus */
.btn.isSoon{
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative;
}
.btn.isSoon .label{ transition: opacity .12s ease; }
.btn.isSoon:hover .label,
.btn.isSoon:focus-visible .label{ opacity: 0; }
.btn.isSoon:hover::after,
.btn.isSoon:focus-visible::after{
  content: "Soon";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: inherit;
}

/* =========================================================
   Card buttons: align both buttons to the right
   ========================================================= */
.cardActions{
  justify-content: flex-end;
}

/* =========================================================
   Hero highlight card: glassier / more translucent
   ========================================================= */
.heroCard{
  background: linear-gradient(180deg, rgba(18, 22, 26, .22), rgba(18, 22, 26, .14));
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.12);
}

/* =========================================================
   Hero card footer: right-align Join Discord button
   ========================================================= */
.hcFooter{
  display: flex;
  justify-content: flex-end;
}

/* =========================================================
   Fix: Ghost buttons should still highlight on hover (View Demo)
   ========================================================= */
.btn.ghost:hover,
.btn.ghost:focus-visible{
  background: var(--accentHover, var(--accent)) !important;
  border-color: var(--accentHover, var(--accent)) !important;
  color: #061311 !important;
  box-shadow: var(--shadow) !important;
}

/* =========================================================
   Fix: prevent horizontal scrollbar (blur/scale layers can overflow)
   ========================================================= */
html, body{
  overflow-x: hidden;
}
@supports (overflow-x: clip){
  html, body{ overflow-x: clip; }
}
.topbar{
  overflow: hidden;
}
