/* ===== Variables ===== */
:root {
  --primary: #0891B2;
  --primary-light: #22D3EE;
  --primary-dark: #0E7490;
  --accent: #F97316;
  --accent-light: #FDBA74;
  --accent-dark: #EA580C;
  --success: #22C55E;
  --warning: #EAB308;
  --dark: #0F172A;
  --dark-card: #1E293B;
  --cyan-bg: #ECFEFF;
  --text: #1E293B;
  --text-light: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #334155;
}

/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Quicksand', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 36px; border-radius: 50px; font-weight: 700;
  font-family: 'Quicksand', sans-serif; font-size: 1.05rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: none;
}
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 20px rgba(8,145,178,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(8,145,178,0.4);
}
.btn-white {
  background: white; color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Phone Mockup (Hero) ===== */
.phone {
  width: 260px; height: 460px;
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.12);
  border-radius: 36px; backdrop-filter: blur(16px);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.phone-notch {
  width: 100px; height: 24px; background: var(--dark);
  border-radius: 0 0 16px 16px; margin: 0 auto; position: relative; z-index: 5;
}
.noise-track {
  position: absolute; top: 30px; left: 0; right: 0; bottom: 140px;
  overflow: hidden; mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 70%, transparent 100%);
}
.noise-scroll {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 16px;
  animation: scrollNoise 8s linear infinite;
}
.noise-msg {
  padding: 10px 14px; border-radius: 12px;
  background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.12);
  color: rgba(255,255,255,0.3); font-size: 0.72rem; line-height: 1.4;
  text-decoration: line-through; position: relative;
}
.noise-msg::after {
  content: ''; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(249,115,22,0.2);
}
@keyframes scrollNoise {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.digest-card {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px; padding: 16px; color: white; z-index: 10;
  box-shadow: 0 8px 24px rgba(8,145,178,0.4);
  animation: pulseDigest 3s ease-in-out infinite;
}
@keyframes pulseDigest {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(8,145,178,0.4); }
  50% { transform: scale(1.02); box-shadow: 0 12px 32px rgba(8,145,178,0.5); }
}
.digest-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 6px; animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ===== Screen Showcase ===== */
.showcase { display: grid; grid-template-columns: 1fr; gap: 48px; justify-items: center; }
.showcase-item { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 320px; }
.screen-frame {
  width: 240px; height: 420px; border-radius: 28px;
  background: #FFFFFF; border: 2px solid rgba(30,41,59,0.15);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 8px 20px rgba(8,145,178,0.1);
  position: relative;
}
.screen-header {
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  padding: 12px 16px; border-bottom: 1px solid #E2E8F0;
  font-family: 'Quicksand', sans-serif; font-weight: 700;
  font-size: 0.8rem; color: var(--text);
}
.screen-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: #F8FFFE; }
.screen-card {
  background: white; border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(8,145,178,0.06); font-size: 0.65rem;
  line-height: 1.5; color: var(--text);
}
.screen-tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: 0.55rem; font-weight: 700;
}
.screen-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: white; border-top: 1px solid #E2E8F0;
  display: flex; justify-content: space-around; padding: 8px 4px;
}
.screen-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 0.5rem; color: var(--text-muted);
}
.screen-nav-item.active { color: var(--primary); }
.showcase-caption { text-align: center; max-width: 260px; }
.showcase-caption h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.showcase-caption p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.screen-dedup { background: #F8FAFC; border-radius: 8px; padding: 6px 8px; margin-top: 4px; border: 1px solid #E2E8F0; }
.screen-dedup-item { display: flex; align-items: center; gap: 4px; font-size: 0.5rem; color: var(--text-muted); padding: 2px 0; }
.screen-dedup-item span:first-child { color: var(--primary); font-weight: 600; font-size: 0.48rem; flex-shrink: 0; }
.screen-slider { height: 5px; border-radius: 3px; position: relative; }
.screen-slider-thumb { width: 11px; height: 11px; border-radius: 50%; background: white; border: 2px solid var(--primary); position: absolute; top: -3px; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.screen-catbars { display: flex; gap: 3px; align-items: flex-end; height: 24px; }
.screen-catbar { border-radius: 2px 2px 0 0; min-width: 16px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.screen-catbar span { font-size: 0.4rem; font-weight: 700; margin-bottom: 1px; }

/* ===== Showcase Responsive ===== */
@media (min-width: 768px) {
  .showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .showcase { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Bento Grid ===== */
.bento { display: grid; gap: 20px; }
.bento-card {
  border-radius: 20px; padding: 32px;
  transition: transform 0.25s ease;
}
.bento-card:hover { transform: translateY(-4px); }

@media (min-width: 768px) and (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; }
  .bento-wide { grid-column: span 2; }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .hero-grid { flex-direction: column !important; text-align: center; }
  .phone { display: none; }
  .steps-row { flex-direction: column !important; gap: 24px !important; }
  .steps-row .step-line { display: none; }
  .pricing-grid { flex-direction: column !important; align-items: center !important; }
  .pricing-grid > div { width: 100% !important; max-width: 400px !important; }
  .reviews-grid { flex-direction: column !important; align-items: center !important; }
  .reviews-grid > div { max-width: 400px !important; }
  .bento-card { padding: 24px; }
  h1 { font-size: 2.2rem !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .pricing-grid { flex-wrap: wrap !important; justify-content: center !important; }
  .pricing-grid > div { min-width: 280px !important; flex: 0 1 300px !important; }
  .reviews-grid { flex-wrap: wrap !important; justify-content: center !important; }
  .bento-card { padding: 24px; }
}
