/* Sticky header, wrap, buttons, hero, footer, burger, responsive breakpoints.
   Brand tokens: HESIM Visual Direction v1 (teal primary). */

:root {
  --green: #0f8a6f;
  --green-dark: #0a6b56;
  --green-soft: #e5f5f0;
  --gold: #2563a8;
  --gold-soft: #e8f1fa;
  --bg: #ffffff;
  --bg-muted: #f6f8f7;
  --footer: #0f2027;
  --text: #0f2027;
  --muted: #4b5f61;
  --border: #e2e8e6;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 32, 39, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.65rem 1.25rem; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }

header {
  position: sticky; top: 0; z-index: 100;
  height: 68px; background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-row {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; flex-shrink: 0; color: inherit;
}
.he-mark {
  display: inline-flex; align-items: flex-end;
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.85; font-size: 26px;
}
.he-mark-h { font-size: 1em; line-height: 0.85; }
.he-mark-e {
  font-size: 0.78em; color: var(--green); position: relative; top: 0.22em; margin-left: 0.02em;
}
.he-wordmark {
  font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-size: 1.2rem; line-height: 1;
}
.he-wordmark-sim { color: var(--green); }
.nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--muted); font-size: 0.88rem; font-weight: 500;
  padding: 0.4rem 0.65rem; border-radius: 8px;
}
.nav a:not(.btn):hover, .nav a.active { color: var(--green); }
.burger {
  display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.burger i { display: block; width: 22px; height: 2px; background: var(--text); }

section { padding: 3.5rem 0; }
.muted { background: var(--bg-muted); }
h1 { font-size: clamp(1.85rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.brand-line {
  color: var(--green-dark);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 auto 0.5rem;
  text-align: center;
  opacity: 0.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.25rem 0 0; justify-content: center; }
.hero {
  background:
    radial-gradient(ellipse 90% 70% at 50% 18%, rgba(229, 245, 240, 0.9) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 82% 42%, rgba(232, 241, 250, 0.45) 0%, transparent 52%),
    linear-gradient(180deg, #eef6f3 0%, #f6f8f7 42%, #ffffff 100%);
  padding: 2.5rem 0 2rem; text-align: center;
}
.hero .wrap { position: relative; z-index: 1; }
.hero p.body { max-width: 720px; margin: 0 auto; color: var(--muted); }
.status-pill {
  display: inline-block; margin: 1rem 0 0;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark);
}
.status-note { margin-top: 0.75rem; font-size: 0.95rem; color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.9rem; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark);
  font-weight: 800; font-size: 0.85rem; margin-bottom: 0.65rem;
}

.legal { padding: 2.5rem 0 4rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { text-align: left; }
.legal h2 { text-align: left; font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); margin-bottom: 0.85rem; }
.legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.4rem; }
.updated { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }

.contact-block p { color: var(--muted); margin-bottom: 0.65rem; }
.contact-note {
  margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 12px;
  background: var(--bg-muted); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.95rem;
}

footer {
  background: var(--footer); color: rgba(255,255,255,0.72); padding: 3rem 0 1.5rem; margin-top: 2rem;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.85rem; }
footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand .logo .he-wordmark { color: #fff; }
.copy { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; font-size: 0.8rem; opacity: 0.65; text-align: center; }

.mobile {
  display: none; position: fixed; inset: 0; background: rgba(15,32,39,0.45); z-index: 110;
}
.mobile.open { display: block; }
.mobile-panel {
  position: absolute; right: 0; top: 0; width: min(300px, 88vw); height: 100%;
  background: #fff; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem;
}
.mobile-panel a {
  text-decoration: none; color: var(--text); font-weight: 600;
  padding: 0.85rem 1rem; border-radius: 10px;
}
.mobile-panel a:hover { background: var(--bg-muted); }
.mobile-close {
  align-self: flex-end; width: 44px; height: 44px; border: none; background: none;
  font-size: 1.4rem; cursor: pointer; color: var(--text);
}

@media (max-width: 800px) {
  .nav-links, .nav .btn-green { display: none !important; }
  .burger { display: flex; flex-shrink: 0; }
  .nav { gap: 0.35rem; flex-wrap: nowrap; align-items: center; }
  header, .header-row { height: 60px; }
  .wrap { padding: 0 0.75rem; }
  section { padding: 2.25rem 0; }
  .hero { padding: 1.75rem 0 1.4rem; }
}
