/* Theme tokens mirror lib/res/color.dart (AppColors) + chat shell */
/* Typography matches lib/main.dart ThemeData: GoogleFonts.aBeeZeeTextTheme */

:root {
  /* Light marketing page */
  --page-bg: #ffffff;
  --page-elevated: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;

  /* brand */
  --brand: #26bbfc;
  --brand-600: #1fa3d9;
  --brand-2: #01b1c9;
  --mint: #00ffa3;
  --light-green: #3cf2a4;

  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --font: "ABeeZee", system-ui, -apple-system, sans-serif;
  --font-display: "ABeeZee", var(--font);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--page-bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-strong);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--brand);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(38, 187, 252, 0.2);
  border: 1px solid rgba(38, 187, 252, 0.3);
}

.logo-text {
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  background: var(--page-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-inner.is-open .nav-links,
  .nav-inner.is-open .nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border-strong);
    margin-top: 0.75rem;
  }

  .nav-inner.is-open {
    flex-wrap: wrap;
  }
}

/* Buttons — flat, rectangular (no pill / gradient) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.375rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #26bbfc;
  color: #ffffff;
  border-color: #26bbfc;
  box-shadow: 0 1px 3px rgba(38, 187, 252, 0.25);
}

.btn-primary:hover {
  background: #1fa3d9;
  border-color: #1fa3d9;
  color: #ffffff;
}

.btn-ghost {
  background: #ffffff;
  color: #334155;
  border-color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: #26bbfc;
  color: #0f172a;
}

/* Hero */
.hero-wrap {
  position: relative;
  background: #ffffff;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-inner {
  max-width: min(52rem, 100%);
  margin: 0 auto;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.hero-brand__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 28px rgba(38, 187, 252, 0.22);
  border: 1px solid rgba(38, 187, 252, 0.35);
}

.hero-brand__mark {
  max-height: 56px;
  width: auto;
  max-width: min(260px, 60vw);
  object-fit: contain;
  object-position: center;
}

@media (max-width: 768px) {
  .hero-brand {
    display: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0f172a;
  background: linear-gradient(90deg, var(--mint), var(--light-green), var(--brand));
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 255, 163, 0.22);
  text-align: center;
  line-height: 1.35;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #0f172a 0%, #1e3a5f 35%, var(--brand) 70%, #01b1c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  margin: 0 auto 1.85rem;
  max-width: 100%;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
  justify-content: center;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  max-width: 100%;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-note strong {
  color: #0891b2;
}

/* Download strip */
.download-strip {
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
  background: #ffffff;
  color: var(--text);
}

.download-strip h2 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.download-strip > p {
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: min(48rem, 100%);
  font-size: 1.05rem;
  line-height: 1.65;
}

.download-strip__code {
  background: rgba(15, 23, 42, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.25rem;
  padding: 0.5rem 1.125rem;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.store-btn:hover {
  border-color: #26bbfc;
  box-shadow: 0 4px 16px rgba(38, 187, 252, 0.12);
  text-decoration: none;
  color: #0f172a;
}

.store-btn__glyph {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.store-btn__glyph--apple {
  color: #0f172a;
}

.store-btn__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.store-btn__hint {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.store-btn__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .store-btn {
    flex: 1 1 100%;
    justify-content: center;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .store-btn__copy {
    align-items: center;
    text-align: center;
  }
}

/* Footer */
.site-footer {
  padding: 3.25rem 1.5rem;
  border-top: 1px solid var(--border-strong);
  background: var(--page-bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.85rem 0 0;
  max-width: 28rem;
  line-height: 1.55;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #0891b2;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-strong);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
