/* Layout: dark ink header + hero with emblem rings, white content bands, teal as the one strong accent, yellow only for small highlights. */
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --teal: #009073;
  --teal-deep: #00684f;
  --teal-soft: #e3f3ee;
  --ink: #161615;
  --ink-2: #22231f;
  --yellow: #FDED26;
  --bg: #ffffff;
  --bg-alt: #f4f8f6;
  --text: #161615;
  --muted: #56615c;
  --line: #dfe8e4;
  --on-ink: #f2f5f3;
  --on-ink-muted: #a9b4af;
  --display: "DM Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
a { color: var(--teal-deep); }
a:hover { color: var(--teal); }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Header */
/* White header: the transparent horizontal logo is drawn for light backgrounds. */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 46px; width: auto; display: block; }
.brand-logo + .brand-text { display: none; } /* text wordmark only when the logo file is missing */
.brand-text { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text b { color: var(--teal); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--teal-deep); }
.nav .lang-switch { color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 1px 9px; }
.nav .lang-switch:hover { border-color: var(--teal); color: var(--teal-deep); }

/* Traditional Chinese: Latin glyphs keep the brand faces, Han falls back to the system's TC face. */
.lang-zh {
  --display: "DM Sans", "PingFang TC", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --body: "DM Sans", "PingFang TC", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.lang-zh .hero h1 { letter-spacing: 0; line-height: 1.15; }
.lang-zh .section h2, .lang-zh .principle h3 { letter-spacing: 0; }
.lang-zh .eyebrow, .lang-zh .kicker { letter-spacing: 0.2em; }

/* Japanese: Latin glyphs keep the brand faces, kana/kanji fall back to the system's Japanese face. */
.lang-ja {
  --display: "DM Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --body: "DM Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
}
.lang-ja .hero h1 { font-size: clamp(27px, 4.6vw, 48px); letter-spacing: 0; line-height: 1.3; }
.lang-ja .hero h1 .nb { white-space: nowrap; }
.lang-ja .lead, .lang-ja .app-desc, .lang-ja .principle p, .lang-ja .contact-text { line-break: strict; overflow-wrap: anywhere; }
.lang-ja .section h2, .lang-ja .principle h3 { letter-spacing: 0; }
.lang-ja .eyebrow, .lang-ja .kicker { letter-spacing: 0.12em; }

/* Hero */
.hero { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; padding-block: 88px 96px; }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 700; }
.hero h1 .nb { white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 8%, var(--yellow) 8%, var(--yellow) 96%, transparent 96%); padding: 0 0.12em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { margin: 24px 0 0; max-width: 34em; font-size: 19px; color: var(--on-ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.22); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink); color: var(--on-ink); }

.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(0,144,115,0.45); }
.ring-1 { inset: 0; }
.ring-2 { inset: 12%; border-color: rgba(0,144,115,0.65); }
.ring-3 { inset: 22%; background: #fff; border: 0; box-shadow: 0 0 0 8px rgba(0,144,115,0.18), 0 24px 60px -20px rgba(0,0,0,0.6); }
/* The emblem's white leaves are cut-outs, so it always sits on a white disc. */
.hero-emblem { position: relative; width: 46%; height: auto; }
.dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); top: 13%; right: 17%; box-shadow: 0 0 0 6px rgba(253,237,38,0.15); }

/* Sections */
.section { padding-block: 96px; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 40px; }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); }
.section h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; line-height: 1.1; }

/* App feature */
.app-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 1px 2px rgba(22,22,21,0.04), 0 12px 32px -16px rgba(22,22,21,0.12); }
.app-main { min-width: 0; }
.app-title { display: flex; align-items: center; gap: 18px; }
.app-icon { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 2px 8px rgba(22,22,21,0.15); }
.app-title h3 { font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; }
.app-sub { margin: 2px 0 0; color: var(--muted); font-weight: 500; }
.app-desc { margin: 22px 0 0; color: var(--muted); max-width: 36em; }
.cards { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cards li { font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--text); }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill-soon { background: var(--teal-soft); border-color: transparent; color: var(--teal-deep); }
.links { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 500; }

.app-side { display: grid; place-items: center; min-width: 0; padding-left: 28px; }
/* Real app screenshot in a simple phone frame, with the app icon as a badge. */
.phone { position: relative; margin: 0; width: 100%; max-width: 280px; padding: 10px; background: var(--ink); border-radius: 34px; box-shadow: 0 30px 60px -28px rgba(22,22,21,0.55), 0 0 0 1px rgba(22,22,21,0.08); transform: rotate(2deg); }
.phone-screen { display: block; width: 100%; height: auto; border-radius: 25px; aspect-ratio: 600 / 1150; object-fit: cover; object-position: top; max-height: 470px; }
.phone-badge { position: absolute; left: -26px; bottom: 38px; width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 10px 24px -8px rgba(22,22,21,0.45); transform: rotate(-6deg); }

.more { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--muted); }
.more p { margin: 0; }
.more-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(253,237,38,0.3); flex: none; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding-top: 22px; border-top: 3px solid var(--teal); }
.principle h3 { font-size: 22px; letter-spacing: -0.01em; }
.principle p { margin: 10px 0 0; color: var(--muted); }

/* Contact */
.contact { background: var(--teal); color: #fff; }
.contact .kicker { color: var(--yellow); }
.contact-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact-text { margin: 14px 0 0; max-width: 32em; color: rgba(255,255,255,0.85); }
.email { font-family: var(--display); font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; color: #fff; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 4px; overflow-wrap: anywhere; }
.email:hover { color: var(--yellow); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 40px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.footer-logo img { width: 80%; height: auto; display: block; }
.footer-name { color: var(--on-ink); font-weight: 600; letter-spacing: 0.06em; }
.site-footer p { margin: 0; }
.footer-legal { max-width: 34em; display: grid; gap: 6px; }
.site-footer .small { font-size: 12px; color: #7f8a85; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 64px; }
  .hero-art { max-width: 260px; justify-self: start; order: -1; }
  .app-feature { grid-template-columns: 1fr; padding: 28px; }
  .phone { max-width: 250px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .section { padding-block: 64px; }
}
@media (max-width: 520px) {
  .nav { gap: 14px; }
  .brand-logo { height: 36px; }
  .nav a[href="#approach"], .nav a[href="#contact"] { display: none; }
  .hero-art { max-width: 180px; }
  .app-feature { padding: 22px; }
  .app-title h3 { font-size: 26px; }
  .app-icon { width: 72px; height: 72px; border-radius: 16px; }
}
