/* Risa Labs — global stylesheet */

:root {
  --bg: #0b0b0d;
  --bg-elevated: #141418;
  --border: #24242a;
  --border-hover: #3a3a42;
  --fg: #ededed;
  --fg-muted: #9ca3af;
  --fg-dim: #5a5d66;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 64px; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* Header */
header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

header.site .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}

header.site .brand img {
  width: 24px;
  height: 24px;
  opacity: 0.95;
}

header.site nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}

header.site nav a {
  transition: color 150ms ease;
}

header.site nav a:hover {
  color: var(--fg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero .enso {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, 90vw);
  opacity: 0.09;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: enso-spin 120s linear infinite;
}

@keyframes enso-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .enso { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--fg);
}

.hero .sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 560px;
}

@media (max-width: 720px) {
  .hero h1 { font-size: 34px; }
  .hero .kicker { font-size: 11px; }
  .hero .sub { font-size: 15px; }
}

/* Sections (shared) */
section.block {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.section-label::before {
  content: "// ";
  color: var(--fg-dim);
}

@media (max-width: 720px) {
  section.block { padding: 72px 0; }
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  display: block;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 150ms ease;
  position: relative;
  color: var(--fg);
}

.product-card:not(.disabled):hover {
  border-color: var(--border-hover);
}

.product-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.product-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.product-card .arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--fg-muted);
  transition: color 150ms ease, transform 150ms ease;
}

.product-card:not(.disabled):hover .arrow {
  color: var(--fg);
  transform: translate(2px, -2px);
}

.product-card.disabled {
  opacity: 0.45;
  cursor: default;
}

.product-card.disabled h3 {
  color: var(--fg-dim);
}

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

/* About */
.about p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 680px;
  margin-bottom: 16px;
}

.about p:last-child { margin-bottom: 0; }

.about p strong {
  color: var(--fg);
  font-weight: 500;
}

/* Contact */
.contact-block { max-width: 680px; }

.contact-block p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  transition: border-color 150ms ease, background 150ms ease;
}

.contact-btn::before {
  content: "→";
  color: var(--fg-muted);
}

.contact-btn:hover {
  border-color: #4a4a52;
  background: var(--bg-elevated);
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}

footer.site .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer.site a {
  transition: color 150ms ease;
}

footer.site a:hover {
  color: var(--fg-muted);
}

@media (max-width: 720px) {
  footer.site .row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
