/* ================================
   Cortina ∞ Infinity — Titanium Matte Theme
   Version: 1.0
   ================================ */

/* ===== Root Variables ===== */
:root {
  --bg-gradient: linear-gradient(180deg, #0b0c0e 0%, #1a1b1d 40%, #2a2b2e 100%);
  --panel: #1a1c20;     /* Stage / section panels */
  --panel2: #14161a;    /* Inner cards, tiles, tabs */
  --txt: #e7e7ea;       /* Primary text */
  --muted: #b8bcc4;     /* Muted text */
  --line: #3b3f46;      /* Borders & outlines */
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --pill: #2a2d33;      /* Buttons / pill bg */
  --accent: #8fe9ff;    /* Cyan accent */
  --accent-soft: #c9f3ff;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg-gradient);
  color: var(--txt);
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ===== Containers ===== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px;
}
.stage {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}
.muted { color: var(--muted); }

/* ===== Tabs (Top Navigation) ===== */
.tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.tabs::-webkit-scrollbar { height: 6px; }
.tabs::-webkit-scrollbar-thumb {
  background: #2c2f36;
  border-radius: 8px;
}
.tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tab.active {
  background: #0f1114;
  box-shadow: inset 0 0 0 2px #ffffff1a;
}

/* ===== Cards / Tiles ===== */
.grid {
  display: grid;
  gap: 14px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: #4a505a;
  box-shadow: 0 10px 24px rgba(0,0,0,.38);
}
.tile b {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.tile p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.btn-ghost {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--txt);
}
.btn-ghost:hover {
  border-color: #4a505a;
  transform: translateY(-1px);
}
.btn-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #072831;
  border: none;
  font-weight: 900;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #0c1b20 inset;
}

/* ===== Footer ===== */
footer {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #14161a;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}