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

:root {
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-soft: #eef2f8;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.08);
  --accent: #0e7490;
  --accent-strong: #155e75;
  --accent-soft: rgba(14, 116, 144, 0.1);
  --magenta: #a21caf;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(192, 38, 211, 0.1), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 40%, #eef2f7 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

img.brand-lockup {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

img.brand-lockup-footer {
  width: 80px;
  height: 80px;
  max-width: 80px;
  max-height: 80px;
}

img.company-hero-logo {
  width: 200px;
  height: 200px;
  max-width: min(200px, 70vw);
  max-height: 200px;
  margin-inline: auto;
  object-fit: contain;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(16, 24, 40, 0.05);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hub homepage */
.hub-hero {
  padding: 4.5rem 0 2rem;
  text-align: center;
}

.hub-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hub-hero p {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.125rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2rem 0 5rem;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  min-height: 100%;
}

a.app-card {
  color: inherit;
}

a.app-card:hover,
a.app-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 116, 144, 0.25);
}

a.app-card:hover .app-card-icon,
a.app-card:focus-visible .app-card-icon {
  transform: scale(1.05);
}

a.app-card:hover .app-card-cta svg,
a.app-card:focus-visible .app-card-cta svg {
  transform: translateX(4px);
}

a.app-card:active {
  transform: translateY(-2px);
}

.app-card.is-coming-soon {
  opacity: 0.86;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  cursor: default;
}

.app-card-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease);
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-card-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(16, 24, 40, 0.06);
  color: var(--ink-soft);
}

.app-card-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.app-card-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 28rem;
}

.app-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.app-card-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

/* Product page */
.product-hero {
  padding: 3.5rem 0 2.5rem;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.product-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-kicker {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.product-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.product-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head-wide {
  max-width: 44rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--muted);
}

.section-head strong {
  color: var(--ink-soft);
  font-weight: 700;
}

/* Powerful Alert Rules */
.rules-section {
  position: relative;
  padding-top: 1.5rem;
}

.rules-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 116, 144, 0.35), rgba(162, 28, 175, 0.25), transparent);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rule-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  min-height: 11.5rem;
}

.rule-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--rule-accent, var(--accent));
  opacity: 0.9;
}

.rule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--rule-accent, var(--accent)) 35%, var(--line));
}

.rule-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--rule-soft, var(--accent-soft));
  color: var(--rule-accent, var(--accent-strong));
  margin-bottom: 1rem;
}

.rule-icon svg {
  width: 22px;
  height: 22px;
}

.rule-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.rule-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.rule-above { --rule-accent: #059669; --rule-soft: rgba(5, 150, 105, 0.12); }
.rule-below { --rule-accent: #dc2626; --rule-soft: rgba(220, 38, 38, 0.12); }
.rule-up { --rule-accent: #7c3aed; --rule-soft: rgba(124, 58, 237, 0.12); }
.rule-down { --rule-accent: #c026d3; --rule-soft: rgba(192, 38, 211, 0.12); }
.rule-any { --rule-accent: #d97706; --rule-soft: rgba(217, 119, 6, 0.14); }
.rule-breaking { --rule-accent: #ea580c; --rule-soft: rgba(234, 88, 12, 0.12); }
.rule-scheduled { --rule-accent: #2563eb; --rule-soft: rgba(37, 99, 235, 0.12); }
.rule-monitor { --rule-accent: #0e7490; --rule-soft: rgba(14, 116, 144, 0.12); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.85rem 0 0.4rem;
  letter-spacing: -0.02em;
}

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

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.category-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.category-dot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.category-card span {
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.cat-football { background: #dcfce7; }
.cat-news { background: #e2e8f0; }
.cat-crypto { background: #ede9fe; }
.cat-gold { background: #fef3c7; }
.cat-silver { background: #e2e8f0; }
.cat-currency { background: #dbeafe; }
.cat-oil { background: #ffedd5; }
.cat-weather { background: #e0f2fe; }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: end;
}

.device-frame {
  background: #0b1220;
  border-radius: 28px;
  padding: 0.55rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-frame img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

.download {
  text-align: center;
  padding: 4rem 0 5rem;
}

.download h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.download p {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

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

.store-badges a {
  display: inline-flex;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.store-badges a:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badges img {
  height: 52px;
  width: auto;
}

.store-badges .badge-apple {
  height: 40px;
}

/* Legal */
.legal-wrap {
  padding: 2.5rem 0 4.5rem;
}

.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal-page .updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 650;
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-page a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand .brand-name {
  margin-bottom: 0.35rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 24rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: flex-end;
}

.footer-links a {
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.reveal-delay { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

@media (max-width: 900px) {
  .app-grid,
  .feature-grid,
  .category-grid,
  .rules-grid,
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .product-lead {
    margin-inline: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(var(--header-h) + 0.5rem);
    right: 1.25rem;
    left: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .hub-hero {
    padding-top: 3rem;
  }

  .app-grid,
  .feature-grid,
  .category-grid,
  .rules-grid,
  .shots {
    grid-template-columns: 1fr;
  }

  .shots .device-frame:nth-child(2),
  .shots .device-frame:nth-child(3) {
    display: none;
  }

  .store-badges img {
    height: 44px;
  }

  .store-badges .badge-apple {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* Homepage only: light company chrome (beats .page-hub dark header even if hub.css is cached). */
body.page-hub.page-company {
  color: #0f172a;
  background: #f8fafc;
  background-image:
    radial-gradient(900px 420px at 12% -8%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(720px 380px at 92% 6%, rgba(234, 88, 12, 0.1), transparent 58%),
    radial-gradient(640px 360px at 70% 18%, rgba(13, 148, 136, 0.1), transparent 55%);
}

body.page-hub.page-company .site-header.hub-header {
  background: rgba(248, 250, 252, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.page-hub.page-company .nav a {
  color: #475569;
}

body.page-hub.page-company .nav a:hover,
body.page-hub.page-company .nav a[aria-current="page"] {
  color: #0f172a;
  background: rgba(37, 99, 235, 0.08);
}

body.page-hub.page-company .nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #2563eb;
}

body.page-hub.page-company .nav-toggle {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
}

body.page-hub.page-company .nav-toggle span {
  background: #0f172a;
}

body.page-hub.page-company .hub-footer {
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 880px) {
  body.page-hub.page-company .nav {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  }
}
