/* S-Rank Studios: colors taken from the studio card logo */
:root {
  --bg: #121a22;
  --bg-alt: #17222d;
  --panel: #1f2c39;
  --slate: #3a4d60;
  --edge: #a9d4e6;
  --cyan: #5fe9f5;
  --cyan-deep: #00d8f0;
  --text: #e8f1f6;
  --muted: #9fb3c2;
  --radius: 14px;
  --head: "Kanit", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
h1, h2, h3 { font-family: var(--head); font-style: italic; font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(18, 26, 34, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(169, 212, 230, .12);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-name { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 1.2rem; color: var(--cyan); }
.nav nav { display: flex; gap: clamp(12px, 2.5vw, 28px); align-items: center; }
.nav nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
.nav nav a.nav-cta { color: var(--bg); background: var(--cyan); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.nav nav a.nav-cta:hover { background: var(--edge); }

/* Buttons */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn-primary { background: var(--cyan); color: var(--bg); box-shadow: 0 0 24px rgba(95, 233, 245, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(95, 233, 245, .45); }
.btn-ghost { border: 1.5px solid var(--edge); color: var(--text); }
.btn-ghost:hover { background: rgba(169, 212, 230, .1); }
.btn-soon { border: 1.5px dashed var(--slate); color: var(--muted); cursor: default; }
.btn-lg { font-size: 1.1rem; padding: 14px 28px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 64px);
  background:
    radial-gradient(ellipse at 75% 40%, rgba(0, 216, 240, .18), transparent 60%),
    linear-gradient(180deg, #16212c, var(--bg));
}
.hero-logo { width: min(300px, 70%); margin: 0 0 12px -10px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.4)); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hl { white-space: nowrap; color: var(--cyan); text-shadow: 0 0 24px rgba(95, 233, 245, .45); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 32ch; }
.hero-art img {
  border-radius: var(--radius);
  border: 2px solid rgba(169, 212, 230, .5);
  box-shadow: 0 0 0 6px rgba(58, 77, 96, .4), 0 24px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(0, 216, 240, .15);
}

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-alt); border-block: 1px solid rgba(169, 212, 230, .08); }
.section-alt > * { max-width: 1112px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 36px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--cyan); margin-bottom: .6em; }

/* RiftMerchant feature */
.feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--panel); border: 1.5px solid rgba(169, 212, 230, .25); border-radius: var(--radius); overflow: hidden;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: clamp(24px, 3vw, 40px); }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--cyan); border: 1px solid rgba(95, 233, 245, .4); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.feature-body h3 { font-size: clamp(2rem, 3.5vw, 2.6rem); }
.feature-pitch { font-size: 1.1rem; color: var(--text); font-weight: 500; }
.feature-body p { color: var(--muted); }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pillars li { padding-left: 26px; position: relative; color: var(--muted); }
.pillars li::before { content: "★"; position: absolute; left: 0; color: var(--cyan); }
.pillars b { color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--panel); border: 1px solid rgba(169, 212, 230, .15); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .35s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }

/* CurseForge card */
.curse-card {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 28px; background: var(--panel); color: var(--text);
  border: 1.5px solid rgba(169, 212, 230, .25); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.curse-card:hover { border-color: #f16436; transform: translateY(-2px); }
.curse-card img { flex: none; }
.curse-card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.curse-card p { margin: 0; color: var(--muted); }
.curse-card .arrow { margin-left: auto; font-size: 1.8rem; color: #f16436; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-art { border-radius: var(--radius); border: 2px solid rgba(169, 212, 230, .4); }
.about-emblem { border: 0; width: min(360px, 100%); margin: 0 auto; filter: drop-shadow(0 0 40px rgba(0, 216, 240, .25)); }
.about p { color: var(--muted); font-size: 1.05rem; }

/* Contact */
.contact { text-align: center; }
.contact .cta-row { justify-content: center; }
.contact .btn { margin-top: .4em; }

/* Footer */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px clamp(16px, 5vw, 64px); color: var(--muted); font-size: .9rem;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Small screens */
@media (max-width: 860px) {
  .hero, .feature, .about { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-logo { margin: 0 auto 12px; }
  .lede { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
  .nav nav a:not(.nav-cta) { display: none; }
}
