/* ================================================================
   NENESTUDIO — deep-sea abyss theme
   ================================================================ */

:root {
  --abyss-0: #020810;
  --abyss-1: #04101d;
  --abyss-2: #082032;
  --ink: #dcebf2;
  --ink-dim: #8aa6b4;
  --ink-faint: #5a7484;
  --bio: #46e8c6;          /* bioluminescent cyan */
  --bio-deep: #17b995;
  --beam: #37a6ff;         /* light beam blue */
  --line: rgba(120, 190, 210, 0.14);
  --card: rgba(10, 32, 48, 0.55);
  --font-display: "Gothic A1", sans-serif;
  --font-body: "Pretendard Variable", Pretendard, "Gothic A1", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--abyss-0);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- ocean backdrop: surface light fading into the abyss ---- */
.sea {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 55% at 50% -12%, rgba(55, 166, 255, 0.16), transparent 60%),
    radial-gradient(70% 40% at 82% 18%, rgba(70, 232, 198, 0.05), transparent 65%),
    linear-gradient(180deg, var(--abyss-2) 0%, var(--abyss-1) 34%, var(--abyss-0) 100%);
}

/* grain */
.sea::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.62 0 0 0 0 0.66 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- rising bubbles ---- */
.bubbles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bubbles span {
  position: absolute;
  bottom: -3vh;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(190, 240, 255, 0.5), rgba(120, 210, 230, 0.06) 62%);
  animation: rise linear infinite;
}
.bubbles span:nth-child(1) { left: 8%;  width: 5px;  height: 5px;  animation-duration: 17s; }
.bubbles span:nth-child(2) { left: 21%; width: 9px;  height: 9px;  animation-duration: 23s; animation-delay: -7s; }
.bubbles span:nth-child(3) { left: 37%; width: 4px;  height: 4px;  animation-duration: 14s; animation-delay: -3s; }
.bubbles span:nth-child(4) { left: 52%; width: 7px;  height: 7px;  animation-duration: 26s; animation-delay: -12s; }
.bubbles span:nth-child(5) { left: 66%; width: 5px;  height: 5px;  animation-duration: 19s; animation-delay: -5s; }
.bubbles span:nth-child(6) { left: 79%; width: 10px; height: 10px; animation-duration: 29s; animation-delay: -16s; }
.bubbles span:nth-child(7) { left: 91%; width: 6px;  height: 6px;  animation-duration: 21s; animation-delay: -9s; }
@keyframes rise {
  from { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.75; }
  92%  { opacity: 0.55; }
  to   { transform: translateY(-108vh) translateX(3vw); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles span { animation: none; display: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- layout ---- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 0;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.34em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark em { font-style: normal; color: var(--bio); }
nav.crumbs { display: flex; gap: 26px; }
nav.crumbs a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: color 0.25s;
}
nav.crumbs a:hover { color: var(--bio); }

/* ---- depth gauge accent (left rail) ---- */
.gauge {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.gauge i {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.gauge b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}
@media (max-width: 860px) { .gauge { display: none; } }

/* ---- hero ---- */
.hero { padding: 110px 0 70px; }
.hero .depth-tag,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--bio);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--bio);
  box-shadow: 0 0 8px var(--bio);
}
h1.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.24;
  letter-spacing: -0.015em;
}
h1.display .glow {
  color: var(--bio);
  text-shadow: 0 0 26px rgba(70, 232, 198, 0.45);
}
.hero p.lede {
  margin-top: 26px;
  max-width: 560px;
  color: var(--ink-dim);
  font-size: 17px;
}

/* ---- section ---- */
section { padding: 64px 0; }
h2.sec {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.02em;
  margin-bottom: 34px;
}
h2.sec small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

/* ---- app card ---- */
.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 30px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.app-card:hover {
  border-color: rgba(70, 232, 198, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(2, 10, 18, 0.6), 0 0 0 1px rgba(70, 232, 198, 0.08);
}
.app-card .icon {
  width: 132px;
  height: 132px;
  border-radius: 26px;
  box-shadow: 0 10px 34px rgba(2, 8, 16, 0.7);
}
.app-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 25px;
  letter-spacing: 0.01em;
}
.app-card .genre {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 4px 12px;
  border: 1px solid rgba(70, 232, 198, 0.35);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--bio);
}
.app-card p { color: var(--ink-dim); font-size: 15px; max-width: 560px; }
.app-card .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s;
}
.btn.primary {
  background: linear-gradient(135deg, var(--bio), var(--bio-deep));
  color: #03211a;
  box-shadow: 0 6px 22px rgba(70, 232, 198, 0.25);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(70, 232, 198, 0.4); }
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.btn.ghost:hover { border-color: rgba(70, 232, 198, 0.45); color: var(--ink); }
.btn.soon { border: 1px dashed var(--line); color: var(--ink-faint); cursor: default; }

@media (max-width: 640px) {
  .app-card { grid-template-columns: 1fr; }
  .app-card .icon { width: 96px; height: 96px; border-radius: 20px; }
}

/* ---- game page ---- */
.feature-hero {
  margin-top: 46px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(2, 8, 16, 0.7);
}
.feature-hero img { display: block; width: 100%; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feat {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.feat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ink);
}
.feat b::before { content: "◆ "; color: var(--bio); font-size: 11px; vertical-align: 2px; }
.feat span { color: var(--ink-dim); font-size: 14px; }

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.shots img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(2, 8, 16, 0.6);
  transition: transform 0.3s;
}
.shots img:hover { transform: translateY(-4px); }

/* ---- prose (privacy) ---- */
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose p, .prose li { color: var(--ink-dim); font-size: 15px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--bio); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}
.prose th { color: var(--ink); background: rgba(70, 232, 198, 0.05); font-weight: 700; }
.meta-note {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ---- footer ---- */
footer {
  margin-top: 60px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
footer p { color: var(--ink-faint); font-size: 13px; letter-spacing: 0.04em; }
footer a { color: var(--ink-dim); text-decoration: none; font-size: 13px; }
footer a:hover { color: var(--bio); }
footer .links { display: flex; gap: 20px; }

/* ---- load-in reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); animation: surface 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.12s; }
.reveal.d2 { animation-delay: 0.24s; }
.reveal.d3 { animation-delay: 0.38s; }
@keyframes surface { to { opacity: 1; transform: none; } }
