/* Hasi marketing site — original design system.
   Palette/typography/composition are original work; only the overall
   quality bar (whitespace, section rhythm, product-mockup presentation,
   eyebrow labels, CTA styling) was informed by studying algenos.framer.website. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-dark: #0b1220;
  --bg-dark-soft: #121b31;
  --ink: #0b1220;
  --ink-soft: #4b5568;
  --ink-faint: #8590a6;
  --blue: #2f5fe0;
  --blue-deep: #2148b8;
  --blue-pale: #eaf0ff;
  --blue-pale-2: #dbe6ff;
  --border: #e7ecf5;
  --border-dark: #263252;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px -24px rgba(20, 40, 90, 0.28);
  --shadow-card: 0 1px 2px rgba(20, 40, 90, 0.04), 0 12px 30px -18px rgba(20, 40, 90, 0.18);
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --container: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

.text-blue { color: var(--blue); }

/* ---------- Layout helpers ---------- */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section-inner-narrow { max-width: 760px; }
.section { padding: 108px 0; scroll-margin-top: 76px; }
.hero { scroll-margin-top: 76px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #eef2fb; }
.section-statement { padding: 140px 0; text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow-on-dark { color: #7fa2ff; }
.eyebrow.center, .section-headline.center, .section-sub.center { text-align: center; }

.section-headline { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: var(--ink); }
.section-headline.on-dark { color: #fff; }
.section-sub {
  font-size: 17px; color: var(--ink-soft); max-width: 620px; margin-top: 16px; line-height: 1.6;
}
.section-sub.center { margin-left: auto; margin-right: auto; }
.section-sub.on-dark { color: #b7c2dd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(47, 95, 224, 0.55); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--blue); text-decoration: none; }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; }
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; margin-left: auto; }
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 120px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -220px; right: -180px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47,95,224,0.16), rgba(47,95,224,0));
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.hero-headline { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.08; margin: 0 0 20px; }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 520px; line-height: 1.65; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 13.5px; color: var(--ink-faint); }
.proof-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c37a; box-shadow: 0 0 0 4px rgba(52,195,122,0.18); }

/* ---------- Product mockups (hand-built, reused across sections) ---------- */
.hero-visual { position: relative; }
.mock-stack { display: flex; flex-direction: column; gap: 18px; }
.mock-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 20px 22px;
}
.mock-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.mock-card-title { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mock-dot-blue { background: var(--blue); }
.mock-dot-green { background: #34c37a; }
.mock-dot-red { background: #ef4444; }
.mock-dot.pulse { animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.35); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }

.mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.mock-row:first-of-type { border-top: none; }
.mock-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue-pale); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; flex-shrink: 0;
}
.mock-avatar-alt { background: #ffe9d6; color: #b4560a; }
.mock-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mock-row-text strong { font-size: 13.5px; }
.mock-row-text span { font-size: 12.5px; color: var(--ink-faint); }
.mock-pill { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.mock-pill-amber { background: #fff2d6; color: #92600a; }
.mock-pill-blue { background: var(--blue-pale); color: var(--blue-deep); }
.mock-pill-green { background: #e3f7ea; color: #157a45; }
.mock-result-row { margin-top: 2px; }

.mock-bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; margin-bottom: 10px; line-height: 1.45; }
.mock-bubble-hasi { background: var(--blue-pale); color: var(--ink); border-bottom-left-radius: 4px; }
.mock-bubble-customer { background: #f1f4f9; color: var(--ink); border-bottom-left-radius: 4px; }
.mock-bubble-owner { background: var(--ink); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.mock-typing { display: flex; gap: 4px; padding-left: 4px; }
.mock-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: typingBounce 1.2s infinite ease-in-out; }
.mock-typing span:nth-child(2) { animation-delay: .15s; }
.mock-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.mock-convo { max-width: 460px; }
.mock-live .mock-takeover {
  margin-top: 6px; width: 100%; padding: 11px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff1f1; color: #b91c1c; font-weight: 700; font-size: 13px; cursor: default;
}
.mock-crm-row { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 0; border-top: 1px solid var(--border); }
.mock-crm-row:first-of-type { border-top: none; }
.mock-crm-row span { color: var(--ink-faint); }
.mock-crm-tags { display: flex; gap: 8px; margin-top: 12px; }
.mock-tag { font-size: 11.5px; font-weight: 600; background: var(--blue-pale); color: var(--blue-deep); padding: 5px 10px; border-radius: 999px; }

.mock-knowledge-text { font-size: 14.5px; color: var(--ink-soft); font-style: italic; line-height: 1.6; }

.mock-phone { max-width: 320px; margin: 0 auto; border-radius: 32px; padding: 26px 18px 20px; background: #fff; position: relative; }
.mock-phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 70px; height: 6px; border-radius: 4px; background: var(--border); }
.mock-card-head-phone { justify-content: center; margin-top: 6px; }

.mock-kiosk { display: flex; justify-content: center; }
.mock-kiosk-screen {
  width: 260px; height: 400px; border-radius: 28px; background: linear-gradient(180deg, #0f1b3d, #07102a);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  box-shadow: var(--shadow-soft); border: 6px solid #0b1220;
}
.mock-kiosk-orb {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7fa2ff, var(--blue) 60%, var(--blue-deep));
  box-shadow: 0 0 40px rgba(79, 125, 255, 0.55);
  animation: orbPulse 2.6s ease-in-out infinite;
}
@keyframes orbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.mock-kiosk-hint { color: #fff; font-weight: 700; font-size: 14px; margin: 0; }
.mock-kiosk-sub { color: #93a2c9; font-size: 12.5px; margin: 0; }

/* ---------- Channel grid ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.channel-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 26px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.channel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--blue-pale-2); }
.channel-icon { font-size: 26px; margin-bottom: 12px; }
.channel-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.channel-card p { font-size: 13.8px; color: var(--ink-soft); line-height: 1.55; }
.channel-note { text-align: center; margin-top: 40px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }

.check-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-soft); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue-pale); box-shadow: inset 0 0 0 1.5px var(--blue);
}
.check-list li::after {
  content: ''; position: absolute; left: 5px; top: 9px; width: 5px; height: 8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg);
}
.fine-note { margin-top: 18px; font-size: 13px; color: var(--ink-faint); }

/* ---------- Commands ---------- */
.command-grid { max-width: 720px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }
.command-row {
  display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-card);
}
.command-said { font-size: 14.5px; font-weight: 600; color: var(--ink); flex: 1.2; }
.command-arrow { color: var(--blue); font-weight: 700; }
.command-did { font-size: 13.5px; font-weight: 700; color: var(--blue-deep); background: var(--blue-pale); padding: 6px 12px; border-radius: 999px; flex: 0.8; text-align: center; }

/* ---------- Text chips ---------- */
.text-examples { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.text-chip { background: rgba(255,255,255,0.06); border: 1px solid var(--border-dark); color: #dbe4ff; padding: 9px 14px; border-radius: 999px; font-size: 13px; }

/* ---------- Feature pills / integration grid ---------- */
.feature-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.feature-pill {
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 12px 20px;
  font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-card);
}
.integration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.integration-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px;
  display: flex; flex-direction: column; gap: 4px; transition: transform .18s ease, box-shadow .18s ease;
}
.integration-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.integration-card strong { font-size: 14.5px; }
.integration-card span { font-size: 12.5px; color: var(--ink-faint); }
.integration-soon { background: var(--bg-soft); border-style: dashed; }
.integration-soon span { color: var(--blue-deep); font-weight: 600; }
.integration-more { background: var(--ink); border-color: var(--ink); align-items: flex-start; justify-content: center; }
.integration-more strong { color: #fff; }
.integration-more span { color: rgba(255,255,255,.72); }

/* ---------- Statement / business types ---------- */
.statement-headline { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.statement-sub { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.biz-chip { background: var(--blue-pale); color: var(--blue-deep); font-weight: 600; font-size: 13.5px; padding: 10px 18px; border-radius: 999px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.pricing-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px;
  position: relative; box-shadow: var(--shadow-card);
}
.pricing-card h3 { font-size: 20px; margin-bottom: 6px; }
.pricing-tag { color: var(--blue-deep); font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
.pricing-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.pricing-price { font-size: 26px; font-weight: 800; color: var(--ink); }
.pricing-price span { font-size: 14px; font-weight: 600; color: var(--ink-faint); }
.pricing-allowance { font-size: 13px; color: var(--ink-faint); margin-bottom: 18px; }
.pricing-card-featured { border-color: var(--blue); box-shadow: 0 18px 40px -20px rgba(47,95,224,0.35); }
.pricing-badge { position: absolute; top: -12px; left: 26px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.pricing-cta { text-align: center; margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px 22px; }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--blue); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ---------- Waitlist form ---------- */
.waitlist-form { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row-full { grid-column: 1 / -1; }
.form-row label { font-size: 13px; font-weight: 600; color: #c4cee6; }
.optional { color: #7887ab; font-weight: 400; }
.form-row input, .form-row select, .form-row textarea {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-dark); border-radius: 10px;
  padding: 12px 14px; color: #fff; font-family: var(--font-body); font-size: 14.5px; outline: none;
  transition: border-color .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--blue); }
.form-row select { color-scheme: dark; }
.form-row textarea { resize: vertical; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { font-size: 13.5px; color: #b7c2dd; }
.form-status.success { color: #6ee7a8; font-weight: 600; }
.form-status.error { color: #ff8c8c; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark); color: #b7c2dd; padding: 64px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; }
.footer-brand p { margin-top: 10px; font-size: 13.5px; color: #8a97ba; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-weight: 700; color: #fff; font-size: 13px; margin-bottom: 4px; }
.footer-col a { font-size: 13.5px; color: #b7c2dd; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-dark); font-size: 12.5px; color: #6d7ba0; }

/* ---------- Legal page ---------- */
.legal-page { padding: 80px 0 120px; }
.legal-page p { margin-top: 18px; color: var(--ink-soft); line-height: 1.7; }
.legal-page a { color: var(--blue); }
.legal-page h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-top: 44px; letter-spacing: -0.2px; }
.legal-page h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; margin-top: 28px; }
.legal-page ul { margin-top: 14px; padding-left: 22px; color: var(--ink-soft); line-height: 1.7; }
.legal-page li { margin-top: 8px; }
.legal-page code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.legal-draft-notice {
  margin-top: 28px; padding: 14px 18px; border-radius: var(--radius-md); background: #fff7e6;
  border: 1px solid #f3d999; color: #7a5400; font-size: 14px; line-height: 1.6;
}
.legal-draft-notice-bottom { margin-top: 56px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .mock-kiosk-orb, .mock-dot.pulse, .mock-typing span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu.open { display: flex; }
  .mobile-menu {
    flex-direction: column; gap: 4px; padding: 10px 28px 22px; background: #fff; border-top: 1px solid var(--border);
  }
  .mobile-menu a:not(.btn) { padding: 12px 0; font-weight: 600; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 14px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .hero-copy { order: 1; }
  .split, .split-reverse .split-copy, .split-reverse .split-visual { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-reverse .split-copy, .split-reverse .split-visual { order: initial; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .waitlist-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .section-inner { padding: 0 20px; }
  .command-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .command-arrow { display: none; }
  .channel-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 36px; }
}
