/* TellZee landing — theme aligned with mobile-app AppTheme */
:root {
  --bg: #0d1726;
  --surface: #1a2433;
  --accent: #23c2af;
  --on-accent: #0d1726;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --green: #10b981;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

main {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
}

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

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 23, 38, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 194, 175, 0.12);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 110px;
  width: auto;
  max-width: min(120px, 32vw);
}

.brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

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

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: var(--surface);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(35, 194, 175, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: visible;
  padding: 0 20px 64px;
  text-align: center;
}

.hero-banner {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(35, 194, 175, 0.12);
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: min(62vh, 560px);
  min-height: 200px;
  overflow: hidden;
  background: var(--surface);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .hero-slider {
    aspect-ratio: 16 / 10;
    max-height: min(48vh, 420px);
    min-height: 180px;
  }
}

.hero-text-sheet {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  padding: clamp(28px, 5vw, 48px) 20px 0;
}

.hero-text-sheet::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: -24px;
  background: radial-gradient(ellipse 95% 70% at 50% 0%, rgba(35, 194, 175, 0.16), transparent 58%),
    radial-gradient(ellipse 75% 55% at 88% 38%, rgba(99, 102, 241, 0.12), transparent 55%);
  background-repeat: no-repeat;
  transform-origin: 50% 0%;
  animation: hero-text-glow-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes hero-text-glow-drift {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1.02);
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text-sheet::before {
    animation: none;
    transform: none;
  }
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero .tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.hero .sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(35, 194, 175, 0.35);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Feature strip */
.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(35, 194, 175, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: left;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--accent);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* App screenshot showcase */
.showcase {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.showcase-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 24px);
  align-items: end;
  justify-items: center;
  width: 100%;
}

.phone-frame {
  margin: 0;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: #0E1726;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (max-width: 900px) {
  .showcase-screens {
    grid-template-columns: 1fr;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }
}

.showcase-copy {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.showcase-copy h2 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}

.showcase-copy p {
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 48px 20px 32px;
  border-top: 1px solid rgba(35, 194, 175, 0.1);
  background: rgba(26, 36, 51, 0.5);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

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

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

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.store-badges a {
  display: inline-block;
  opacity: 0.95;
  transition: opacity 0.2s;
}

.store-badges a:hover {
  opacity: 1;
}

.store-badges img {
  height: 48px;
  width: auto;
  vertical-align: middle;
}

.footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
}

/* Legal / article pages */
.prose-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.prose {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(35, 194, 175, 0.1);
  padding: 28px 24px 36px;
}

.prose h1 {
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.prose .effective {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.prose h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--accent);
}

.prose h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
  color: var(--text-muted);
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose ol li {
  margin-bottom: 0.35rem;
}

.prose a {
  word-break: break-word;
}

.page-title {
  margin: 0 0 24px;
  font-size: 1.75rem;
}

/* Page entrance — hero on load, rest on scroll (see js/reveal.js) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes enter-rise {
    from {
      opacity: 0;
      transform: translate3d(0, 1.25rem, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  .hero .hero-banner {
    animation: enter-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.06s;
  }

  .hero .hero-text-sheet {
    animation: enter-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.16s;
  }

  .reveal {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
    transition:
      opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
  }

  .reveal.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .features .feature-card:nth-child(1) {
    --reveal-delay: 0.04s;
  }

  .features .feature-card:nth-child(2) {
    --reveal-delay: 0.12s;
  }

  .features .feature-card:nth-child(3) {
    --reveal-delay: 0.2s;
  }

  .showcase-screens .phone-frame:nth-child(1) {
    --reveal-delay: 0s;
  }

  .showcase-screens .phone-frame:nth-child(2) {
    --reveal-delay: 0.08s;
  }

  .showcase-screens .phone-frame:nth-child(3) {
    --reveal-delay: 0.16s;
  }

  .showcase-copy.reveal {
    --reveal-delay: 0.12s;
  }

  #download.reveal {
    --reveal-delay: 0.06s;
  }

  .site-footer .footer-inner.reveal {
    --reveal-delay: 0.08s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-banner,
  .hero .hero-text-sheet {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
