:root {
  --ink: #172033;
  --muted: #526071;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --mint: #a8ecd8;
  --mint-deep: #26a984;
  --coral: #ff8d7a;
  --coral-deep: #e8523f;
  --sky: #97d8ff;
  --sky-deep: #2578b7;
  --lemon: #ffe889;
  --lavender: #c8b9ff;
  --border: rgba(23, 32, 51, 0.14);
  --shadow: 0 24px 70px rgba(40, 52, 86, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7fbff;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(168, 236, 216, 0.7), transparent 28rem),
    radial-gradient(circle at 84% 8%, rgba(255, 232, 137, 0.64), transparent 25rem),
    linear-gradient(135deg, #f7fbff 0%, #fff8f1 52%, #f6f3ff 100%);
}

button {
  font: inherit;
}

a {
  color: inherit;
}

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

.blob,
.paper {
  position: absolute;
  display: block;
}

.blob {
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.blob-one {
  left: -5rem;
  top: 8rem;
  background: rgba(151, 216, 255, 0.54);
}

.blob-two {
  right: -4rem;
  top: 21rem;
  background: rgba(255, 141, 122, 0.4);
  animation-delay: -3s;
}

.blob-three {
  left: 52%;
  bottom: -8rem;
  background: rgba(200, 185, 255, 0.46);
  animation-delay: -6s;
}

.paper {
  width: 7.6rem;
  height: 9.6rem;
  border: 2px solid rgba(23, 32, 51, 0.13);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(23, 32, 51, 0.08) 0 0) 1rem 1.4rem / 4.6rem 0.35rem no-repeat,
    linear-gradient(rgba(23, 32, 51, 0.07) 0 0) 1rem 2.4rem / 5.2rem 0.35rem no-repeat,
    linear-gradient(rgba(23, 32, 51, 0.07) 0 0) 1rem 3.4rem / 3.8rem 0.35rem no-repeat,
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 42px rgba(40, 52, 86, 0.08);
  transform: rotate(-8deg);
  animation: drift 16s linear infinite;
}

.paper-one {
  left: 7%;
  top: 69%;
}

.paper-two {
  right: 9%;
  top: 11%;
  animation-delay: -7s;
}

.paper-three {
  left: 43%;
  top: 4%;
  animation-delay: -11s;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 26px;
}

.hero {
  min-height: calc(100vh - 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.78fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.hero-copy {
  padding: 20px 0;
}

.mini-line {
  width: fit-content;
  margin: 0 0 20px;
  color: #5c433e;
  font-size: 0.94rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(5.3rem, 17vw, 13.7rem);
  line-height: 0.76;
  letter-spacing: 0;
}

.count {
  color: #16a085;
  text-shadow: 0 14px 0 rgba(255, 232, 137, 0.82);
}

.unit {
  display: inline-block;
  margin-left: 0.16em;
  color: var(--ink);
  font-size: 0.42em;
  vertical-align: super;
}

.headline-label {
  display: block;
  margin-top: 0.22em;
  color: var(--coral-deep);
  font-family: Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 0.98;
}

.executive-message {
  max-width: 730px;
  margin: 34px 0 0;
  padding: clamp(20px, 3vw, 30px);
  border: 2px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  color: #253246;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 600;
  line-height: 1.58;
  backdrop-filter: blur(14px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
}

.primary-button {
  min-height: 58px;
  padding: 0 25px;
  border: 0;
  border-radius: 18px;
  background: var(--ink);
  color: white;
  box-shadow: 0 16px 30px rgba(23, 32, 51, 0.22);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #26324a;
  box-shadow: 0 20px 36px rgba(23, 32, 51, 0.26);
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.close-button:focus-visible,
.gmail-button:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 4px;
}

.callout {
  max-width: 380px;
  margin: 0;
  color: #1f6b58;
  font-size: clamp(1.08rem, 2vw, 1.44rem);
  font-weight: 900;
  line-height: 1.18;
}

.storage-panel {
  position: relative;
  min-height: 585px;
  padding: clamp(24px, 4vw, 36px);
  border: 2px solid var(--border);
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.storage-panel::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 128px;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 12%, transparent 13%),
    conic-gradient(from 210deg, var(--mint), var(--lemon), var(--coral), var(--sky), var(--mint));
  opacity: 0.84;
  animation: rotate 9s linear infinite;
}

.panel-topline,
.meter-labels,
.meter-values {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.panel-topline {
  position: relative;
  z-index: 1;
  align-items: center;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
}

.panel-topline strong {
  color: var(--ink);
  font-size: 1.36rem;
}

.storage-stack {
  position: relative;
  height: 238px;
  margin: 56px 0 22px;
}

.drive {
  position: absolute;
  left: 50%;
  width: min(340px, 86%);
  height: 84px;
  border: 2px solid rgba(23, 32, 51, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 50%, #ffffff 0 8px, transparent 9px),
    linear-gradient(90deg, #ffffff 0 18%, rgba(255, 255, 255, 0.58) 18% 100%),
    var(--sky);
  box-shadow: 0 22px 38px rgba(37, 120, 183, 0.14);
  transform: translateX(-50%);
}

.drive-one {
  top: 0;
  background-color: var(--sky);
  animation: bob 4.8s ease-in-out infinite;
}

.drive-two {
  top: 74px;
  background-color: var(--lemon);
  animation: bob 4.8s ease-in-out -1.4s infinite;
}

.drive-three {
  top: 148px;
  background-color: var(--lavender);
  animation: bob 4.8s ease-in-out -2.8s infinite;
}

.comparison {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 2px solid rgba(232, 82, 63, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.used-label {
  margin: 0;
  color: #4c5261;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.05;
}

.used-label strong {
  color: var(--coral-deep);
}

.paid-label {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
}

.meter-wrap {
  margin-top: 28px;
}

.meter-labels,
.meter-values {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meter {
  position: relative;
  height: 34px;
  margin: 11px 0;
  border: 2px solid rgba(23, 32, 51, 0.16);
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(23, 32, 51, 0.07) 0,
      rgba(23, 32, 51, 0.07) 1px,
      transparent 1px,
      transparent 10%
    ),
    rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 10.2%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-deep), var(--coral));
}

body.is-animating .meter-fill {
  transform: scaleX(0);
  transform-origin: left center;
  animation: fillMeter 1.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.meter-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 10.2%;
  width: 3px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(23, 32, 51, 0.08);
  opacity: 1;
}

body.is-animating .meter-marker {
  opacity: 0;
  animation: pop 550ms 1.85s ease forwards;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 6px 0 40px;
}

.summary-card {
  min-height: 185px;
  padding: 22px;
  border: 2px solid rgba(23, 32, 51, 0.14);
  border-radius: 26px;
  background: var(--paper-strong);
  box-shadow: 0 16px 36px rgba(40, 52, 86, 0.11);
  transform: translateY(24px);
  opacity: 0;
  animation: rise 700ms ease forwards;
}

.summary-card:nth-child(2) {
  animation-delay: 120ms;
}

.summary-card:nth-child(3) {
  animation-delay: 240ms;
}

.summary-card:nth-child(4) {
  animation-delay: 360ms;
}

.summary-card span {
  display: block;
  color: #3f4b5c;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card strong {
  display: block;
  margin-top: 20px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.summary-card p {
  margin: 18px 0 0;
  color: #485568;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.summary-card.coral {
  background: linear-gradient(160deg, #fff 0%, #ffe0da 100%);
}

.summary-card.mint {
  background: linear-gradient(160deg, #fff 0%, #d9faef 100%);
}

.summary-card.sky {
  background: linear-gradient(160deg, #fff 0%, #ddf3ff 100%);
}

.summary-card.lemon {
  background: linear-gradient(160deg, #fff 0%, #fff1a7 100%);
}

footer {
  position: relative;
  z-index: 1;
  padding: 0 20px 28px;
  color: rgba(23, 32, 51, 0.68);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 51, 0.38);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(500px, 100%);
  padding: 32px;
  border: 2px solid rgba(23, 32, 51, 0.16);
  border-radius: 28px;
  background: #fffdf8;
  box-shadow: 0 34px 90px rgba(23, 32, 51, 0.28);
  transform: translateY(16px) scale(0.96);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card h2 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  line-height: 1;
}

.modal-card p {
  margin: 18px 0 0;
  color: #3e4b5d;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.48;
}

.modal-card .authorization-copy {
  margin-top: 14px;
  color: #5b6576;
  font-size: 0.96rem;
}

.gmail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 24px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--coral-deep);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(232, 82, 63, 0.2);
  font-size: 0.98rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.gmail-button:hover {
  background: #d84231;
  box-shadow: 0 20px 36px rgba(232, 82, 63, 0.26);
  transform: translateY(-2px);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f0f5f8;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 900;
}

@keyframes fillMeter {
  to {
    transform: scaleX(1);
  }
}

@keyframes pop {
  to {
    opacity: 1;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(22px, -34px, 0) scale(1.06);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  50% {
    transform: translate3d(28px, -42px, 0) rotate(7deg);
  }
}

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

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .page-shell {
    width: min(100% - 28px, 720px);
    padding-top: 28px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .storage-panel {
    min-height: 520px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 24px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 440px);
  }

  .mini-line {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(4.55rem, 28vw, 7.5rem);
  }

  .headline-label {
    font-size: clamp(1.75rem, 12vw, 3.1rem);
  }

  .executive-message {
    margin-top: 24px;
    border-radius: 22px;
    font-size: 0.98rem;
  }

  .cta-row {
    align-items: stretch;
  }

  .primary-button {
    width: 100%;
  }

  .storage-panel {
    min-height: 0;
    border-radius: 26px;
  }

  .storage-panel::before {
    width: 82px;
  }

  .storage-stack {
    height: 205px;
    margin-top: 44px;
  }

  .drive {
    height: 74px;
    border-radius: 20px;
  }

  .drive-two {
    top: 64px;
  }

  .drive-three {
    top: 128px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .meter-fill {
    transform: scaleX(1);
  }

  .meter-marker {
    opacity: 1;
  }
}
