/* Trubotshow — shared styles.
   Every page lives in the same off-white photo studio as the home page:
   a warm gray wall fading into a lit floor, with things floating above it.
   Fonts (all free, SIL Open Font License): Sora for headings, Pretendard for text,
   Doto + Galmuri11 (dot-matrix, like Trubot's LEDs) for small labels. */

/* ---------- Trubotshow colors ----------
   Studio (the room):   wall #d9d6d0 · floor #ece9e3 · card #faf9f6
   Ink (text):          ink #17181a · muted #6d6a64 · line 8% black
   Brand (Trubot):      mint #5cf4dc = Trubot's eyes · accent #0a9a85 = mint dark enough for text · glow #2ee6c8
   Light (holograms):   ten soft neon lights around the color wheel, all about as bright as Trubot's mint, so any two sit well
                        together on the off-white studio. Each idea box on the home page gets its own one.
   ---------------------------------------- */
:root {
  --studio-wall: #d9d6d0;
  --studio-floor: #ece9e3;
  --card: #faf9f6;
  --ink: #17181a;
  --muted: #6d6a64;
  --line: rgba(0,0,0,.08);
  --mint: #5cf4dc;            /* Trubot's eyes */
  --accent: #0a9a85;          /* Trubot teal, dark enough to read */
  --glow: #2ee6c8;
  --holo-mint: #5cf4dc;
  --holo-sky: #6ccaff;
  --holo-blue: #8199ff;
  --holo-violet: #b08cff;
  --holo-orchid: #ec84ff;
  --holo-pink: #ff7ab8;       /* Trubot's heart */
  --holo-coral: #ff8a6e;
  --holo-amber: #ffbe5c;
  --holo-yellow: #f1e35e;
  --holo-lime: #b4ee6a;
  --radius: 26px;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --display: "Sora", var(--sans);
  --led: "Doto", "Galmuri11", "JetBrains Mono", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
@view-transition { navigation: auto; }
header.site { view-transition-name: header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  background:
    radial-gradient(70% 45% at 50% 78%, rgba(255,254,250,.7), rgba(255,254,250,0) 70%),
    linear-gradient(180deg, #c6c3bd 0%, #d3d0ca 30%, #e2dfd9 62%, #ebe8e2 100%);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* show only the active language */
html[data-lang="en"] [data-ko], html[data-lang="ko"] [data-en] { display: none !important; }

.label { font-family: var(--led); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.led { font-family: var(--led); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- header: logo left, menu right ---------- */
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: none; padding: 0 24px; }
.brand { font-family: var(--led); font-weight: 800; font-size: 19px; letter-spacing: .02em; color: var(--ink); transition: color 1s ease; }
.brand:hover { text-decoration: none; color: var(--accent); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
header.site nav a, .langs button { font-family: var(--led); font-weight: 800; font-size: 15px; letter-spacing: .03em; }
nav a:hover, nav a.on { color: var(--ink); text-decoration: none; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px; cursor: pointer;
}
.langs button { font-size: 13px; }
.langs button.on { background: var(--ink); color: #fff; }

/* ---------- pages: a black LED screen, like Trubot's face ---------- */
.doc {
  --led-c: #5cf4dc;                       /* lit LED */
  --led-soft: rgba(176,236,226,.78);      /* body text */
  --led-dim: rgba(92,244,220,.55);        /* small labels */
  --led-line: rgba(92,244,220,.18);
  position: relative; margin: 28px auto 0; padding: 52px 54px 44px; overflow: hidden;
  color: var(--led-soft); border-radius: 26px;
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(70,128,124,.16) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(120% 90% at 30% 0%, #172122 0%, #070a0a 55%, #030505 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 40px 80px -40px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6);
  transform-origin: 50% 0;
  view-transition-name: screen;
}
.doc::after {                /* soft floor shadow under the floating screen */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -44px; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30,20,10,.3), rgba(30,20,10,0)); z-index: -1;
}
.doc.closing { animation: holoOut .26s cubic-bezier(.6,0,.8,.4) forwards; }
@keyframes holoOut { to { opacity: 0; transform: scaleY(.03) scaleX(.7); filter: brightness(1.8); } }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 46px); letter-spacing: -.035em; line-height: 1.1; margin: 10px 0 12px;
  color: var(--led-c); text-shadow: 0 0 18px rgba(46,230,200,.35); }
html[data-lang="ko"] .doc h1 { letter-spacing: -.045em; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.015em; margin: 44px 0 10px; color: var(--led-c); }
.doc h3 { font-size: 16px; margin: 26px 0 4px; color: #d9fbf5; }
.doc p, .doc li { color: var(--led-soft); }
.doc ul { padding-left: 20px; }
.doc strong { color: #d9fbf5; }
.doc .tag, .doc .label, .doc .back { color: var(--led-dim); }
.doc .led { color: var(--led-c); }
.doc a { color: var(--led-c); }
.doc a:hover { text-shadow: 0 0 10px rgba(46,230,200,.5); }
.faq > div { counter-reset: q; }
.faq h3::before { counter-increment: q; content: counter(q, decimal-leading-zero); font-family: var(--led); font-weight: 800; color: var(--led-c); margin-right: 12px; }
.tag { color: var(--muted); margin: 0; }
.lead { font-size: 18px; margin: 20px 0 0; }
.card { background: rgba(92,244,220,.05); border-radius: 18px; padding: 22px 24px; margin: 26px 0; box-shadow: 0 0 0 1px var(--led-line); }
.mail {
  display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  background: transparent; color: var(--led-c) !important; box-shadow: 0 0 0 1.5px var(--led-c), 0 0 18px rgba(46,230,200,.25);
}
.mail:hover { text-decoration: none; background: rgba(92,244,220,.1); }

/* ---------- apps list ---------- */
.app-list { margin-top: 30px; display: grid; gap: 10px; }
.app-row {
  display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: rgba(92,244,220,.04); box-shadow: 0 0 0 1px var(--led-line); color: var(--led-soft) !important;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
a.app-row:hover { text-decoration: none; background: rgba(92,244,220,.09); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(92,244,220,.45), 0 0 24px rgba(46,230,200,.15); }
.app-row-text { flex: 1; min-width: 0; }
.app-row-name { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: #d9fbf5; }
.app-row-tag { color: var(--led-dim); font-size: 14px; }
.app-row-side { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.app-row-side .led { font-size: 11px; color: var(--led-dim); }
.arrow { color: var(--led-dim); }
.thumb { width: 56px; height: 56px; border-radius: 16px; flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; }
.thumb.q {                    /* an app still in its box: just a "?" */
  display: grid; place-items: center; background: rgba(92,244,220,.06); box-shadow: inset 0 0 0 1px var(--led-line);
  font-family: var(--led); font-weight: 800; font-size: 28px; color: var(--led-c); text-shadow: 0 0 12px rgba(46,230,200,.5);
}
.app-row-q { background: transparent; box-shadow: none; padding-top: 4px; padding-bottom: 4px; }
.thumb.frost { position: relative; background: #f1f0ee; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.thumb.frost i { position: absolute; inset: 22%; border-radius: 40%; background: var(--c); filter: blur(7px); opacity: .85; }
.thumb.frost::after { content: ""; position: absolute; inset: 0; background: rgba(244,243,241,.35); }
.thumb.frost b { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-family: var(--led); font-weight: 800; font-size: 26px; color: rgba(23,24,26,.55); }

/* ---------- one app ---------- */
.back { font-size: 14px; }
.app-hero { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.app-hero .thumb { width: 88px; height: 88px; border-radius: 24px; }
.app-hero .thumb.frost b { font-size: 40px; }
.app-hero h1 { margin: 4px 0 4px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.feature { background: rgba(92,244,220,.04); border-radius: 16px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--led-line); }
.feature .num { font-family: var(--led); font-weight: 800; font-size: 13px; color: var(--led-c); }
.feature h3 { margin: 4px 0 2px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--led-dim); }
.log { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--led-line); }
.log li { position: relative; padding: 0 0 22px 22px; }
.log li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--led-c); box-shadow: 0 0 10px var(--glow); }
.log time { font-family: var(--led); font-weight: 800; font-size: 13px; color: var(--led-c); }
.log h3 { margin: 2px 0 2px; }
.log p { margin: 0; color: var(--led-dim); font-size: 15px; }

/* ---------- footer ---------- */
footer { margin-top: 72px; padding: 0 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
footer nav { gap: 18px; }
footer a { color: var(--muted); font-size: 13px; }
footer a:hover { color: var(--ink); }

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  header.site .wrap { padding: 0 16px; }
  nav { gap: 12px; }
  header.site nav a { font-size: 13px; }
  .brand { font-size: 16px; }
  .doc { padding: 34px 20px 28px; border-radius: 20px; margin-top: 12px; }
  .app-row-side .led { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
