:root {
  --bg-dark: #0B141A;
  --surface: #111B21;
  --surface-card: #1F2C34;
  --surface-elevated: #202C33;
  --primary: #12B886;
  --primary-dark: #0E906C;
  --accent: #25D366;
  --outgoing-bubble: #005C4B;
  --incoming-bubble: #1F2C34;
  --text-main: #E9EDEF;
  --text-muted: #8696A0;
  --blue-tick: #53BDEB;
  --border: #22323C;
  --border-light: rgba(255, 255, 255, 0.08);
  --glow-primary: rgba(18, 184, 134, 0.2);
  --glow-accent: rgba(37, 211, 102, 0.15);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Background Atmosphere Gradients */
body::before {
  content: "";
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-primary) 0%, rgba(18, 184, 134, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon-img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  transform-origin: center center;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.4px;
  line-height: 1;
}

.brand-title .brand-accent {
  color: #12B886;
}

/* Slogan is hidden when logo is small since it's hard to read */
.brand-tagline {
  display: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #8696A0;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Show slogan only when logo is explicitly shown in large presentation */
.brand-large .brand-tagline,
.brand-with-slogan .brand-tagline {
  display: block;
}

.brand-link:hover .brand-icon-img,
.brand-group:hover img {
  animation: logoIconRing 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  filter: drop-shadow(0 0 14px rgba(37, 211, 102, 0.65));
}

@keyframes logoIconRing {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.14) rotate(-15deg); }
  30% { transform: scale(1.14) rotate(15deg); }
  45% { transform: scale(1.11) rotate(-10deg); }
  60% { transform: scale(1.08) rotate(10deg); }
  75% { transform: scale(1.05) rotate(-4deg); }
  85% { transform: scale(1.02) rotate(3deg); }
  100% { transform: scale(1.08) rotate(0deg); }
}

.brand-logo-img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #0B141A;
  box-shadow: 0 4px 18px rgba(18, 184, 134, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  color: #050B0E;
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(18, 184, 134, 0.05);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  transition: 0.3s;
}

/* Badge Tags */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: rgba(18, 184, 134, 0.12);
  color: var(--primary);
  border: 1px solid rgba(18, 184, 134, 0.28);
  margin-bottom: 20px;
}

.badge-pill.yid-tag {
  background: rgba(37, 211, 102, 0.14);
  color: var(--accent);
  border-color: rgba(37, 211, 102, 0.35);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* Hero Section */
.hero {
  padding: 60px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust-list {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Phone Mockup Frame */
.mockup-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.mockup-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.phone-device {
  width: 350px;
  height: 690px;
  background: #000000;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 3px #1a252c;
  position: relative;
  z-index: 1;
}

.phone-notch {
  width: 130px;
  height: 24px;
  background: #000000;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-speaker {
  width: 45px;
  height: 4px;
  background: #222;
  border-radius: 4px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* In-App Mockup Styles */
.app-status-bar {
  height: 38px;
  padding: 10px 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.app-header {
  background: var(--surface-card);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2A3942;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  border: 1px solid rgba(18, 184, 134, 0.3);
}

.chat-meta .chat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-meta .chat-sub {
  font-size: 11px;
  color: var(--primary);
}

.verified-icon {
  color: var(--primary);
}

/* Shabbos & Zmanim Card In App */
.zmanim-banner-widget {
  background: linear-gradient(135deg, rgba(31, 44, 52, 0.95), rgba(17, 27, 33, 0.98));
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.zmanim-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}

.zmanim-right {
  color: var(--text-muted);
}

/* Chat Messages */
.mockup-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(circle at center, rgba(17, 27, 33, 0.8), #0B141A);
}

.date-divider {
  align-self: center;
  background: rgba(31, 44, 52, 0.75);
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 4px 0;
}

.msg-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  position: relative;
}

.msg-incoming {
  align-self: flex-start;
  background: var(--incoming-bubble);
  color: var(--text-main);
  border-bottom-left-radius: 3px;
}

.msg-outgoing {
  align-self: flex-end;
  background: var(--outgoing-bubble);
  color: #FFFFFF;
  border-bottom-right-radius: 3px;
}

.msg-author {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.msg-time {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  float: right;
  margin-top: 4px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.tick-read {
  color: var(--blue-tick);
}

.sms-badge-inline {
  display: inline-block;
  background: #12B886;
  color: #0B141A;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
}

/* Chat Input Bar */
.mockup-input-bar {
  background: var(--surface-card);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-input-field {
  flex: 1;
  background: var(--surface-elevated);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.mockup-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B141A;
}

/* Mockup Demo Tabs */
.mockup-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.mockup-tab-btn {
  background: var(--surface-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.mockup-tab-btn.active, .mockup-tab-btn:hover {
  background: rgba(18, 184, 134, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

/* SECTION COMMONS */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 27, 33, 0.4) 0%, rgba(11, 20, 26, 0.8) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* COMPARISON MATRIX SECTION */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.comparison-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.comparison-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 184, 134, 0.4);
}

.comparison-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.comparison-badge.our-way {
  background: rgba(37, 211, 102, 0.15);
  color: var(--accent);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(18, 184, 134, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(18, 184, 134, 0.2);
}

.comparison-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.comparison-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.versus-split {
  background: rgba(31, 44, 52, 0.5);
  border-radius: var(--radius-sm);
  padding: 14px;
  border-left: 3px solid var(--primary);
  font-size: 13.5px;
}

.versus-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.versus-item:last-child {
  margin-bottom: 0;
}

.versus-item.negative {
  color: #F87171;
}

.versus-item.positive {
  color: #4ADE80;
  font-weight: 600;
}

/* FREE SMS SPOTLIGHT */
.sms-banner-card {
  background: linear-gradient(135deg, #111B21 0%, #1F2C34 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.sms-banner-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sms-flow-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step {
  background: rgba(11, 20, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.flow-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 184, 134, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-arrow {
  display: flex;
  justify-content: center;
  color: var(--primary);
}

/* API SHOWCASE SECTION */
.api-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.api-top-bar {
  background: var(--surface-card);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.api-tabs-list {
  display: flex;
  gap: 10px;
}

.api-tab-button {
  background: transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.api-tab-button.active, .api-tab-button:hover {
  background: var(--surface-elevated);
  color: var(--primary);
}

.code-container {
  padding: 24px;
  background: #0B141A;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
}

.code-snippet {
  display: none;
}

.code-snippet.active {
  display: block;
}

.code-keyword { color: #F472B6; }
.code-string { color: #34D399; }
.code-property { color: #60A5FA; }
.code-comment { color: #8696A0; font-style: italic; }

/* KOSHER & TIERED GROUPS SECTION */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.group-tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.group-tier-title {
  font-size: 20px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.group-tier-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tier-checkmarks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-main);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.tier-checkmarks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tier-checkmarks li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* HALACHA & SHABBOS BANNER */
.halacha-banner {
  background: linear-gradient(135deg, rgba(18, 184, 134, 0.08) 0%, rgba(31, 44, 52, 0.8) 100%);
  border: 1px solid rgba(18, 184, 134, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.halacha-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.halacha-text p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 680px;
  line-height: 1.6;
}

/* FAQ ACCORDION */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
}

.faq-arrow-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-arrow-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* CALL TO ACTION FOOTER BANNER */
.cta-banner {
  text-align: center;
  background: radial-gradient(circle at center, rgba(18, 184, 134, 0.15) 0%, var(--surface) 80%);
  border: 1px solid rgba(18, 184, 134, 0.3);
  border-radius: var(--radius-lg);
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 32px;
}

/* SITE FOOTER */
.site-footer {
  background: #070D11;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}



/* ==========================================================================
   FUN ANIMATIONS, FLOATING ELEMENTS, LOADING & HOVER EFFECTS
   ========================================================================== */

/* Ambient Particle Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  overflow: hidden;
}

/* Floating Badges around Mockup */
.floating-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(17, 27, 33, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-radius: var(--radius-full);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 20px rgba(18, 184, 134, 0.3);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  z-index: 20;
  pointer-events: auto;
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}

.floating-pill:hover {
  transform: scale(1.1) translateY(-6px) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 32px rgba(37, 211, 102, 0.55);
  border-color: var(--accent);
}

.pill-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.float-pill-1 {
  top: 14%;
  left: -52px;
  animation: floatBob1 4.8s ease-in-out infinite;
}

.float-pill-2 {
  bottom: 18%;
  right: -58px;
  animation: floatBob2 5.4s ease-in-out infinite;
}

.float-pill-3 {
  top: 60%;
  left: -68px;
  animation: floatBob3 6.2s ease-in-out infinite;
}

@keyframes floatBob1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-1.5deg); }
}

@keyframes floatBob2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

@keyframes floatBob3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-13px) rotate(-2deg); }
}

/* 3D Tilt & Mouse Effects */
.mockup-container {
  perspective: 1200px;
}

.phone-device {
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.phone-device:hover {
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(18, 184, 134, 0.35);
}

/* Interactive Mockup Input */
.mockup-input-bar input.mockup-input-field {
  flex: 1;
  background: var(--surface-elevated);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  color: #FFFFFF;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}

.mockup-input-bar input.mockup-input-field:focus {
  border-color: var(--primary);
  background: #192329;
}

.mockup-input-bar input.mockup-input-field::placeholder {
  color: var(--text-muted);
}

.mockup-send-btn {
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s;
}

.mockup-send-btn:hover {
  transform: scale(1.1);
  background: var(--accent);
}

.mockup-send-btn:active {
  transform: scale(0.95);
}

/* Interactive Reaction Pops on Click */
.msg-bubble {
  cursor: pointer;
  transition: transform 0.15s ease;
}

.msg-bubble:hover {
  transform: scale(1.02);
}

.reaction-burst {
  position: absolute;
  pointer-events: none;
  font-size: 20px;
  animation: burstUp 0.8s forwards ease-out;
  z-index: 50;
}

@keyframes burstUp {
  0% { transform: scale(0.5) translateY(0); opacity: 1; }
  60% { transform: scale(1.3) translateY(-30px); opacity: 1; }
  100% { transform: scale(1) translateY(-50px); opacity: 0; }
}

/* Stats Counter Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(17, 27, 33, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-top: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Card Glow on Mouse Hover */
.comparison-card, .group-tier-card, .sms-banner-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
}

.comparison-card:hover, .group-tier-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(18, 184, 134, 0.25);
  border-color: rgba(37, 211, 102, 0.5);
}

/* Scroll-Triggered Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Copy Button for API */
.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.copy-code-btn:hover {
  background: var(--surface-elevated);
  color: var(--primary);
  border-color: var(--primary);
}

.copy-code-btn.copied {
  background: rgba(37, 211, 102, 0.2);
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET, MOBILE, COMPACT SCREENS)
   ========================================================================== */

/* Tablets & Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group, .hero-trust-list {
    justify-content: center;
  }
  .groups-grid {
    grid-template-columns: 1fr;
  }
  .sms-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sms-features-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .floating-pill {
    display: none !important; /* Conceal floating pills to prevent edge overflow */
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero {
    padding: 100px 0 60px;
  }
  .hero-title {
    font-size: 34px;
    line-height: 1.15;
  }
  .hero-desc {
    font-size: 15px;
  }
  .phone-device {
    width: min(320px, 92vw);
    height: auto;
    min-height: 560px;
  }
  .mockup-container {
    max-width: 100%;
    overflow: hidden;
  }
  .stats-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px 16px;
  }
  .stat-number {
    font-size: 32px;
  }
  .stat-label {
    font-size: 12px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .sms-flow-visual {
    flex-direction: column;
    gap: 16px;
  }
  .flow-arrow svg {
    transform: rotate(90deg);
  }
  .halacha-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 30px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .api-doc-grid {
    grid-template-columns: 1fr;
  }
  .api-sidebar {
    position: static;
    margin-bottom: 24px;
  }
  pre, code {
    max-width: 100%;
    overflow-x: auto;
  }
  table.api-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Compact Smartphones (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  .brand-tagline {
    display: none; /* Hide subtitle on tiny screens so header fits comfortably */
  }
  .nav-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-list {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .stats-ribbon {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==========================================================================
   iOS Installation Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 20, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #111B21;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #8696A0;
  font-size: 24px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-icon-badge {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: #8696A0;
}

.ios-install-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  margin-bottom: 10px;
}

.ios-install-step h4 {
  font-size: 15px;
  font-weight: 700;
  color: #E9EDEF;
  margin-bottom: 6px;
}

.ios-install-step p {
  font-size: 13px;
  color: #8696A0;
  line-height: 1.5;
  margin-bottom: 10px;
}

.ios-steps-list {
  padding-left: 20px;
  font-size: 13px;
  color: #D1D7DB;
  line-height: 1.6;
  margin-bottom: 12px;
}

.ios-steps-list li {
  margin-bottom: 5px;
}

.ios-icon-hint {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
}

