/**
 * STENKU Web - Core Design System & Tokens
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #060606;
  --surface: #0b0b0b;
  --surface-2: #101010;
  --surface-3: #151515;
  --text: #f7f7f7;
  --muted: #a1a1a1;
  --muted-2: #6f6f6f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ffffff;
  --max: 1440px;
  --wide: 1760px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.065), transparent 34rem),
    radial-gradient(circle at 100% 45%, rgba(255, 255, 255, 0.025), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

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

button, input, textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: #fff;
  color: #000;
}

.site {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.wide-container {
  width: min(calc(100% - 48px), var(--wide));
  margin: 0 auto;
}

/* Section Common Layout */
section.section {
  position: relative;
  padding: clamp(88px, 9vw, 150px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.section-head {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 13px;
  color: #6e6e6e;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-head p {
  max-width: 690px;
  margin: 18px auto 0;
  color: #999;
  font-size: 13px;
  line-height: 1.75;
}

.section-head strong {
  color: #e8e8e8;
}

/* Pointer Glow Effect */
.pointer-glow {
  position: fixed;
  z-index: 9998;
  left: 0;
  top: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.045), transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Scroll Reveal Animations */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}

html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Media Queries for Layout Scaling */
@media (min-width: 2000px) {
  .container { width: min(calc(100% - 96px), 1800px); }
  .wide-container { width: min(calc(100% - 96px), 2200px); }
  .section-head { margin-bottom: 70px; }
  .section-head h2 { font-size: 74px; }
}

@media (max-width: 1199px) {
  .container, .wide-container { width: min(calc(100% - 40px), 1100px); }
}

@media (max-width: 899px) {
  .container, .wide-container { width: min(calc(100% - 36px), 760px); }
}

@media (max-width: 599px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .container, .wide-container { width: calc(100% - 28px); }
  section.section { padding: 78px 0; }
  .section-head { margin-bottom: 35px; }
  .section-head h2 { font-size: clamp(32px, 9vw, 46px); }
  .section-head p { font-size: 12px; }
  .pointer-glow { display: none; }
}

@media (max-width: 379px) {
  .container, .wide-container { width: calc(100% - 22px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .pointer-glow { display: none; }
}
