/* KSJ Inc. — static landing styles (mobile-first, dark-friendly)
   Colors are HSL tokens; animations respect prefers-reduced-motion. */

:root {
  --bg: 240 10% 4%;
  --fg: 220 15% 96%;
  --muted: 220 10% 65%;
  --surface: 240 8% 10%;
  --border: 240 10% 20%;
  --accent: 196 100% 50%;
  --accent-2: 280 90% 60%;
  --radius: 16px;

  --gradient-primary: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-2)));
  --shadow-elev: 0 10px 30px -12px hsl(var(--accent) / 0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: 0 0% 100%;
    --fg: 222 47% 11%;
    --muted: 215 16% 47%;
    --surface: 0 0% 98%;
    --border: 220 14% 90%;
    /* Accents stay the same for brand consistency */
  }
}

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

body {
  margin: 0;
  color: hsl(var(--fg));
  background: radial-gradient(1200px 600px at 20% -10%, hsl(var(--accent) / 0.12), transparent 40%),
              radial-gradient(1000px 500px at 110% 10%, hsl(var(--accent-2) / 0.12), transparent 40%),
              hsl(var(--bg));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(10px);
  background: linear-gradient(to bottom, hsl(var(--bg) / 0.85), hsl(var(--bg) / 0.6));
  border-bottom: 1px solid hsl(var(--border));
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand .mark { 
  display: inline-grid; place-items: center; width: 34px; height: 34px; 
  border-radius: 10px; background: var(--gradient-primary); color: #001018; 
  font-weight: 800; box-shadow: var(--shadow-elev);
}
.brand .name { font-size: 1.05rem; }

nav a {
  color: hsl(var(--muted));
  text-decoration: none;
  margin-left: 16px;
}
nav a:hover { color: hsl(var(--fg)); }

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 56px;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.hero p { color: hsl(var(--muted)); font-size: clamp(1.05rem, 2.6vw, 1.25rem); margin: 0 0 26px; }

.cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; 
  border: 1px solid hsl(var(--border)); color: hsl(var(--fg));
  background: hsl(var(--surface));
  text-decoration: none; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; }
.btn-primary { 
  background: var(--gradient-primary); border-color: transparent; color: #061014;
  box-shadow: var(--shadow-elev);
}
.btn-primary:hover { box-shadow: 0 12px 36px -14px hsl(var(--accent) / 0.45); }
.btn-ghost { background: hsl(var(--surface)); }

.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin: 0 0 16px; letter-spacing: -0.01em; }
.section p.lead { color: hsl(var(--muted)); margin: 0 0 22px; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { display: flex; align-items: start; gap: 10px; color: hsl(var(--fg)); }
.list li::before { content: "•"; color: hsl(var(--accent)); line-height: 1.2; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: linear-gradient(180deg, hsl(var(--surface)), hsl(var(--surface) / 0.7));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: hsl(var(--accent) / 0.6); box-shadow: 0 10px 30px -14px hsl(var(--accent) / 0.35); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: hsl(var(--muted)); }

.updates ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.updates li { padding: 12px 14px; border: 1px dashed hsl(var(--border)); border-radius: 12px; background: hsl(var(--surface) / 0.6); }
.updates time { color: hsl(var(--muted)); margin-right: 8px; }

.contact a { color: hsl(var(--accent)); text-decoration: none; }
.contact a:hover { text-decoration: underline; }

footer { border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted)); padding: 20px 0 40px; }

/* Responsive */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Signature ambient gradient motion */
.hero::before {
  content: "";
  position: absolute; inset: -20vh -10vw auto -10vw; height: 60vh;
  background: radial-gradient(45% 60% at 30% 40%, hsl(var(--accent) / 0.20), transparent 70%),
              radial-gradient(40% 55% at 70% 20%, hsl(var(--accent-2) / 0.18), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: float 18s ease-in-out infinite alternate;
}
@keyframes float { 
  from { transform: translateY(-2%) translateX(0%); }
  to { transform: translateY(3%) translateX(2%); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
  .hero::before { animation: none; }
}
