:root {
  color-scheme: light;
  --bg: #fff8fa;
  --bg-alt: #fff1f5;
  --text: #0f172a;
  --muted: #5b657a;
  --primary: #0f3d63;
  --primary-dark: #0a2c49;
  --accent: #c8862f;
  --border: rgba(15, 23, 42, 0.1);
  --symbol-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23f0b8c7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' opacity='0.28'%3E%3Cpath d='M30 24l3.1 6.2 6.9 1-5 4.9 1.2 6.9-6.2-3.3-6.2 3.3 1.2-6.9-5-4.9 6.9-1z'/%3E%3Cpath d='M118 34l2.2 4.5 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5-3.6-3.5 5-.7z'/%3E%3Cpath d='M70 92l2.6 5.4 6 .9-4.3 4.2 1 5.9-5.3-2.8-5.3 2.8 1-5.9-4.3-4.2 6-.9z'/%3E%3Cpath d='M142 128l3.1 6.2 6.9 1-5 4.9 1.2 6.9-6.2-3.3-6.2 3.3 1.2-6.9-5-4.9 6.9-1z'/%3E%3Cpath d='M34 142l1.8 3.6 4 .6-2.9 2.8.7 4-3.6-1.9-3.6 1.9.7-4-2.9-2.8 4-.6z'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--symbol-pattern);
  background-size: 180px 180px;
  background-attachment: fixed;
  line-height: 1.6;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo span {
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  line-height: 1.2;
}

.logo-img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.language-button {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}

.language-button:hover {
  color: var(--primary);
}

.language-button.active {
  color: #ffffff;
  background: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 86vh;
  padding: 0 24px 88px;
  background-image:
    linear-gradient(180deg, rgba(8, 18, 33, 0.2) 0%, rgba(8, 18, 33, 0.35) 45%, rgba(8, 18, 33, 0.82) 100%),
    url("harbour.jpg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  color: #ffffff;
}

.hero-bear {
  position: absolute;
  z-index: 1;
  right: max(80px, calc((100vw - 1140px) / 2 + 60px));
  bottom: 60px;
  height: clamp(280px, 36.4vw, 494px);
  width: auto;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 46ch;
  margin-bottom: 30px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.primary:hover {
  background: #b3741f;
}

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Sections */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section.alt {
  max-width: none;
  background-color: var(--bg-alt);
  background-image: var(--symbol-pattern);
  background-size: 180px 180px;
}

.section.alt .section-head,
.section.alt .how-hero,
.section.alt .tree,
.section.alt .demo-panel,
.section.alt .subscribe-inner {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.demo-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
}

.demo-copy {
  max-width: 46ch;
}

.demo-copy h2 {
  margin-bottom: 14px;
}

.demo-copy p {
  margin-bottom: 24px;
  color: var(--muted);
}

.demo-qr-wrap {
  flex-shrink: 0;
  text-align: center;
}

.demo-qr {
  display: block;
  width: 240px;
  height: 240px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.demo-qr-hint {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.section-head {
  max-width: 40ch;
  margin-bottom: 48px;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section p,
.card p,
.leaves li {
  color: var(--muted);
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  padding: 34px 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.card-no {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.product-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.product-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-item figcaption {
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* Tree diagram */
.tree {
  width: 100%;
}

.tree-root-row {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 30px;
}

.tree-root-row::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 30px;
  background: var(--border);
  transform: translateX(-50%);
}

.tree-root {
  padding: 13px 24px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.branches {
  display: flex;
}

.branch {
  position: relative;
  flex: 1;
  padding-top: 30px;
  text-align: center;
}

.branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--border);
  transform: translateX(-50%);
}

.branch::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.branch:first-child::after {
  left: 50%;
  width: 50%;
}

.branch:last-child::after {
  width: 50%;
}

.tree-node {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  font-weight: 700;
}

.leaves {
  display: grid;
  gap: 9px;
  justify-items: center;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.leaves li {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Technology / models */
.model-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.model-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.model-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  border-radius: 14px;
  background: var(--bg-alt);
}

.model-logo svg {
  width: 36px;
  height: 36px;
}

.model-meta strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.model-meta span {
  font-size: 0.92rem;
  color: var(--muted);
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.spec {
  display: flex;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.spec-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.spec strong {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.spec p {
  font-size: 0.92rem;
}

/* Learning menu section with photo background */
#how {
  position: relative;
  background-image:
    linear-gradient(rgba(10, 20, 35, 0.55), rgba(10, 20, 35, 0.55)),
    url("playing.jpg");
  background-size: cover;
  background-position: center;
}

#how .section-head h2 {
  color: #ffffff;
}

#how .section-head {
  margin-bottom: 0;
}

.how-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 46px;
}

.device-stage {
  position: relative;
  min-height: 390px;
}

.device {
  position: absolute;
  overflow: hidden;
  background: #09090b;
  box-shadow:
    0 30px 70px rgba(2, 6, 23, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(240, 184, 199, 0.3), transparent 34%),
    linear-gradient(180deg, #fffafe 0%, #f7fafc 100%);
}

.device-tablet {
  top: 18px;
  right: 0;
  width: min(100%, 468px);
  height: 320px;
  padding: 12px;
  border-radius: 30px;
}

.device-tablet .device-screen {
  padding: 18px 22px 22px;
  border-radius: 20px;
}

.device-phone {
  left: 10px;
  bottom: 0;
  width: 178px;
  height: 342px;
  padding: 9px;
  border-radius: 38px;
  transform: rotate(-5deg);
}

.device-phone .device-screen {
  padding: 20px 13px 14px;
  border-radius: 29px;
}

.device-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 18px;
  border-radius: 999px;
  background: #09090b;
  transform: translateX(-50%);
}

.tablet-camera {
  position: absolute;
  top: 50%;
  left: 4px;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #334155;
  transform: translateY(-50%);
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

.app-brand,
.phone-brand {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.app-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.phone-brand {
  justify-content: center;
  margin: 12px 0 18px;
}

.phone-brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.app-dashboard {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  margin-bottom: 12px;
}

.app-child-card,
.app-progress-card,
.phone-card,
.phone-menu span {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.app-child-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.app-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: #fde2ea;
  color: var(--primary);
  font-weight: 700;
}

.app-child-card strong,
.phone-card strong {
  display: block;
  font-size: 0.95rem;
}

.app-child-card small,
.app-child-card p,
.phone-card span,
.phone-card p,
.app-progress-card span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.app-child-card p {
  margin-top: 2px;
}

.app-progress-card {
  padding: 14px;
}

.app-progress-card strong {
  display: block;
  margin: 8px 0 9px;
  font-size: 1.45rem;
  line-height: 1;
}

.app-progress-card div {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: #e5e7eb;
}

.app-progress-card i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.app-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.app-module-grid div {
  min-height: 64px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.app-module-grid strong,
.phone-menu span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
}

.app-module-grid span {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--muted);
}

.phone-status {
  padding: 0 8px;
  margin-bottom: 0;
}

.phone-card {
  padding: 15px;
  margin-bottom: 12px;
}

.phone-card p {
  margin-top: 6px;
  line-height: 1.35;
}

.phone-menu {
  display: grid;
  gap: 9px;
}

.phone-menu span {
  padding: 11px 8px;
  font-size: 0.78rem;
  text-align: center;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 62px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  transform: translateX(-50%);
}

#how .tree {
  padding: 38px 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#how .tree-node,
#how .leaves li {
  background: rgba(255, 255, 255, 0.85);
}

/* Insights / citations */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.quote {
  margin: 0;
  padding: 36px 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.quote blockquote {
  position: relative;
  margin: 0 0 18px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}

.quote figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}

.quote figcaption a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact */
.contact {
  display: grid;
  gap: 44px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.contact-row > div {
  max-width: 52ch;
}

.contact h2 {
  margin-bottom: 0;
}

.lead {
  max-width: 60ch;
  margin-bottom: 44px;
  font-size: 1.15rem;
  color: var(--muted);
}

.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.office {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.office-map {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
}

.office-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15);
}

.office-body {
  padding: 22px 26px 24px;
}

.office-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-alt);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.office-addr {
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 500;
}

.office-tel {
  margin: 0 0 12px;
}

.office-tel a {
  color: var(--muted);
  font-weight: 600;
}

.office-tel a:hover {
  color: var(--primary);
}

.office-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
}

.office-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Subscribe */
.subscribe-inner {
  max-width: 640px;
}

.subscribe-inner h2 {
  max-width: 28ch;
  margin-bottom: 28px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
}

.subscribe-form input[type="email"]:focus {
  outline: 2px solid rgba(15, 61, 99, 0.25);
  outline-offset: 1px;
  border-color: var(--primary);
}

.subscribe-form .button {
  flex-shrink: 0;
}

.subscribe-disclaimer {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.subscribe-disclaimer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.footer a {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 860px) {
  .grid,
  .quote-grid,
  .model-row,
  .spec-row,
  .offices,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .branches {
    flex-direction: column;
    gap: 22px;
  }

  .branch {
    padding-top: 0;
  }

  .branch::before,
  .branch::after {
    display: none;
  }

  .tree-root-row {
    padding-bottom: 22px;
  }

  .how-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .device-stage {
    min-height: 420px;
  }

  .device-tablet {
    right: 0;
    width: 100%;
  }

  .hero {
    min-height: 78vh;
    padding-bottom: 64px;
  }

  .hero-bear {
    right: 20px;
    bottom: 40px;
    height: 280px;
  }

  .demo-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 28px;
  }

  .demo-qr-wrap {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    justify-content: space-between;
  }

  .section {
    padding: 64px 22px;
  }

  .button {
    width: 100%;
  }

  .hero-bear {
    right: 10px;
    bottom: 30px;
    height: 234px;
  }

  .device-stage {
    min-height: 455px;
  }

  .device-tablet {
    height: 300px;
  }

  .device-phone {
    width: 154px;
    height: 298px;
  }

  .app-dashboard,
  .app-module-grid {
    grid-template-columns: 1fr;
  }

  .app-module-grid div:nth-child(n + 3) {
    display: none;
  }
}
