/* CETHO website. Built from the "Website Company Profile" canvas design.
   Blue bands open and close the page, white and mist bands between, one dark ink band for the closing call.
   One light look on purpose: the brand blue is the identity. */
:root {
  --brand: #1D4ED8;      /* Biru CETHO */
  --brand-deep: #1E40AF; /* surfaces on the blue */
  --ink: #0A2540;        /* Biru Malam: headings, CTA band */
  --mist: #EFF4FF;       /* Kabut: alternate band */
  --line: #BFDBFE;
  --on-brand-soft: #DBEAFE;
  --sky: #93C5FD;
  --text: #334155;
  --muted: #475569;
  --white: #FFFFFF;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img, svg { max-width: 100%; }
a, button, summary, label[for] { cursor: pointer; }
a { color: var(--brand); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.section :focus-visible { outline-color: var(--brand); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) {
  .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--white); color: var(--brand); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; z-index: 20; }
.skip:focus { top: 12px; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.h2 { font-size: clamp(30px, 4.2vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.section { padding-block: clamp(64px, 9vw, 96px); }
.mist { background: var(--mist); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 14px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: var(--on-brand-soft); color: var(--ink); }
.btn-ghost { color: var(--white); border-color: var(--sky); }
.btn-ghost:hover { background: var(--brand-deep); color: var(--white); border-color: var(--white); }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-outline { color: var(--brand); border-color: var(--line); background: var(--white); }
.btn-outline:hover { border-color: var(--brand); color: var(--ink); }
.btn[disabled] { cursor: not-allowed; opacity: .6; }
.actions { display: flex; gap: 12px 16px; flex-wrap: wrap; }

/* Header */
.band { background: var(--brand); color: var(--white); }
.band a:not(.btn) { color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); min-height: 44px; }
.brand svg { flex: none; }
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: 8px 24px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; padding: 10px 2px; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--sky); }
.lang { display: inline-flex; border: 2px solid var(--sky); border-radius: var(--r-sm); overflow: hidden; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.nav .lang a { padding: 0 10px; border-bottom: 0; }
.lang a:hover { background: var(--brand-deep); }
.lang [aria-current="true"] { background: var(--white); color: var(--brand); }
.menu-btn { display: none; background: transparent; border: 2px solid var(--sky); color: var(--white); border-radius: var(--r-sm); width: 48px; height: 48px; align-items: center; justify-content: center; }
.menu-btn:hover { background: var(--brand-deep); }
.menu-btn .i-close { display: none; }
.site-header.open .menu-btn .i-open { display: none; }
.site-header.open .menu-btn .i-close { display: block; }

/* The collapsed phone menu needs main.js; without it the links simply stack under the logo. */
@media (max-width: 899px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; }
  .js .site-header .wrap { flex-wrap: nowrap; }
  .js .menu-btn { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; z-index: 10; top: calc(100% - 4px);
    left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--brand-deep); border-radius: var(--r-md); padding: 12px;
  }
  .js .site-header.open .nav { display: flex; }
  .js .nav a:not(.btn) { padding: 12px; border-bottom: 0; border-radius: 10px; }
  .js .nav a:not(.btn):hover { background: var(--brand); }
  .js .nav .lang { align-self: flex-start; margin: 4px 12px; }
  .js .nav .lang a { padding: 0 10px; }
}

/* Hero */
.hero .wrap {
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(72px, 9vw, 112px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: var(--on-brand-soft); max-width: 34em; }
.mark-tile { position: relative; justify-self: center; width: 380px; max-width: 100%; aspect-ratio: 1; border-radius: 48px; background: var(--brand-deep); display: flex; align-items: center; justify-content: center; }
.mark-tile svg { width: 63%; height: auto; }

/* The centre square draws itself from dots: the brand's "becoming clear" gesture. */
.flow { stroke-dasharray: 0 12.5; stroke-width: 6; animation: flow 2.4s infinite; }
@keyframes flow {
  0%, 35% { stroke-dasharray: 0 12.5; stroke-width: 6; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  60%, 85% { stroke-dasharray: 100 0; stroke-width: 16; stroke-dashoffset: -60; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { stroke-dasharray: 0 12.5; stroke-width: 6; stroke-dashoffset: -100; }
}
.paused .flow { animation-play-state: paused; }
.pause-btn { display: none; position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--sky); background: transparent; color: var(--white); align-items: center; justify-content: center; }
.js .pause-btn { display: inline-flex; }
.pause-btn:hover { background: var(--brand); }
.pause-btn .i-play { display: none; }
.paused .pause-btn .i-play { display: block; }
.paused .pause-btn .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) {
  .flow { animation: none; stroke-dasharray: 100 0; stroke-width: 16; }
  .js .pause-btn { display: none; }
}

/* About */
.about-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px 48px; }
.about-top > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.body-lg { font-size: 18px; line-height: 1.7; color: var(--text); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; margin-top: 48px; }
.value { background: var(--mist); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.value .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); display: flex; align-items: center; justify-content: center; color: var(--white); }
.value h3 { font-size: 22px; font-weight: 700; }
.value p { color: var(--text); }

/* Products: four equal cards, same build, ordered from the smallest business to the largest. */
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 40px; }
.sec-head .intro { font-size: 18px; color: var(--text); }
.products { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.product { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; min-width: 0; background: var(--white); border: 2px solid var(--on-brand-soft); }
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.platform { font-size: 14px; font-weight: 600; color: var(--muted); }
.soon { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--on-brand-soft); color: var(--brand-deep); }
.product h3 { font-size: clamp(24px, 2.6vw, 28px); font-weight: 800; }
.tagline { font-size: 18px; font-weight: 600; color: var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.checks svg { flex: none; margin-top: 3px; color: var(--brand); }
.product .btn { align-self: flex-start; margin-top: auto; }

/* Services: a plain list, supporting text rather than products */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 40px; border-top: 2px solid var(--on-brand-soft); }
.service { padding-block: 24px; border-bottom: 2px solid var(--on-brand-soft); display: flex; flex-direction: column; gap: 6px; }
.service h3 { font-size: 20px; font-weight: 700; }
.service p { color: var(--text); }
.svc-note { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* Closing call */
.cta { background: var(--ink); color: var(--white); }
.cta .wrap { padding-block: clamp(56px, 7vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.cta h2 { max-width: 640px; }
.cta em { font-style: normal; color: var(--sky); }

/* Contact: email only. The address is always shown as text, since a mailto link does nothing without a mail app. */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px 48px; align-items: center; }
.contact-info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mail-card { background: var(--mist); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mail-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.mail-addr { font-size: 18px; font-weight: 600; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.mail-card .actions { margin-top: 8px; }
.copy-status { min-height: 1.6em; color: var(--muted); font-size: 15px; }

/* Privacy and 404: one readable column */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.back { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.legal-body { display: flex; flex-direction: column; gap: 14px; color: var(--text); font-size: 17px; line-height: 1.7; }
.legal-body h1 { color: var(--ink); }
.legal-body h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 12px; }
.effective { color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer .wrap { padding-block: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.site-footer .wordmark { font-size: 20px; }
.foot-note { font-size: 14px; color: var(--on-brand-soft); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-note a { color: var(--white); }
