:root {
  --bg: #000;
  --ink: #f2f7fa;
  --muted: #8aa3b1;
  --cyan: #24c1fe;
  --work: #0c5a7a;
  --rest: #9a7f00;
  --beat: #0a2f41;
  --line: rgba(36, 193, 254, .18);
  --display: "Big Shoulders Display", Impact, sans-serif;
  --body: "Figtree", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 26px/1 var(--display); letter-spacing: .02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { color: var(--cyan); }
nav.links { display: flex; gap: 22px; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); transition: color .2s; }
nav.links a:hover { color: var(--cyan); }
@media (max-width: 640px) { nav.links a:not(.keep) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(36, 193, 254, .20), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(36, 193, 254, .06) 79px 80px);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.clock {
  font: 900 clamp(120px, 21vw, 240px)/.82 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  margin: 22px 0 8px;
  color: var(--ink);
  display: flex; align-items: baseline;
}
.clock .colon { color: var(--cyan); animation: blink 1s steps(1) infinite; margin: 0 .02em; }
@keyframes blink { 50% { opacity: .25; } }
.phase {
  display: inline-flex; align-items: center; gap: 10px;
  font: 900 22px/1 var(--display); letter-spacing: .28em;
  padding: 10px 16px 9px; border-radius: 4px;
  background: var(--work); transition: background .4s;
}
.phase.rest { background: var(--rest); }
.phase small { font: 500 14px/1 var(--body); letter-spacing: .08em; opacity: .8; }
h1 { font: 700 clamp(28px, 4vw, 44px)/1.15 var(--body); letter-spacing: -.02em; margin: 30px 0 14px; max-width: 16em; }
h1 em { font-style: normal; color: var(--cyan); }
.lead { color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 700; line-height: 1.15;
  transition: transform .2s, box-shadow .2s;
}
.btn small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.btn svg { width: 26px; height: 26px; flex: none; }
.btn.primary { background: var(--cyan); color: #000; box-shadow: 0 10px 40px -12px rgba(36, 193, 254, .8); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(36, 193, 254, .9); }
.btn.ghost { border: 1px solid var(--line); color: var(--muted); cursor: default; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.meta span + span::before { content: "·"; margin: 0 8px; color: var(--cyan); }

.phone {
  position: relative; justify-self: center;
  width: min(300px, 100%); aspect-ratio: 1320 / 2868;
  border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #1c2a33, #05090c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 90px -30px rgba(36, 193, 254, .55);
  transform: rotate(4deg);
  animation: float 6s ease-in-out infinite;
}
.screen {
  container-type: inline-size;
  position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: #000;
  font-family: "Open Sans", "Figtree", sans-serif; color: #fff; text-align: center;
}
/* Same as the app: the phase color fills from the bottom and shrinks with the remaining time */
.screen .level {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 1) * 100%);
  background: var(--work); transition: height 1s linear;
}
.phone.rest .screen .level { background: var(--rest); }
.screen .level.snap { transition: none; }
.screen .bar, .screen .body, .screen .pause { z-index: 1; }
.screen .bar { position: absolute; top: 9%; left: 0; right: 0; }
.screen .bar b { font: 700 7.2cqw/1 "Open Sans", sans-serif; letter-spacing: .08em; color: var(--cyan); }
.screen .bar svg { position: absolute; left: 7%; top: 50%; translate: 0 -50%; width: 7cqw; height: 7cqw; stroke: var(--cyan); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.screen .body { position: absolute; left: 0; right: 0; top: 37%; }
.screen .ph { display: block; font: 800 17cqw/1 "Open Sans", sans-serif; letter-spacing: .12em; padding-left: .12em; }
.screen .rd { display: block; font: 400 7cqw/1 "Open Sans", sans-serif; opacity: .85; margin-top: 5cqw; }
.screen .tm { display: block; font: 800 24cqw/1 "Open Sans", sans-serif; font-variant-numeric: tabular-nums; margin-top: 7cqw; }
.screen .pause {
  position: absolute; left: 50%; bottom: 6.5%; translate: -50% 0;
  width: 46cqw; height: 14.5cqw; border-radius: 99px; background: var(--cyan); color: #000;
  display: flex; align-items: center; justify-content: center; gap: 4cqw;
  font: 700 7cqw/1 "Figtree", sans-serif; letter-spacing: .08em;
}
.screen .pause i { width: 1.4cqw; height: 5cqw; background: #000; box-shadow: 2.6cqw 0 #000; margin-right: 2.6cqw; }
 to { opacity: 0; } }
@keyframes float { 50% { transform: rotate(4deg) translateY(-10px); } }

@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: 220px; transform: rotate(0); animation: none; }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker div { display: inline-block; animation: marquee 40s linear infinite; font: 700 22px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticker i { font-style: normal; color: var(--cyan); margin: 0 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding: 110px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head h2 { font: 900 clamp(48px, 8vw, 96px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.sec-head h2 span { color: var(--cyan); }
.sec-head p { color: var(--muted); max-width: 26em; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.mode {
  position: relative; grid-column: span 4;
  border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 26px 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(36, 193, 254, .05), transparent 60%);
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.mode:hover { border-color: rgba(36, 193, 254, .55); transform: translateY(-4px); }
.mode.wide { grid-column: span 6; }
.mode .num { font: 900 15px/1 var(--display); letter-spacing: .2em; color: var(--cyan); }
.mode h3 { font: 900 44px/1 var(--display); text-transform: uppercase; margin: 10px 0 10px; }
.mode p { color: var(--muted); font-size: 15px; }
.mode ul { list-style: none; margin: 14px 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.mode li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(36, 193, 254, .1); color: #bfe9fb; }
.mode .shot { margin-top: auto; width: 62%; align-self: center; border-radius: 18px 18px 0 0; overflow: hidden; box-shadow: 0 -10px 40px -10px rgba(36, 193, 254, .35); aspect-ratio: 1 / 1; }
.mode .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.mode.text-only { padding-bottom: 26px; }
.mode .stopwatch {
  margin-top: auto; font: 900 64px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--cyan);
}
.beat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); margin-left: 10px; vertical-align: middle; animation: pulse .375s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1.5); opacity: 1; } 100% { transform: scale(.7); opacity: .3; } }
@media (max-width: 960px) { .mode, .mode.wide { grid-column: span 6; } }
@media (max-width: 620px) { .mode, .mode.wide { grid-column: span 12; } }

/* uses */
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.use { border-radius: 18px; padding: 36px; position: relative; overflow: hidden; }
.use.sport { background: var(--work); }
.use.study { background: var(--rest); }
.use h3 { font: 900 64px/.9 var(--display); text-transform: uppercase; }
.use .tag { font: 700 13px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.use ol { list-style: none; margin-top: 24px; counter-reset: u; }
.use li { counter-increment: u; display: grid; grid-template-columns: 44px 1fr; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.use li::before { content: counter(u, decimal-leading-zero); font: 900 20px/1.4 var(--display); opacity: .6; }
.use li b { display: block; }
.use li span { font-size: 14.5px; opacity: .85; }
.use::after {
  content: attr(data-big); position: absolute; right: -10px; bottom: -40px;
  font: 900 200px/1 var(--display); color: rgba(255, 255, 255, .07); pointer-events: none;
}
@media (max-width: 760px) { .uses { grid-template-columns: 1fr; } .use { padding: 28px 22px; } }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat svg { width: 28px; height: 28px; stroke: var(--cyan); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 16px; margin: 14px 0 6px; }
.feat p { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* final cta */
/* support */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.support-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: 16px; }
.support-card h3 { font-size: 18px; margin: 0 0 8px; }
.support-card p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.support-card a { color: var(--cyan); }
.support-mail { display: inline-block; font: 700 clamp(18px, 3vw, 24px)/1.2 var(--body); letter-spacing: .01em; word-break: break-all; margin-top: 6px; }
@media (max-width: 720px) { .support { grid-template-columns: 1fr; } }

.final { text-align: center; padding: 120px 0 130px; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 700px; height: 700px; translate: -50% -50%;
  background: radial-gradient(circle, rgba(36, 193, 254, .22), transparent 65%);
}
.final .wrap { position: relative; }
.final img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: 0 0 0 1px var(--line); }
.final h2 { font: 900 clamp(56px, 10vw, 120px)/.9 var(--display); text-transform: uppercase; }
.final h2 span { color: var(--cyan); }
.final p { color: var(--muted); margin: 18px auto 0; max-width: 30em; }
.final .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--cyan); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { animation: rise .8s ease both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .32s; }
.hero .reveal:nth-child(6) { animation-delay: .40s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* language switch */
nav.links a.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }

/* Japanese */
:lang(ja) body, body:lang(ja) {
  font-family: "Figtree", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  line-height: 1.8;
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) li { word-break: auto-phrase; line-break: strict; }
:lang(ja) h1 { font-weight: 900; letter-spacing: 0; line-height: 1.35; }
:lang(ja) .sec-head h2, :lang(ja) .use h3, :lang(ja) .final h2 {
  font-family: "Big Shoulders Display", "Zen Kaku Gothic New", sans-serif;
}
:lang(ja) .sec-head h2 small { display: block; font: 900 clamp(22px, 3.2vw, 34px)/1.3 "Zen Kaku Gothic New", sans-serif; margin-top: 12px; letter-spacing: .04em; }
:lang(ja) .sec-head h2 small span { color: var(--cyan); }
:lang(ja) .mode h3 small, :lang(ja) .use h3 small { display: block; font: 700 15px/1.4 "Zen Kaku Gothic New", sans-serif; color: var(--muted); letter-spacing: .06em; margin-top: 6px; }
:lang(ja) .use h3 small { color: inherit; opacity: .8; }

/* ---------- video ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #05090c;
  box-shadow: 0 40px 100px -40px rgba(36, 193, 254, .5);
}
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; opacity: .85; }
.video button:hover img { transform: scale(1.03); opacity: 1; }
.video .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 92px; height: 92px; border-radius: 50%; background: var(--cyan);
  display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(36, 193, 254, .2);
  transition: transform .2s;
}
.video button:hover .play { transform: scale(1.08); }
.video .play svg { width: 34px; height: 34px; margin-left: 5px; fill: #000; }
.video button:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-alt { margin-top: 14px; font-size: 14px; color: var(--muted); }
.video-alt a { color: var(--cyan); }
