:root {
  --bg: #ffffff;
  --ink: #102127;
  --muted: #4a5b65;
  --brand: #001d3d;
  --brand-strong: #00142b;
  --accent: #f0b429;
  --line: #e2eaef;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 4px 16px rgba(16, 33, 39, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

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

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

.page-shell {
  position: relative;
  overflow: clip;
}

.bg-glow {
  position: absolute;
  z-index: -1;
  inset: -120px auto auto -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 29, 61, 0.1) 0%, rgba(0, 29, 61, 0) 70%);
  pointer-events: none;
}

.bg-glow.right {
  inset: 280px -190px auto auto;
  background: radial-gradient(circle at center, rgba(240, 180, 41, 0.1) 0%, rgba(240, 180, 41, 0) 72%);
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 234, 239, 0.7);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand span {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #f1f5f9;
  color: var(--ink);
}

.button-primary {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 10px 20px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

/* ---- Hero ---- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: #edf1f7;
  color: var(--brand);
  margin-bottom: 20px;
}

.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 580px;
}

.hero p {
  margin: 20px 0 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.72;
}

.hero-ctas {
  margin-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.store-badge[alt*="Google Play"] {
  height: 64px;
  margin: -5px 0;
}

.hero-ctas a {
  display: inline-flex;
  align-items: center;
}

.hero-ctas a:hover .store-badge {
  transform: translateY(-2px);
}

.metrics {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.metric {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 150px;
}

.metric strong {
  display: block;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.02rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---- Device frames in hero ---- */

.hero-visual {
  position: relative;
  min-height: 500px;
}

.device-frame {
  position: absolute;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(8, 39, 56, 0.06);
  padding: 10px;
  width: min(74%, 300px);
}

.device-frame img {
  border-radius: 20px;
  width: 100%;
}

.device-frame.one {
  top: 20px;
  left: 6%;
  --angle: -7deg;
  transform: rotate(-7deg);
  animation: drift 10s ease-in-out infinite;
}

.device-frame.two {
  top: 130px;
  right: 3%;
  --angle: 5deg;
  transform: rotate(5deg);
  animation: drift 12s ease-in-out infinite;
}

.device-frame.three {
  bottom: 6px;
  left: 22%;
  --angle: -2deg;
  transform: rotate(-2deg);
  animation: drift 11s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--angle, 0deg));
  }
  50% {
    transform: translateY(-8px) rotate(var(--angle, 0deg));
  }
}

/* ---- Sections ---- */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 88px;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
}

/* ---- Homepage overrides ---- */

.home-page .hero {
  padding: 96px 24px 88px;
}

.home-page .hero-grid {
  gap: 72px;
}

.home-page .section {
  padding: 72px 24px 100px;
}

.home-page .section + .section {
  border-top: 1px solid var(--line);
}

.home-page section[id] {
  scroll-margin-top: 80px;
}

.home-page .section-head {
  margin-bottom: 36px;
}

.home-page .features-grid,
.home-page .testimonials-grid,
.home-page .steps,
.home-page .blog-grid {
  gap: 20px;
}

.home-page .feature-card,
.home-page .testimonial-card,
.home-page .step,
.home-page .blog-card {
  padding: 28px;
}

.home-page .final-cta {
  padding: 48px 36px;
}

/* ---- Features ---- */

.features-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(16, 33, 39, 0.07);
}

.feature-card h3 {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.06rem;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

/* ---- Testimonials ---- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.72;
  color: #1c3340;
  font-style: italic;
}

.testimonial-author {
  margin: 16px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

/* ---- Steps ---- */

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

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  background: #ffffff;
}

.step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #ffffff;
  background: var(--brand);
}

.step h3 {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1rem;
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

/* ---- Blog cards ---- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 0.25s ease;
}

.blog-card:hover {
  box-shadow: 0 6px 20px rgba(16, 33, 39, 0.07);
}

.blog-card .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--brand);
  background: #edf1f7;
}

.blog-card h3 {
  margin: 12px 0 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.04rem;
}

.blog-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.blog-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
}

.blog-link::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.blog-link:hover::after {
  transform: translateX(3px);
}

/* ---- Community ---- */

.community {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.community a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
  color: #26414d;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.community a:hover {
  border-color: #98b1bd;
  transform: translateY(-1px);
}

/* ---- Final CTA ---- */

.final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  background: linear-gradient(165deg, #f7fafa 0%, #fefbf2 100%);
}

.final-cta h2 {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.final-cta p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: grid;
  gap: 12px;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.footer-social a {
  color: #2a414c;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-copy {
  color: #7a8d96;
  font-size: 0.84rem;
  line-height: 1.65;
}

.footer-copy p {
  margin: 0;
}

.footer-copy p + p {
  margin-top: 4px;
}

/* ---- Scroll reveals ---- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---- Blog listing page ---- */

.blog-page .hero {
  padding-bottom: 30px;
}

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

/* ---- Blog post pages ---- */

.post-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

.breadcrumb {
  color: #4f6874;
  font-size: 0.88rem;
}

.post-title {
  margin: 12px 0 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.15;
}

.post-meta {
  margin-top: 12px;
  color: #617984;
  font-size: 0.9rem;
}

.post-content {
  margin-top: 24px;
  font-size: 1.02rem;
  color: #203743;
  line-height: 1.72;
}

.post-content h2 {
  margin: 32px 0 10px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: 1.3rem;
}

.post-content p {
  margin: 14px 0 0;
}

.post-content ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.post-content li + li {
  margin-top: 8px;
}

.post-cta {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f9fbfc;
}

/* ---- Responsive ---- */

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    position: static;
    min-height: auto;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 10px;
  }

  .device-frame {
    position: static;
    width: 200px;
    flex-shrink: 0;
    transform: none;
    animation: none;
  }

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

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

  .home-page .hero {
    padding-top: 72px;
    padding-bottom: 60px;
  }

  .home-page .hero-grid {
    gap: 44px;
  }

  .home-page .section {
    padding-top: 60px;
    padding-bottom: 80px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero p {
    font-size: 1rem;
  }

  .store-badge {
    height: 46px;
  }

  .hero-visual {
    min-height: auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
  }

  .device-frame {
    position: static;
    width: 220px;
    transform: none;
    animation: none;
    margin: 0 auto;
  }

  .device-frame.two,
  .device-frame.three {
    display: none;
  }

  .features-grid,
  .steps,
  .blog-grid,
  .blog-page .blog-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-bottom: 64px;
  }

  .home-page .hero {
    padding-top: 52px;
    padding-bottom: 48px;
  }

  .home-page .section {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .home-page .final-cta {
    padding: 32px 24px;
  }
}

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

/* ---- Utility Pages (Contact / Legal / Download) ---- */

.utility-page .hero {
  padding-top: 56px;
  padding-bottom: 30px;
}

.utility-page .hero h1 {
  max-width: 860px;
}

.utility-page .hero p {
  max-width: 780px;
}

.utility-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 78px;
}

.utility-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}

.utility-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.utility-card h2,
.utility-card h3 {
  margin: 0;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
}

.utility-card h2 {
  font-size: 1.45rem;
}

.utility-card h3 {
  font-size: 1.1rem;
}

.utility-card p {
  margin: 11px 0 0;
  color: var(--muted);
}

.contact-form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #27444f;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #cedbe3;
  border-radius: 10px;
  padding: 11px 12px;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 0.97rem;
  color: var(--ink);
  background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #5f7ea4;
  box-shadow: 0 0 0 3px rgba(0, 29, 61, 0.12);
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-response {
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-strong);
}

.social-list,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.social-list a,
.quick-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  color: #2b4550;
  background: #ffffff;
}

.social-list a:hover,
.quick-links a:hover {
  border-color: #9bb3be;
}

.meta-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4edf2;
  font-size: 0.85rem;
  color: #617985;
}

.legal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 78px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.legal-content {
  color: #223741;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content .legal-updated {
  font-size: 0.9rem;
  color: #617985;
  margin-bottom: 28px;
}

.legal-content .legal-updated strong {
  display: block;
  font-size: 1.1rem;
  color: #223741;
  margin-bottom: 4px;
}

.legal-content h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2c35;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid #e4edf2;
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2c35;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 14px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: #3b82f6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #2563eb;
}

.legal-toc {
  columns: 1;
}

.legal-toc li {
  margin-bottom: 4px;
}

.legal-toc a {
  text-decoration: none;
  font-weight: 500;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid #d1dce3;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f0f5f8;
  font-weight: 600;
  color: #1a2c35;
}

.legal-table td:last-child {
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

.download-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.store-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-box {
  margin-top: 16px;
  display: none;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #284550;
  background: #f7fafc;
  border: 1px solid #d8e4ea;
  border-radius: 12px;
  padding: 12px 14px;
}

.status-box.active {
  display: inline-flex;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d4e2e8;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

@media (max-width: 900px) {
  .utility-grid {
    grid-template-columns: 1fr;
  }
}
