@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
  --primary: #0d87cc;
  --primary-hover: #0b76b3;
  --primary-soft: #e6f4fb;
  --success: #22c55e;
  --bg: #08172c;
  --bg-alt: #0c1d35;
  --surface: rgba(18, 36, 60, 0.84);
  --surface-strong: #11243d;
  --border: rgba(140, 177, 211, 0.28);
  --text: #f4f8ff;
  --text-muted: #a7bdd8;
  --shadow: 0 14px 36px rgba(2, 7, 17, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(13, 135, 204, 0.34), transparent 36%),
    radial-gradient(circle at 88% 84%, rgba(34, 197, 94, 0.14), transparent 38%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
  font-family: 'Manrope', sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(1080px, calc(100% - 2.25rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.6rem;
  top: -3rem;
  z-index: 30;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  transition: top 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(136, 170, 200, 0.2);
  background: rgba(7, 19, 38, 0.7);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  border-radius: 0.5rem;
  box-shadow: 0 8px 18px rgba(13, 135, 204, 0.28);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.brand:hover img,
.brand:focus-visible img {
  transform: translateY(-2px) rotate(-4deg) scale(1.04);
  box-shadow: 0 12px 24px rgba(13, 135, 204, 0.4);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(137, 176, 211, 0.36);
  background: rgba(12, 35, 57, 0.65);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  min-width: 2.15rem;
  height: 1.9rem;
  padding: 0 0.6rem;
  background: transparent;
  color: #a9c5df;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: #e8f4ff;
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(197, 232, 255, 0.9);
  outline-offset: 1px;
}

.lang-btn.is-active {
  background: rgba(13, 135, 204, 0.28);
  color: #f2f9ff;
}

.material-symbols-rounded {
  font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.12rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  border-color: rgba(159, 197, 229, 0.38);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(159, 197, 229, 0.56);
  background: rgba(98, 145, 185, 0.14);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(137, 176, 211, 0.35);
  background: rgba(18, 44, 67, 0.34);
}

.hero {
  position: relative;
  padding: 4.4rem 0 3rem;
  overflow: clip;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(16px);
}

.hero-glow-a {
  width: 380px;
  height: 380px;
  top: -170px;
  right: -120px;
  background: radial-gradient(circle, rgba(13, 135, 204, 0.28), transparent 70%);
}

.hero-glow-b {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2.1rem;
  align-items: start;
}

.kicker {
  margin: 0;
  color: var(--primary-soft);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0.8rem 0 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  max-width: 14ch;
}

.lead {
  margin: 1rem 0 0;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.hero-points {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: #d9e8f8;
  font-size: 0.95rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.25rem;
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.44rem;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #64c4f0);
  box-shadow: 0 0 0 4px rgba(13, 135, 204, 0.17);
}

.hero-panel {
  display: grid;
  gap: 0.82rem;
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(20, 40, 66, 0.86), rgba(17, 34, 56, 0.86));
  box-shadow: var(--shadow);
}

.panel-card,
.feature-card,
.step-card,
.store-badge,
.legal-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --card-glow: rgba(13, 135, 204, 0.22);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.panel-card::before,
.feature-card::before,
.step-card::before,
.store-badge::before,
.legal-card::before {
  content: '';
  position: absolute;
  inset: -45% -20%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at top, var(--card-glow), transparent 58%);
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.panel-card::after,
.feature-card::after,
.step-card::after,
.store-badge::after,
.legal-card::after {
  content: '';
  position: absolute;
  top: -140%;
  left: -30%;
  width: 40%;
  height: 320%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 34%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0.08) 66%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-140%) rotate(18deg);
}

.panel-card > *,
.feature-card > *,
.step-card > *,
.store-badge > *,
.legal-card > * {
  position: relative;
  z-index: 1;
}

.panel-card:hover,
.panel-card:focus-within,
.feature-card:hover,
.feature-card:focus-within,
.step-card:hover,
.step-card:focus-within,
.store-badge:hover,
.store-badge:focus-within,
.legal-card:hover,
.legal-card:focus-within {
  transform: translateY(-3px) scale(1.005);
  border-color: rgba(171, 208, 235, 0.55);
  box-shadow:
    0 22px 44px rgba(2, 7, 17, 0.58),
    0 0 0 1px rgba(116, 194, 240, 0.28),
    0 0 24px rgba(13, 135, 204, 0.25);
}

.panel-card:hover::before,
.panel-card:focus-within::before,
.feature-card:hover::before,
.feature-card:focus-within::before,
.step-card:hover::before,
.step-card:focus-within::before,
.store-badge:hover::before,
.store-badge:focus-within::before,
.legal-card:hover::before,
.legal-card:focus-within::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.panel-card:hover::after,
.panel-card:focus-within::after,
.feature-card:hover::after,
.feature-card:focus-within::after,
.step-card:hover::after,
.step-card:focus-within::after,
.store-badge:hover::after,
.store-badge:focus-within::after,
.legal-card:hover::after,
.legal-card:focus-within::after {
  opacity: 0.9;
  animation: card-sheen 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-card:active,
.feature-card:active,
.step-card:active,
.store-badge:active,
.legal-card:active {
  transform: translateY(0);
}

.panel-card-accent {
  border-color: rgba(34, 197, 94, 0.34);
  --card-glow: rgba(34, 197, 94, 0.24);
}

.feature-card,
.step-card,
.legal-card,
.store-badge {
  --card-glow: rgba(13, 135, 204, 0.2);
}

.panel-title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-value {
  margin: 0.45rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.panel-meta {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.weight-chart-preview {
  margin-top: 0.72rem;
  width: 100%;
  height: auto;
  border-radius: 0.72rem;
  border: 1px solid rgba(144, 185, 214, 0.22);
  background: rgba(6, 18, 32, 0.5);
}

.weight-chart-interactive {
  overflow: hidden;
}

.weight-chart-interactive svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-axis-text {
  fill: #95b4cf;
  font-size: 10px;
  font-weight: 600;
}

.chart-point {
  cursor: pointer;
}

.chart-point,
.chart-point * {
  pointer-events: all;
}

.chart-point:focus {
  outline: none;
}

.dot-hit {
  fill: rgba(255, 255, 255, 0.001);
  stroke: none;
}

.dot-core {
  fill: #0fa0e6;
  stroke: #d5eeff;
  stroke-width: 1.2;
  transition:
    fill 160ms ease,
    stroke-width 160ms ease;
}

.chart-point:hover .dot-core,
.chart-point:focus .dot-core,
.chart-point.is-active .dot-core {
  fill: #67cdf7;
  stroke-width: 1.5;
}

.chart-tooltip {
  pointer-events: none;
}

.chart-tooltip-bg {
  fill: rgba(10, 23, 43, 0.92);
  stroke: #2e5678;
}

.chart-tooltip-value {
  fill: #f2f8ff;
  font-size: 12px;
  font-weight: 800;
}

.chart-tooltip-date {
  fill: #afc7de;
  font-size: 10px;
  font-weight: 600;
}

.reminder-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.reminder-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.reminder-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
}

.reminder-dot-primary {
  background: #58c1f0;
}

.reminder-dot-success {
  background: #22c55e;
}

.reminder-dot-warning {
  background: #f59e0b;
}

.reminder-copy {
  display: grid;
  gap: 0.1rem;
}

.reminder-copy strong {
  font-size: 0.84rem;
  font-weight: 700;
}

.reminder-copy small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.reminder-tag {
  border: 1px solid rgba(165, 198, 226, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  color: #dcecff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section {
  padding: 3.4rem 0;
}

.section h2 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.2;
}

.section-intro {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
  max-width: 66ch;
  line-height: 1.68;
}

.app-preview {
  padding-top: 2.5rem;
}

.phone-showcase {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.phone-card {
  margin: 0;
  display: grid;
  gap: 0.72rem;
  justify-items: center;
}

.phone-shell {
  position: relative;
  width: min(100%, 240px);
  border-radius: 2.2rem;
  padding: 0.58rem;
  background: linear-gradient(160deg, #1f334f, #0c1526);
  border: 1px solid rgba(183, 210, 231, 0.35);
  box-shadow:
    0 20px 40px rgba(2, 7, 17, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease;
}

.phone-shell::before {
  content: '';
  position: absolute;
  top: 12%;
  right: -2px;
  width: 2px;
  height: 13%;
  border-radius: 2px;
  background: rgba(194, 217, 236, 0.58);
}

.phone-shell::after {
  content: '';
  position: absolute;
  top: 27%;
  right: -2px;
  width: 2px;
  height: 10%;
  border-radius: 2px;
  background: rgba(194, 217, 236, 0.5);
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 0.62rem;
  width: 34%;
  height: 1.25rem;
  border-radius: 0 0 1rem 1rem;
  transform: translateX(-50%);
  background: #050d1b;
  z-index: 3;
}

.phone-screen {
  position: relative;
  border-radius: 1.78rem;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  border: 1px solid rgba(162, 196, 225, 0.24);
  background: #071933;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-card figcaption {
  color: #d7e8f8;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.phone-card:hover .phone-shell,
.phone-card:focus-within .phone-shell {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow:
    0 26px 48px rgba(2, 7, 17, 0.62),
    0 0 0 1px rgba(122, 197, 242, 0.26),
    0 0 20px rgba(13, 135, 204, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.feature-grid,
.steps-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.step-card,
.stores-wrap {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.feature-card,
.step-card {
  padding: 1.1rem;
}

.feature-card {
  display: grid;
  gap: 0.42rem;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.12rem;
  color: #d8eeff;
  background: linear-gradient(145deg, rgba(13, 135, 204, 0.24), rgba(13, 135, 204, 0.48));
}

.feature-card h3,
.step-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.feature-card p,
.step-card p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  line-height: 1.62;
  font-size: 0.95rem;
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 37, 61, 0.56), rgba(14, 31, 50, 0.25));
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(13, 135, 204, 0.24), rgba(13, 135, 204, 0.48));
  color: #e9f5ff;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.stores {
  padding-top: 2.9rem;
}

.stores-wrap {
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(13, 135, 204, 0.16), transparent 38%),
    var(--surface-strong);
}

.stores-wrap p {
  margin: 0.7rem auto 0;
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.65;
}

.store-badges {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.82rem;
}

.store-badge {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(154, 191, 220, 0.33);
  border-radius: 0.88rem;
  padding: 0.76rem 0.92rem;
  background: rgba(8, 22, 38, 0.7);
}

.store-badge img {
  filter: brightness(0) invert(1);
}

.store-badge span {
  display: block;
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.store-badge strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(136, 170, 200, 0.24);
  margin-top: 3.25rem;
  padding: 1.35rem 0 2.1rem;
  background: rgba(4, 13, 24, 0.52);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-links a {
  color: #dcecff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(180, 212, 236, 0.46);
  text-underline-offset: 3px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

.legal-main {
  padding: 2.8rem 0 1.6rem;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.legal-card + .legal-card {
  margin-top: 0.9rem;
}

.legal-card h1 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.legal-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-card p {
  margin: 0.72rem 0 0;
}

.legal-list {
  margin: 0.72rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.legal-meta {
  margin-top: 0.65rem;
  font-size: 0.84rem;
  color: #d0e5f7;
}

.legal-note {
  margin-top: 0.9rem;
  border: 1px dashed rgba(158, 197, 227, 0.35);
  border-radius: 0.7rem;
  padding: 0.75rem 0.82rem;
  font-size: 0.86rem;
  color: #d0e3f5;
  background: rgba(11, 33, 53, 0.5);
}

.reveal {
  opacity: 0;
  animation: fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-1 {
  animation-delay: 120ms;
}

.reveal-2 {
  animation-delay: 210ms;
}

.reveal-3 {
  animation-delay: 300ms;
}

.reveal-4 {
  animation-delay: 390ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-sheen {
  from {
    transform: translateX(-140%) rotate(18deg);
  }
  to {
    transform: translateX(340%) rotate(18deg);
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .phone-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .stores-wrap {
    text-align: left;
  }

  .store-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1080px, calc(100% - 1.4rem));
  }

  .header-inner {
    padding: 0.74rem 0;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .lang-btn {
    min-width: 2rem;
    height: 1.78rem;
  }

  .brand span {
    font-size: 0.96rem;
  }

  .btn,
  .btn-ghost {
    padding-inline: 0.95rem;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .phone-showcase {
    grid-template-columns: 1fr;
  }

  .store-badge {
    min-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
