/* ===== Variables ===== */
:root {
  --teal: #14b8c9;
  --teal-dark: #0c8a98;
  --teal-deep: #0a6f7b;
  --cream: #fce9b6;
  --cream-soft: #fdf4d8;
  --shiba: #f6dd97;
  --ink: #3a3530;
  --ink-soft: #6b6258;
  --bg: #f4fbfc;
  --bg-alt: #ffffff;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(12, 138, 152, 0.12);
  --shadow-sm: 0 6px 16px rgba(12, 138, 152, 0.1);
  --radius: 22px;
  --radius-lg: 32px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(1120px, 90%); margin: 0 auto; }

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

a { text-decoration: none; color: inherit; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 800;
  font-family: inherit;
  border-radius: 999px;
  padding: 0.85em 1.8em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-ico { font-size: 1.1em; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(12, 138, 152, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(12, 138, 152, 0.45); }
.btn-ghost {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); }
.btn-mini { padding: 0.6em 1.4em; font-size: 0.92rem; background: var(--teal); color: #fff; box-shadow: 0 6px 14px rgba(12,138,152,.3); }
.btn-mini:hover { transform: translateY(-2px); }
.btn-lg { font-size: 1.18rem; padding: 1.05em 2.4em; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 184, 201, 0.12);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(12, 138, 152, 0.1); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 66px; }
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand-mascot { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--teal-dark); letter-spacing: 0.5px; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.18s; }
.nav a:hover { color: var(--teal-dark); }
.header-inner .btn-mini { margin-left: 1rem; }

/* Language switcher */
.lang-switch { position: relative; margin-left: 1.4rem; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: inherit; font-weight: 700; font-size: 0.9rem;
  color: var(--ink-soft); background: transparent;
  border: 1.5px solid rgba(20, 184, 201, 0.3); border-radius: 999px;
  padding: 0.45em 0.9em; cursor: pointer; transition: border-color 0.18s, color 0.18s;
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.lang-globe { font-size: 1.05em; }
.lang-caret { font-size: 0.7em; opacity: 0.7; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  list-style: none; margin: 0; padding: 0.4rem;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid rgba(20, 184, 201, 0.12);
  min-width: 160px; max-height: 70vh; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s; z-index: 200;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-menu li { margin: 0; }
.lang-menu button {
  width: 100%; text-align: left; font-family: inherit; font-size: 0.95rem; font-weight: 600;
  color: var(--ink); background: transparent; border: none; cursor: pointer;
  padding: 0.6em 0.9em 0.6em 2em; border-radius: 9px; position: relative;
}
.lang-menu button:hover { background: var(--bg); color: var(--teal-dark); }
.lang-menu button.active { color: var(--teal-dark); font-weight: 800; }
.lang-menu button.active::before { content: "✓"; position: absolute; left: 0.7em; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 90px;
  background:
    radial-gradient(1100px 500px at 80% -10%, #d6f4f8 0%, transparent 60%),
    linear-gradient(180deg, #eafafc 0%, var(--bg) 100%);
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.5; z-index: 0; }
.blob-1 { width: 380px; height: 380px; background: #b9eef4; top: -80px; left: -120px; }
.blob-2 { width: 300px; height: 300px; background: var(--cream); bottom: -100px; right: -60px; opacity: 0.6; }
.paw-deco { position: absolute; font-size: 2rem; opacity: 0.25; z-index: 0; }
.paw-1 { top: 22%; right: 8%; transform: rotate(20deg); }
.paw-2 { bottom: 14%; left: 6%; transform: rotate(-15deg); font-size: 1.5rem; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 0.85rem;
  padding: 0.45em 1.1em; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero-badge::before { content: "🎤"; }
.hero-title {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 1; font-weight: 800;
  letter-spacing: 1px;
  display: inline-flex; align-items: flex-start; gap: 0.1em;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--teal-deep);
  filter: drop-shadow(0 4px 0 rgba(255, 255, 255, 0.9)) drop-shadow(0 8px 14px rgba(12, 138, 152, 0.18));
}
.hero-title span { background: none; -webkit-background-clip: border-box; }
.hero-paw {
  font-size: 0.4em; -webkit-text-fill-color: initial;
  align-self: flex-start; margin-top: 0.2em; transform: rotate(12deg);
}
.hero-tagline { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; margin: 0.6rem 0 1.2rem; color: var(--ink); }
.hero-lead { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 1.8rem; }
.hero-lead strong { color: var(--teal-dark); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hero-note { font-size: 0.85rem; color: var(--ink-soft); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-mascot { width: min(360px, 80%); animation: float 4s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(12,138,152,.18)); }
.speech-bubble {
  position: absolute; top: 8%; right: 0;
  background: #fff; color: var(--teal-dark);
  font-weight: 800; font-size: 0.95rem;
  padding: 0.7em 1.1em; border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-sm);
  animation: float 4s ease-in-out infinite reverse;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ===== Section base ===== */
.section { padding: 90px 0; }
.eyebrow {
  display: inline-block; font-family: "Baloo 2", sans-serif;
  font-weight: 700; letter-spacing: 2px; font-size: 0.9rem;
  color: var(--teal); margin-bottom: 0.6rem;
}
.eyebrow-light { color: #bff0f6; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; line-height: 1.35; color: var(--ink); }
.center-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-sub { color: var(--ink-soft); margin-top: 0.8rem; font-size: 1.05rem; }

/* ===== Concept ===== */
.concept { background: var(--bg-alt); }
.concept-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 3rem; align-items: center; }
.concept-visual { display: flex; justify-content: center; }
.concept-visual img { width: min(300px, 80%); filter: drop-shadow(0 14px 20px rgba(12,138,152,.14)); }
.concept-text p { margin: 1rem 0 1.4rem; color: var(--ink-soft); }
.concept-points { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.concept-points li { display: flex; align-items: flex-start; gap: 0.7em; font-weight: 600; }
.chk { flex-shrink: 0; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 0.85rem; }

/* ===== Banner ===== */
.banner-section { background: var(--bg-alt); padding-bottom: 90px; }
.banner-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ===== Target ===== */
.target { background: var(--bg); }
.target-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 880px; margin: 0 auto; }
.target-card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 2px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}
.target-card:hover { transform: translateY(-8px); border-color: var(--teal); }
.target-emoji { font-size: 2.6rem; margin-bottom: 0.6rem; }
.target-card h3 { font-size: 1.12rem; margin-bottom: 0.7rem; color: var(--ink); line-height: 1.45; }
.target-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ===== Features ===== */
.features { background: var(--bg-alt); }
.tag { display: inline-block; font-weight: 800; font-size: 0.8rem; padding: 0.35em 0.9em; border-radius: 999px; margin-bottom: 0.8rem; }
.tag-core { background: var(--cream); color: #9a6b00; }
.feature-hero {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2.5rem; align-items: center;
  background: linear-gradient(135deg, #eafafc, #fdf4d8);
  border-radius: var(--radius-lg); padding: 2.8rem; margin-bottom: 2.5rem;
}
.feature-hero-text h3 { font-size: 1.7rem; color: var(--teal-deep); margin-bottom: 0.8rem; }
.feature-hero-text > p { color: var(--ink-soft); margin-bottom: 0.8rem; }
.feature-hero-note { font-size: 0.92rem; background: rgba(255,255,255,.7); padding: 0.8em 1em; border-radius: 14px; border-left: 4px solid var(--teal); }
.feature-hero-note strong { color: var(--teal-deep); }
.diag-label { font-weight: 800; color: var(--teal-deep); font-size: 0.95rem; margin: 1.3rem 0 0.1rem; }
.diag-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.7rem; }
.diag-list li { background: #fff; border-radius: 12px; padding: 0.6em 0.9em; font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.feature-hero-visual img { width: min(260px, 90%); margin: 0 auto; filter: drop-shadow(0 12px 18px rgba(12,138,152,.16)); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  background: var(--bg); border-radius: var(--radius); padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm); transition: transform 0.2s; border-top: 4px solid var(--teal);
}
.feature-card:hover { transform: translateY(-8px); }
.feature-card-advanced { border-top-color: var(--cream); background: var(--cream-soft); }
.feature-ico { font-size: 2.2rem; margin-bottom: 0.7rem; }
.feature-card h3 { font-size: 1.18rem; color: var(--teal-dark); margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.94rem; color: var(--ink-soft); }

/* ===== Safety ===== */
.safety { background: linear-gradient(135deg, var(--teal-dark), var(--teal-deep)); color: #fff; }
.safety-inner { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 3rem; align-items: center; }
.safety-mascot { display: flex; justify-content: center; }
.safety-mascot img { width: min(280px, 75%); filter: drop-shadow(0 16px 26px rgba(0,0,0,.2)); background: #fff; border-radius: 30px; padding: 14px; }
.safety .section-title { color: #fff; }
.safety-lead { color: #d6f4f8; margin: 0.8rem 0 1.8rem; font-size: 1.08rem; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.safety-item {
  background: rgba(255,255,255,0.12); border-radius: 16px; padding: 1.1em 1.2em;
  font-weight: 600; font-size: 0.96rem; display: flex; gap: 0.6em; align-items: flex-start;
  backdrop-filter: blur(4px);
}
.safety-item > span:first-child { flex-shrink: 0; width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.safety-item.neg > span:first-child { background: #ff8a80; color: #5a0d00; }
.safety-item.pos > span:first-child { background: var(--cream); color: #9a6b00; }

/* ===== Spec ===== */
.spec { background: var(--bg-alt); }
.spec-table { max-width: 760px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-row { display: grid; grid-template-columns: 200px 1fr; }
.spec-row:nth-child(odd) { background: var(--cream-soft); }
.spec-row:nth-child(even) { background: #fff; }
.spec-key { font-weight: 800; color: var(--teal-deep); padding: 1.1em 1.4em; }
.spec-val { padding: 1.1em 1.4em; color: var(--ink-soft); }

/* ===== Download ===== */
.download { background: var(--bg); }
.download-card {
  position: relative; text-align: center; background: linear-gradient(135deg, #fff, var(--cream-soft));
  border-radius: var(--radius-lg); padding: 3.5rem 2rem 3rem; box-shadow: var(--shadow);
  border: 3px solid var(--cream);
}
.download-mascot { width: 130px; margin: 0 auto 1rem; filter: drop-shadow(0 10px 16px rgba(12,138,152,.16)); }
.download-card h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 0.6rem; color: var(--ink); }
.download-card > p { color: var(--ink-soft); margin-bottom: 1.8rem; }
.trial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 520px; margin: 0 auto 1.9rem; }
.trial-card { background: #fff; border: 2px solid var(--cream); border-radius: 18px; padding: 1.2rem 1rem; box-shadow: var(--shadow-sm); }
.trial-num { display: inline-block; background: var(--teal); color: #fff; font-weight: 800; font-size: 0.8rem; padding: 0.3em 1em; border-radius: 999px; margin-bottom: 0.6rem; }
.trial-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }
.trial-card strong { color: var(--teal-deep); font-size: 1.15em; }
.download-meta { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.1rem; }
.download-license { font-size: 0.95rem; color: var(--ink-soft); margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed rgba(12,138,152,.25); }
.download-license strong { color: var(--teal-deep); }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #fff; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-mascot { width: 56px; background: #fff; border-radius: 14px; padding: 4px; }
.footer-name { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.3rem; }
.footer-tag { font-size: 0.88rem; color: #b9b2a8; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: #d8d2c8; font-size: 0.92rem; font-weight: 600; transition: color 0.18s; }
.footer-nav a:hover { color: var(--teal); }
.copyright { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); color: #8d877d; font-size: 0.82rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav { display: none; }
  .lang-switch { margin-left: auto; }
  .lang-btn { padding: 0.4em 0.7em; font-size: 0.85rem; }
  .header-inner .btn-mini { margin-left: 0.6rem; }
  .hero { padding: 120px 0 70px; }
  .hero-inner, .concept-grid, .feature-hero, .safety-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-mascot { width: min(240px, 60%); }
  .target-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .feature-hero { padding: 2rem 1.5rem; }
  .diag-list { grid-template-columns: 1fr; }
  .concept-visual { order: -1; }
  .target-card h3 br { display: none; }
}
@media (max-width: 480px) {
  .target-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-key { padding-bottom: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { font-size: 1rem; padding: 0.95em 1.4em; }
  .trial-grid { grid-template-columns: 1fr; }
}

/* ===== Legal pages ===== */
.legal-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 184, 201, 0.12);
}
.legal-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.legal-back { font-weight: 700; font-size: 0.92rem; color: var(--teal-dark); }
.legal-back:hover { color: var(--teal-deep); }
.legal { max-width: 820px; padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--ink); margin-bottom: 0.4rem; }
.legal-updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 2.2rem; }
.legal .lead { color: var(--ink-soft); margin-bottom: 1.2rem; }
.legal h2 {
  font-size: 1.18rem; color: var(--teal-deep); margin: 2.2rem 0 0.8rem;
  padding-left: 0.7rem; border-left: 4px solid var(--teal);
}
.legal p, .legal li { color: var(--ink); font-size: 0.97rem; line-height: 1.9; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0.6rem 0; }
.legal li { margin: 0.35rem 0; }
.legal a { color: var(--teal-dark); text-decoration: underline; }
.legal address { font-style: normal; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: 0.8em 1em; border: 1px solid #e3eef0; font-size: 0.94rem; vertical-align: top; }
.legal th { background: var(--cream-soft); width: 32%; color: var(--teal-deep); font-weight: 700; }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.footer-legal a { color: #b9b2a8; font-size: 0.85rem; }
.footer-legal a:hover { color: var(--teal); }
@media (max-width: 600px) {
  .legal th, .legal td { display: block; width: 100%; border-bottom: none; }
  .legal td { border-top: none; padding-top: 0; }
  .legal tr { display: block; border-bottom: 1px solid #e3eef0; margin-bottom: 0.5rem; }
}
