:root {
  --bg: #f0f8f7;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --text: #0d2b2b;
  --muted: #4a6b6b;
  --accent: #0ea5a5;
  --accent-2: #0d9488;
  --accent-3: #006b5c;
  --accent-gold: #06b6d4;
  --border: rgba(14, 165, 165, 0.15);
  --shadow: 0 18px 60px rgba(13, 43, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(80% 80% at 20% 15%, rgba(14, 165, 165, 0.12), transparent),
              radial-gradient(70% 70% at 80% 5%, rgba(13, 148, 136, 0.08), transparent),
              linear-gradient(135deg, #f0f8f7 0%, #e0f2f1 50%, #f5fafa 100%);
  background-size: 160% 160%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  animation: bg-shift 24s ease-in-out infinite;
}

@keyframes bg-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.rainbow {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 45deg, #0ea5a5, #06b6d4, #0d9488, #006b5c, #0ea5a5);
  filter: blur(220px);
  opacity: 0.12;
  mix-blend-mode: screen;
  animation: spin 50s linear infinite;
}

.cashflow {
  position: absolute;
  width: 520px;
  height: 200px;
  background: linear-gradient(135deg, rgba(14, 165, 165, 0.2), rgba(13, 148, 136, 0.16), rgba(6, 182, 212, 0.15));
  filter: blur(110px);
  opacity: 0.28;
  border-radius: 60% 40% 60% 40%;
  animation: float 16s ease-in-out infinite alternate;
}

.cashflow-a {
  top: 12%;
  right: -12%;
  transform: rotate(-8deg);
}

.cashflow-b {
  bottom: 8%;
  left: -10%;
  transform: rotate(12deg);
  animation-delay: 4s;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  from { transform: translateY(0) scale(1) rotate(8deg); }
  to { transform: translateY(-22px) scale(1.04) rotate(2deg); }
}

@keyframes coin-float {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-180px) rotate(720deg) scale(0.3); opacity: 0; }
}

@keyframes money-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes money-shine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2) drop-shadow(0 0 8px rgba(52, 199, 89, 0.4)); }
}

@keyframes flip-coin {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(720deg); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #f0f8f7;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 12px 25px rgba(14, 165, 165, 0.25);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav span {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 119, 63, 0.12);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 165, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
}

.pill strong {
  color: var(--accent);
  font-weight: 600;
}

main {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.headline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.type-label {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.2px;
}

.typewriter {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 10ch;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(10, 132, 255, 0.18);
  box-shadow: 0 12px 28px rgba(15, 27, 44, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

#typewriter-text {
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.05em;
  margin-left: 4px;
  background: var(--text);
  opacity: 0.8;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 0.8; }
  50.01%, 100% { opacity: 0.15; }
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero .badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(14, 165, 165, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 24px rgba(13, 43, 43, 0.06);
}

input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 165, 0.12), 0 12px 26px rgba(13, 43, 43, 0.08);
}

button {
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #f0f8f7;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 30px rgba(14, 165, 165, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(14, 165, 165, 0.3);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

button .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  animation: ripple 0.6s ease-out;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status {
  font-size: 14px;
  margin: 0;
}

.status.ok {
  color: var(--accent-2);
}

.status.error {
  color: #ff3b30;
}

.card {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(13, 43, 43, 0.12);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 80% 20%, rgba(10, 132, 255, 0.12), transparent);
  pointer-events: none;
}

.mockup {
  display: grid;
  gap: 12px;
}

.mockup h3 {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
}

.mockup .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 165, 0.12);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.mockup .row:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(14, 165, 165, 0.25);
  box-shadow: 0 4px 12px rgba(14, 165, 165, 0.08);
}

.mockup .row strong {
  color: var(--accent);
}

.section {
  margin-top: 70px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: 26px;
  letter-spacing: -0.4px;
}

.section p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 28px rgba(15, 27, 44, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.28);
}

.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 165, 0.12), rgba(13, 148, 136, 0.08));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(14, 165, 165, 0.2);
  font-size: 24px;
}

.feature h3 {
  margin: 0;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(10, 132, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.step .num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(10, 132, 255, 0.16);
  color: var(--accent);
  font-weight: 700;
}

.cta-banner {
  margin-top: 80px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(52, 199, 89, 0.12));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}

footer {
  margin-top: 60px;
  padding: 22px 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(10, 132, 255, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
  filter: saturate(0.96);
  transition: opacity 600ms ease, transform 650ms ease, filter 650ms ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

/* Money animation elements */
.money-container {
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.coin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #06b6d4, #0891b2);
  border: 1px solid rgba(6, 182, 212, 0.6);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35) inset;
  animation: coin-float 2.2s ease-in forwards;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.mockup .row strong {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Pulse effect on key financial amounts */
.amount-highlight {
  animation: money-shine 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .coin,
  .mockup .row strong,
  .amount-highlight,
  button .ripple {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  main {
    margin-top: 28px;
  }
  .cta-banner {
    grid-template-columns: 1fr;
  }
  .headline {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  .typewriter {
    width: 100%;
    max-width: 360px;
  }
}

.reduce-motion,
.reduce-motion .rainbow,
.reduce-motion .cashflow,
.reduce-motion body {
  animation: none !important;
}

.reduce-motion .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
