/* Nori Shutdown PC Timer — landing page.
   Same look as the app and its Store images: graphite, one red accent,
   Montserrat, real app windows with soft shadows. */

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg-top: #1c1f26;
  --bg-bottom: #0e1014;
  --surface: #262a33;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f5f7;
  --muted: #a9b0bc;
  --accent: #e3242b;
  --accent-hover: #f0373e;
  --radius: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg-bottom);
  scroll-behavior: smooth;
  /* Glows reach past the edges; they must not widen the page. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  /* Montserrat has no Japanese: Windows and macOS fonts take over. */
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 1400px);
  overflow-x: clip;
  /* Own stacking context: the glows (z-index -1) stay above the body
     background and below the content. */
  position: relative;
  z-index: 0;
  -webkit-font-smoothing: antialiased;
}

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

:lang(ja) body,
body:lang(ja) {
  font-family: "Montserrat", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans",
    "Meiryo", "Noto Sans JP", sans-serif;
  line-break: strict;
}
:lang(ja) h1,
:lang(ja) h2 {
  letter-spacing: 0;
  line-height: 1.25;
  /* Break between phrases, not inside words. */
  word-break: auto-phrase;
}

a { color: inherit; }

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

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

/* Red glow behind the hero window, like in the Store images. */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 36, 43, 0.34), transparent 65%);
  filter: blur(30px);
  z-index: -1;
}
.glow--hero {
  width: 1100px;
  height: 1100px;
  top: -220px;
  right: -260px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(21, 23, 28, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }
.nav__end {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language menu: a <details>, so it works without JavaScript too. */
.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #d7dbe2;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover,
.lang[open] summary { background: rgba(255, 255, 255, 0.1); }
.lang__globe { width: 16px; height: 16px; color: var(--muted); }
.lang__chevron {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.15s;
}
.lang[open] .lang__chevron { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: #23262e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  animation: menu-in 0.14s ease-out;
}
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #d7dbe2;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.lang__menu a:hover,
.lang__menu a:focus-visible { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.lang__menu a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lang__menu a[aria-current="page"]::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.5 11.4 12.6 5' fill='none' stroke='%23e3242b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(227, 36, 43, 0.35);
  transition: background 0.15s, transform 0.15s;
}
.button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button--small {
  padding: 8px 18px;
  font-size: 14px;
  box-shadow: none;
}
.button__icon { width: 20px; height: 20px; }

.link {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.link:hover { color: var(--text); }

/* Shared pieces */
.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.accent {
  display: block;
  width: 64px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  margin-bottom: 26px;
}
h1, h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(42px, 6vw, 72px); }
:lang(ja) h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(32px, 4vw, 50px); }

.lead,
.feature__copy p,
.cta p {
  color: var(--muted);
  font-size: 19px;
  margin: 22px 0 0;
  max-width: 34ch;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.pills li {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #d7dbe2;
  font-size: 14px;
  font-weight: 600;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.checks li {
  position: relative;
  padding-left: 30px;
  color: #d7dbe2;
  font-size: 16px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23e3242b'/%3E%3Cpath d='M5.2 9.2 7.8 11.8 12.9 6.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* App windows: the real screenshots with the app's own red top line. */
.window {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
  padding: 110px 0 120px;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
}
.hero__shot { margin: 0; }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 72px;
  padding: 90px 0;
  position: relative;
}
.feature--flip .feature__copy { order: 2; }
.feature__visual { position: relative; }
.feature__visual::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(circle, rgba(227, 36, 43, 0.22), transparent 62%);
  filter: blur(20px);
  z-index: -1;
}

/* Two overlapping windows, like the Store frames. */
.pair { padding: 0 0 34% 0; }
.pair .window { position: absolute; width: 86%; }
.pair .window--back { top: 0; right: 0; }
.pair .window--front { top: 34%; left: 0; }

/* Phrase bubbles and the toast float over the window. */
.stack { padding-bottom: 92px; }
.bubble,
.toast {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 16px 22px;
  border-radius: 20px;
  background: rgba(38, 42, 51, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.bubble strong,
.toast strong { font-weight: 600; font-size: 16px; }
.bubble span,
.toast span { color: var(--muted); font-size: 14px; }
.bubble--one { left: 6%; bottom: 30px; }
.bubble--two { right: 0; bottom: -10px; }

.toast {
  right: -10px;
  bottom: 0;
  width: min(360px, 80%);
  border-radius: 14px;
  background: #2c2f36;
}
.toast__app {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* Final call to action */
.cta {
  text-align: center;
  padding: 110px 0 120px;
  display: grid;
  justify-items: center;
}
.cta img { margin-bottom: 26px; }
.cta p { max-width: none; margin-bottom: 36px; }

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 28px 0;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Narrow screens: one column, copy first. */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; gap: 12px; }
  .hero,
  .feature {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 64px 0;
  }
  .hero { padding-top: 56px; }
  .feature--flip .feature__copy { order: 0; }
  .lead,
  .feature__copy p { max-width: none; font-size: 17px; }
  .glow--hero { width: 700px; height: 700px; right: -320px; top: -120px; }
}

@media (max-width: 520px) {
  .button--small { display: none; }
  .bubble { padding: 12px 16px; }
  .bubble strong { font-size: 14px; }
  .bubble--one { left: 0; bottom: 46px; }
  .bubble--two { bottom: -6px; }
  .toast { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .lang__chevron { transition: none; }
  .lang__menu { animation: none; }
}

/* Page not found */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 64px;
}
.not-found h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
