/* Rindforge — static site styles */

/* Inter variable font, self-hosted (no third-party font CDN) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #070b12;
  --bg-raised: #0c1220;
  --surface: #0f1626;
  --border: #1c2637;
  --border-strong: #2a3750;
  --text: #e8edf4;
  --text-muted: #9aa7b8;
  --accent: #6f9bff;
  --accent-dim: #45608f;
  --radius: 12px;
  --container: 1100px;
  --header-h: 60px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  transition: top 150ms ease-out;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 11, 18, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark svg {
  display: block;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 150ms ease-out;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(78vh, 720px);
  /* Gradient fallback: always present, Vanta canvas draws on top when active */
  background:
    radial-gradient(90% 70% at 50% -10%, #10203f 0%, rgba(16, 32, 63, 0) 60%),
    linear-gradient(180deg, #0a1322 0%, var(--bg) 85%);
}

#hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0) 0%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 96px 20px 120px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-sub {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 40px;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: -32px 0 40px;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 200ms ease-out;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 0;
}

.card-link svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-family: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  text-transform: lowercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

a.tag:hover {
  color: var(--text);
  border-color: var(--accent-dim);
  text-decoration: none;
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 56px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.faq-item a {
  color: var(--accent);
}

/* ---------- Contact ---------- */

.contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:first-child {
  border-top: 1px solid var(--border);
}

.contact-row dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-row dd {
  margin: 0;
}

.contact-row a {
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 8px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 20px 96px;
}

.legal h1 {
  margin: 0 0 4px;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin: 0 0 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal h2 {
  margin: 40px 0 10px;
  font-size: 1.15rem;
  font-weight: 650;
}

.legal p,
.legal li {
  color: #c3cddb;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

/* ---------- Scroll reveal ---------- */
/* Only hidden when JS is running; without JS everything stays visible. */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms ease-out, transform 550ms ease-out;
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 104px 0;
  }
}
