﻿/* SpinForge360 site.css — UI polish pass (layout, spacing, typography, components) */

:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.58);

  --accent: #7c5cff;
  --accent2: #34d399; /* used in hero highlight */
  --warn: #fbbf24;

  --shadow: 0 10px 35px rgba(0,0,0,.45);
  --shadow2: 0 6px 20px rgba(0,0,0,.35);

  --radius: 18px;
  --radius2: 14px;

  --max: 1120px;
  --pad: 24px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(124,92,255,0.22), transparent 55%),
    radial-gradient(700px 420px at 75% 20%, rgba(52,211,153,0.18), transparent 55%),
    radial-gradient(900px 520px at 50% 90%, rgba(255,255,255,0.06), transparent 60%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section{
  padding: 44px 0 56px;
}

.section.tight{
  padding: 34px 0 48px;
}

.sectionHeader{
  margin: 0 0 22px;
}

.h1{
  margin: 0 0 14px;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(34px, 3.8vw, 54px);
}

.h2{
  margin: 0 0 10px;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.18;
  font-size: clamp(20px, 2.2vw, 28px);
}

.p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
}

small{
  color: var(--muted2);
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
  padding: 2px 6px;
  border-radius: 10px;
}

pre{
  margin: 10px 0 0;
  padding: 14px 16px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  overflow: auto;
  color: rgba(255,255,255,.88);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}

/* -------------------------
   Nav
-------------------------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(8,10,14,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px var(--pad);
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.brand img{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

.links{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.links a{
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}

.links a:hover{
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}

/* -------------------------
   Hero
-------------------------- */
.hero{
  padding: 52px 0 28px;
}

.heroGrid{
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

/* little feature pills */
.kv{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.kv span{
  font-size: 13px;
  color: rgba(255,255,255,0.74);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

/* -------------------------
   Buttons
-------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font-weight: 650;
  font-size: 14px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.085);
  border-color: rgba(255,255,255,0.20);
}

.btn:active{
  transform: translateY(0px);
}

.btn.primary{
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(124,92,255,0.70));
  border-color: rgba(124,92,255,0.80);
  box-shadow: 0 12px 28px rgba(124,92,255,0.18);
}

.btn.primary:hover{
  background: linear-gradient(135deg, rgba(124,92,255,1.0), rgba(124,92,255,0.78));
  border-color: rgba(124,92,255,0.95);
}

/* Focus (keyboard) */
a:focus, button:focus, .btn:focus{
  outline: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible{
  outline: 3px solid rgba(124,92,255,0.45);
  outline-offset: 2px;
  border-radius: 14px;
}

/* -------------------------
   Cards + Grid
-------------------------- */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card{
  min-width: 260px;
  grid-column: span 12;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow2);
}

.card h2{
  margin: 0 0 8px;
  font-weight: 760;
  letter-spacing: -0.01em;
  font-size: 18px;
}

.card p{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.74);
}

.card hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.10);
  margin: 14px 0;
}

.card.third{ grid-column: span 4; }
.card.half{ grid-column: span 6; }

.notice{
  border-left: 4px solid rgba(52,211,153,0.8);
  background: rgba(52,211,153,0.08);
  border-radius: 12px;
  padding: 12px 12px;
  color: rgba(255,255,255,0.84);
}

/* -------------------------
   Footer
-------------------------- */
.footer{
  margin-top: 24px;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

/* -------------------------
   Responsive
-------------------------- */
@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .card.third{ grid-column: span 6; }
}

@media (max-width: 640px){
  :root{ --pad: 18px; }
  .nav .wrap{ padding: 12px var(--pad); }
  .links{ gap: 8px; }
  .links a{ padding: 7px 9px; }
  .card.third, .card.half{ grid-column: span 12; }
  .btn{ width: 100%; }
  .row{ gap: 10px; }
}


/* i18n language selector (keeps same look as nav links) */
#langSel {
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}

#langSel:hover {
  background: rgba(255,255,255,0.085);
  border-color: rgba(255,255,255,0.20);
}

#langSel:focus-visible {
  outline: 3px solid rgba(124,92,255,0.45);
  outline-offset: 2px;
}


/* SpinForge releases table (spacious + delicate) */
.sf-tableWrap {
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius2);
  background: rgba(0,0,0,0.20);
}

.sf-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.sf-table th, .sf-table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

.sf-table th {
  color: rgba(255,255,255,0.70);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
}

.sf-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.35);
  color: rgba(255,255,255,0.86);
  font-size: 12px;
}

.sf-kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
/* --- Downloads highlight card --- */
.sf-releaseCard{
  padding: 16px;
  border-radius: var(--radius2);
  background: rgba(124,92,255,0.08);
  border: 1px solid rgba(124,92,255,0.25);
}

.sf-kv{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.sf-list{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.74);
}
.sf-list li{ margin: 6px 0; }

/* --- Releases table --- */
.sf-tableWrap{
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius2);
  background: rgba(0,0,0,0.20);
}
.sf-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
.sf-table th, .sf-table td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}
.sf-table th{
  color: rgba(255,255,255,0.70);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
}
.sf-badge{
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.35);
  color: rgba(255,255,255,0.86);
  font-size: 12px;
}

