/* ============================================
   2Script Studios — design tokens
   ============================================ */
:root {
  --bg-deep:    #05161A;
  --bg-panel:   #0B2A2C;
  --bg-panel-2: #0E3538;
  --teal:       #12A69C;
  --teal-dim:   #0C6E68;
  --cyan:       #6FE9FF;
  --mint:       #BFFFDD;
  --slate:      #6E8B92;
  --ink:        #E9FFF6;
  --muted:      #9FC7C2;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --cut: 14px; /* diamond-cut corner size */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0; }

img { max-width: 100%; display: block; }

/* ============================================
   Background texture — faint ore-grid, echoes
   the pixel-cut diamond of the logo
   ============================================ */
.ore-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #062023 0%, #05161A 40%, #041012 100%),
    repeating-linear-gradient(0deg, rgba(111,233,255,0.025) 0 2px, transparent 2px 34px),
    repeating-linear-gradient(90deg, rgba(111,233,255,0.025) 0 2px, transparent 2px 34px);
}

/* ============================================
   Diamond-cut panel utility
   Clips the four corners like the cut pixels
   in the 2Script mark
   ============================================ */
.cut {
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0,
    100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%,
    0 calc(100% - var(--cut)), 0 var(--cut)
  );
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 22, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(111, 233, 255, 0.12);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark { width: 34px; height: 34px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  text-decoration: none;
  background: var(--teal);
  color: #04191A;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--cyan); }

/* ============================================
   Hero
   ============================================ */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 28px 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #04191A;
}
.btn-primary:hover { background: var(--cyan); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--slate);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-mark {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 24px 60px rgba(18, 166, 156, 0.35));
}

/* ============================================
   About
   ============================================ */
.about {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 28px 100px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; max-width: 56ch; }
.about-text p:last-child { margin-bottom: 0; }

.about-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(111, 233, 255, 0.15);
  padding: 32px 28px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--slate);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--mint);
  font-weight: 500;
}

/* ============================================
   Section head (shared)
   ============================================ */
.section-head {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  margin-bottom: 44px;
}

.section-head h2 { font-size: 2rem; margin-bottom: 12px; }
.section-head p { color: var(--muted); max-width: 52ch; }

/* ============================================
   Model
   ============================================ */
.model { padding: 60px 0 100px; }

.model-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.model-card {
  background: var(--bg-panel);
  border-top: 3px solid var(--teal);
  padding: 34px 32px 36px;
}

.model-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.model-tag {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--cyan);
  margin-bottom: 22px;
}

.model-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.model-card li {
  color: var(--muted);
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
}

.model-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ============================================
   Roles
   ============================================ */
.roles { padding: 20px 0 100px; }

.roles-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.role-card {
  background: var(--bg-panel);
  padding: 28px 24px;
  border: 1px solid rgba(111, 233, 255, 0.1);
}

.role-card-more { background: var(--bg-panel-2); }

.role-card h3 {
  font-size: 1.15rem;
  margin: 18px 0 8px;
}

.role-card p {
  color: var(--muted);
  font-size: 15px;
}

.role-glyph {
  width: 30px;
  height: 30px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.glyph-a { background: var(--teal); }
.glyph-b { background: var(--cyan); }
.glyph-c { background: var(--mint); }
.glyph-d { background: var(--slate); }
.glyph-e { background: var(--teal-dim); }

/* ============================================
   Join
   ============================================ */
.join { padding: 20px 28px 120px; }

.join-panel {
  max-width: 1120px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid rgba(111, 233, 255, 0.18);
  padding: 56px 48px;
  text-align: center;
}

.join-panel h2 { font-size: 2.1rem; margin-bottom: 14px; }
.join-panel p {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 auto 32px;
}

.join-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid rgba(111, 233, 255, 0.12);
  padding: 32px 28px 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--muted);
}

.footer-mark { width: 22px; height: 22px; }

.footer-links { display: flex; gap: 24px; font-size: 14.5px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }

.footer-note {
  width: 100%;
  font-size: 13px;
  color: var(--slate);
  margin-top: 8px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-mark { max-width: 220px; order: -1; }
  .about { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .roles-grid { grid-template-columns: 1fr; }
  .join-panel { padding: 40px 24px; }
  .nav-inner { padding: 12px 18px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .about, .section-head, .model-grid, .roles-grid, .join { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
