:root {
  --accent-a: #0A84FF;
  --accent-b: #64D2FF;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #e5e5ea;
  --radius: 20px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Per-page accent palettes */
body.page-home {
  /* Brand palette — sampled directly from images/OneTwoApps.svg (the tilted logo planes),
     not a generic blue/purple "AI" gradient. Two tiers: true hues for shapes/large
     headline text only; *-ink variants are darkened for AA contrast wherever body-size
     text sits on a colored surface. */
  --brand-petrol: #37879D;
  --brand-green:  #75A641;
  --brand-grey:   #6C6E70;
  --brand-cyan:   #48C5E6;
  --brand-orange: #F0712B;
  --brand-lime:   #8CC63F;
  --brand-teal:   #55B2A1;
  --brand-amber:  #F59E2A;
  --brand-blue:   #358AA6;
  --brand-petrol-ink: #285F6E;
  --brand-green-ink:  #4C6B2C;
  --accent-a: var(--brand-petrol);
  --accent-b: var(--brand-green);
  --tilt: 25deg;
  --tilt-tl: 8%;
  --tilt-br: 8%;
}
@media (max-width: 1024px) { body.page-home { --tilt-tl: 5%; --tilt-br: 5%; } }
@media (max-width: 768px)  { body.page-home { --tilt-tl: 0%; --tilt-br: 4%; } }
body.page-scanbox     { --accent-a: #0A84FF; --accent-b: #64D2FF; }
body.page-budgetpro   { --accent-a: #30D158; --accent-b: #7BE7A0; }
body.page-budget      { --accent-a: #FF9F0A; --accent-b: #FFD60A; }
body.page-navigateback{ --accent-a: #FF453A; --accent-b: #FF9F0A; }
body.page-aitexteditor{ --accent-a: #5E5CE6; --accent-b: #BF5AF2; }
body.page-aimarkdown  { --accent-a: #FF375F; --accent-b: #FF6482; }
body.page-legal       { --accent-a: #8E8E93; --accent-b: #AEAEB2; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-a); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo span {
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo img {
  height: 28px;
  width: auto;
  border-radius: 6px;
  flex: none;
}
.logo:hover { text-decoration: none; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-header nav a {
  position: relative;
  color: var(--text);
  font-size: 14px;
  padding: 4px 0;
}
.site-header nav a:not(.lang-flag)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  border-radius: 2px;
  transition: width .25s var(--ease);
}
.site-header nav a:not(.lang-flag):hover {
  text-decoration: none;
}
.site-header nav a:not(.lang-flag):hover::after { width: 100%; }

/* Language switcher: both flags always visible, current one highlighted */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  font-size: 15px;
  line-height: 1;
  border-radius: 999px;
  opacity: .4;
  filter: grayscale(70%);
  transition: opacity .2s var(--ease), filter .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.lang-flag.active {
  opacity: 1;
  filter: none;
  background: var(--bg-alt);
  cursor: default;
}
a.lang-flag:hover {
  opacity: 1;
  filter: none;
  text-decoration: none;
  background: var(--bg-alt);
  transform: translateY(-1px);
}

/* Mobile hamburger + dropdown */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px 20px;
  box-shadow: 0 16px 32px -18px rgba(0,0,0,0.18);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: var(--bg-alt); text-decoration: none; }

.nav-mobile .lang-switcher {
  align-self: center;
  margin-top: 6px;
}
.nav-mobile .lang-switcher .lang-flag {
  padding: 0;
  border-bottom: none;
  width: 36px;
  height: 32px;
  font-size: 17px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .site-header nav > a { display: none; }
  .nav-hamburger { display: flex; }
}

/* Notice banner */
.notice-banner {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
}
.notice-banner::before {
  content: "";
  position: absolute;
  inset: -60% -10%;
  background:
    radial-gradient(35% 70% at 15% 40%, rgba(255,255,255,0.28) 0%, transparent 70%),
    radial-gradient(40% 80% at 85% 60%, rgba(255,255,255,0.22) 0%, transparent 70%);
  filter: blur(30px);
  animation: auroraDrift 16s ease-in-out infinite alternate;
}
.notice-banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.notice-banner .notice-logo {
  height: 34px;
  width: auto;
  flex: none;
  border-radius: 8px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.notice-banner p { margin: 0; font-size: 14px; font-weight: 600; }
.notice-banner strong { font-weight: 800; }

@media (max-width: 480px) {
  .notice-banner .notice-logo { height: 26px; }
}

/* Hero */
.hero {
  position: relative;
  padding: 84px 0 56px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background:
    radial-gradient(38% 55% at 20% 20%, color-mix(in srgb, var(--accent-a) 32%, transparent) 0%, transparent 70%),
    radial-gradient(45% 60% at 85% 15%, color-mix(in srgb, var(--accent-b) 30%, transparent) 0%, transparent 70%),
    radial-gradient(40% 50% at 50% 100%, color-mix(in srgb, var(--accent-a) 18%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  animation: auroraDrift 16s ease-in-out infinite alternate;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.08); }
}

.hero-image {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  box-shadow:
    0 24px 60px -20px color-mix(in srgb, var(--accent-a) 45%, transparent),
    0 6px 18px rgba(0,0,0,0.08);
  animation: fadeInUp .7s var(--ease) both;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -1px;
  animation: fadeInUp .7s var(--ease) both;
}

.hero p.subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 28px;
  animation: fadeInUp .7s var(--ease) .08s both;
}

body.page-home .hero p.subtitle {
  max-width: 1032px;
}

.hero-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  margin: 0 auto 24px;
  box-shadow:
    0 16px 40px -12px color-mix(in srgb, var(--accent-a) 55%, transparent),
    0 4px 12px rgba(0,0,0,0.08);
  animation: fadeInUp .7s var(--ease) both, float 5s ease-in-out 1s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   Homepage-only brand system (body.page-home)
   Tilted-plane motif derived from images/OneTwoApps.svg, ~25°.
   Everything below is scoped under body.page-home so the other
   16 pages of the site are entirely unaffected.
   ============================================================ */

/* Tilted rectangle used to frame the flagship screenshot. Angle
   lives on an inner wrapper (never on an <a>) so hit-testing and
   the focus ring on the surrounding link stay rectangular. */
body.page-home .tilt-frame {
  position: relative;
  overflow: hidden;
  clip-path: polygon(var(--tilt-tl) 0%, 100% 0%, calc(100% - var(--tilt-br)) 100%, 0% 100%);
  -webkit-clip-path: polygon(var(--tilt-tl) 0%, 100% 0%, calc(100% - var(--tilt-br)) 100%, 0% 100%);
}
@media (max-width: 480px) {
  body.page-home .tilt-frame {
    clip-path: none;
    -webkit-clip-path: none;
    border-radius: var(--radius);
  }
}

/* Flat rotated rectangle used for dividers/background accents — cheap,
   angle-exact at any size, no clip-path aspect-ratio drift. */
body.page-home .tilt-shape {
  position: absolute;
  transform: rotate(var(--tilt));
  border-radius: 6px;
}

/* ---- Hero: asymmetric two-column split instead of a centered block ---- */
body.page-home .hero {
  text-align: left;
  padding: 56px 0 64px;
  background: var(--bg);
}
body.page-home .hero::before { content: none; } /* remove the blurred aurora-blob orbs */

body.page-home .hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
body.page-home .hero-tilt-a,
body.page-home .hero-tilt-b {
  z-index: 0;
  opacity: .10;
  animation: tiltDrift 12s ease-in-out infinite alternate;
}
body.page-home .hero-tilt-a {
  width: 46%; height: 340px;
  top: -60px; left: -10%;
  background: var(--brand-petrol);
}
body.page-home .hero-tilt-b {
  width: 30%; height: 260px;
  bottom: -70px; right: 4%;
  background: var(--brand-green);
  animation-duration: 15s;
  animation-delay: -4s;
}
@keyframes tiltDrift {
  0%   { transform: rotate(var(--tilt)) translate3d(0,0,0) scale(1); }
  100% { transform: rotate(calc(var(--tilt) + 6deg)) translate3d(2%, -3%, 0) scale(1.06); }
}

body.page-home .hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--brand-petrol-ink);
  margin: 0 0 16px;
}

body.page-home .hero h1 {
  position: relative;
  z-index: 1;
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 18px;
}

body.page-home .hero p.subtitle {
  position: relative;
  z-index: 1;
  text-align: left;
  margin: 0 0 28px;
}

body.page-home .hero-visual {
  position: relative;
  z-index: 1;
  perspective: 1200px;
}
body.page-home .hero-visual .tilt-frame {
  margin: 0;
  box-shadow:
    0 24px 60px -20px color-mix(in srgb, var(--brand-petrol) 45%, transparent),
    0 6px 18px rgba(0,0,0,0.08);
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
body.page-home .hero-visual.is-tilting .tilt-frame {
  transition: transform .08s linear;
}
body.page-home .hero-visual .hero-image {
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  animation: none;
}

/* ---- Scroll-reveal: sections/cards fade & rise into view once ---- */
body.page-home .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
body.page-home .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body.page-home .apps-grid.reveal-group .app-card,
body.page-home .tools-spotlight.reveal-group .tool-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
body.page-home .apps-grid.reveal-group.is-visible .app-card,
body.page-home .tools-spotlight.reveal-group.is-visible .tool-card {
  opacity: 1;
  transform: translateY(0);
}
body.page-home .apps-grid.reveal-group .app-card:nth-child(1) { transition-delay: .03s; }
body.page-home .apps-grid.reveal-group .app-card:nth-child(2) { transition-delay: .09s; }
body.page-home .apps-grid.reveal-group .app-card:nth-child(3) { transition-delay: .15s; }
body.page-home .apps-grid.reveal-group .app-card:nth-child(4) { transition-delay: .21s; }
body.page-home .apps-grid.reveal-group .app-card:nth-child(5) { transition-delay: .27s; }
body.page-home .apps-grid.reveal-group .app-card:nth-child(6) { transition-delay: .33s; }

/* Scroll target offset so the sticky header never covers the heading
   when jumping in from the anchor nav. */
body.page-home section[id] { scroll-margin-top: 76px; }

/* ---- Platform strip: a slim typographic line, not a card grid ---- */
body.page-home .platform-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
body.page-home .platform-strip span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text-muted);
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid var(--border);
}
body.page-home .platform-strip span:last-child { border-right: none; margin-right: 0; padding-right: 0; }

@media (max-width: 860px) {
  body.page-home .hero-split { grid-template-columns: 1fr; gap: 32px; }
  body.page-home .hero h1 { font-size: 38px; }
}
@media (max-width: 600px) {
  body.page-home .hero h1 { font-size: 30px; }
}

/* ---- Section eyebrow label (editorial numbering) ---- */
body.page-home .section-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand-petrol-ink);
  margin: 0 0 8px;
}

/* ---- XCodeX: small dark strip below the Developer Tools tiles ---- */
body.page-home .tool-dark-strip {
  position: relative;
  overflow: hidden;
  background: #14181B;
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
body.page-home .tool-dark-strip::before {
  content: "";
  position: absolute;
  top: -40%; left: -8%;
  width: 34%; height: 180%;
  transform: rotate(var(--tilt));
  background: var(--brand-petrol);
  opacity: .18;
}
body.page-home .tool-dark-strip::after {
  content: "";
  position: absolute;
  bottom: -50%; right: 6%;
  width: 22%; height: 180%;
  transform: rotate(var(--tilt));
  background: var(--brand-green);
  opacity: .16;
}
body.page-home .tool-dark-strip .container { position: relative; z-index: 1; }
body.page-home .tool-dark-strip h3 { margin: 0 0 6px; font-size: 18px; }
body.page-home .tool-dark-strip p {
  max-width: 640px;
  margin: 0 auto 16px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}
body.page-home .tool-dark-strip .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
body.page-home .tool-dark-strip .btn-outline:hover {
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand-petrol), var(--brand-green));
}

/* ---- Contact strip ---- */
body.page-home .contact-strip {
  text-align: center;
}
body.page-home .contact-strip a.btn { font-size: 17px; padding: 14px 32px; }

/* Buttons / badges */
.appstore-badge { display: inline-block; transition: transform .25s var(--ease), filter .25s var(--ease); }
.appstore-badge:hover { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 10px 20px rgba(0,0,0,0.18)); }
.appstore-badge img {
  height: 48px;
  margin: 0 auto;
  border-radius: 10px;
}

.badge-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  animation: fadeInUp .7s var(--ease) .16s both;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent-a) 60%, transparent);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 12px 28px -6px color-mix(in srgb, var(--accent-a) 70%, transparent); }

/* Homepage-only: a light shine sweeps across filled buttons on hover */
body.page-home .btn { position: relative; overflow: hidden; }
body.page-home .btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
body.page-home .btn:hover::after { left: 130%; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-outline:hover {
  transform: translateY(-2px);
  text-decoration: none;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
}

/* Developer section */
.developer-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: 0 20px 45px -28px color-mix(in srgb, var(--accent-a) 45%, transparent);
}
.developer-card h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.developer-card .role {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.developer-card .prose { text-align: left; margin-bottom: 28px; }
.developer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  background: color-mix(in srgb, var(--accent-a) 12%, white);
  border: 1px solid color-mix(in srgb, var(--accent-a) 25%, white);
  color: color-mix(in srgb, var(--accent-a) 70%, black);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  animation: fadeInUp .7s var(--ease) .24s both;
}

/* Apps grid (homepage) */
.section { padding: 64px 0; }
.section h2 {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section p.lead { text-align: center; color: var(--text-muted); max-width: 820px; margin: 0 auto 44px; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 860px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .apps-grid { grid-template-columns: 1fr; }
}

.app-card {
  position: relative;
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  opacity: 0;
  animation: fadeInUp .6s var(--ease) forwards;
  --tile-a: #0A84FF; --tile-b: #64D2FF;
}

.apps-grid .app-card:nth-child(1) { --tile-a: #0A84FF; --tile-b: #64D2FF; animation-delay: .05s; }
.apps-grid .app-card:nth-child(2) { --tile-a: #30D158; --tile-b: #7BE7A0; animation-delay: .12s; }
.apps-grid .app-card:nth-child(3) { --tile-a: #FF9F0A; --tile-b: #FFD60A; animation-delay: .19s; }
.apps-grid .app-card:nth-child(4) { --tile-a: #FF453A; --tile-b: #FF9F0A; animation-delay: .26s; }
.apps-grid .app-card:nth-child(5) { --tile-a: #5E5CE6; --tile-b: #BF5AF2; animation-delay: .33s; }
.apps-grid .app-card:nth-child(6) { --tile-a: #FF375F; --tile-b: #FF6482; animation-delay: .40s; }

.app-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tile-a), var(--tile-b));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.app-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 22px 40px -16px color-mix(in srgb, var(--tile-a) 45%, transparent), 0 6px 16px rgba(0,0,0,0.06);
  border-color: transparent;
  text-decoration: none;
}
.app-card:hover::before { transform: scaleX(1); }

.app-card img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--tile-a) 55%, transparent);
  transition: transform .35s var(--ease);
}
.app-card:hover img { transform: scale(1.08) rotate(-2deg); }

.app-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.app-card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.app-card .status {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--tile-a), var(--tile-b));
  padding: 4px 12px;
  border-radius: 999px;
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp .6s var(--ease) forwards;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.features .feature:nth-child(1) { animation-delay: .05s; }
.features .feature:nth-child(2) { animation-delay: .12s; }
.features .feature:nth-child(3) { animation-delay: .19s; }
.features .feature:nth-child(4) { animation-delay: .26s; }
.features .feature:nth-child(5) { animation-delay: .33s; }
.features .feature:nth-child(6) { animation-delay: .40s; }

.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px color-mix(in srgb, var(--accent-a) 50%, transparent);
}

.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* About / intro block */
.about {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.stats .stat { text-align: center; }
.stats .stat strong { display: block; font-size: 22px; }
.stats .stat span { color: var(--text-muted); font-size: 13px; }

/* Placeholder page */
.placeholder-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px -18px color-mix(in srgb, var(--accent-a) 40%, transparent);
}

.desc-block {
  max-width: 760px;
  margin: 0 0 40px;
  color: var(--text-muted);
}
.desc-block p { margin: 0 0 18px; }
.desc-block h2 {
  text-align: left;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 14px;
}
.desc-block h2:first-child { margin-top: 0; }
.desc-block h3 {
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}

/* Long-form intro */
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
}
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  opacity: 0;
  animation: fadeInUp .6s var(--ease) forwards;
}
.steps .step:nth-child(1) { animation-delay: .05s; }
.steps .step:nth-child(2) { animation-delay: .12s; }
.steps .step:nth-child(3) { animation-delay: .19s; }
.steps .step:nth-child(4) { animation-delay: .26s; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--accent-a) 55%, transparent);
}
.step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.testimonial {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  opacity: 0;
  animation: fadeInUp .6s var(--ease) forwards;
}
.testimonial-grid .testimonial:nth-child(1) { animation-delay: .05s; }
.testimonial-grid .testimonial:nth-child(2) { animation-delay: .12s; }
.testimonial-grid .testimonial:nth-child(3) { animation-delay: .19s; }
.testimonial-grid .testimonial:nth-child(4) { animation-delay: .26s; }
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 6px; left: 16px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .5;
}
.testimonial p { margin: 18px 0 0; font-style: italic; color: var(--text); font-size: 14px; }

/* Press / trust badges */
.press-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.press-row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
}

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  opacity: 0;
  animation: fadeInUp .5s var(--ease) forwards;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  gap: 10px;
}
.faq-item h3 .q-mark {
  flex: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.faq-item p { margin: 0 0 0 32px; color: var(--text-muted); font-size: 14px; }

/* Screenshot gallery */
.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 4px 20px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.gallery img {
  flex: none;
  width: 180px;
  border-radius: 16px;
  scroll-snap-align: start;
  box-shadow: 0 16px 32px -14px color-mix(in srgb, var(--accent-a) 45%, transparent), 0 4px 10px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  opacity: 0;
  animation: fadeInUp .6s var(--ease) forwards;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 22px 40px -16px color-mix(in srgb, var(--accent-a) 55%, transparent);
}
.gallery img:nth-child(1) { animation-delay: .05s; }
.gallery img:nth-child(2) { animation-delay: .1s; }
.gallery img:nth-child(3) { animation-delay: .15s; }
.gallery img:nth-child(4) { animation-delay: .2s; }
.gallery img:nth-child(5) { animation-delay: .25s; }
.gallery img:nth-child(6) { animation-delay: .3s; }

/* Carousel */
.carousel {
  --per-view: 3;
  --gap: 16px;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-top: 32px;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: var(--gap);
  transition: transform .45s var(--ease);
}
.carousel-track img {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--accent-a) 45%, transparent), 0 6px 16px rgba(0,0,0,0.08);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--accent-a) 60%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  z-index: 2;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); }
.carousel-btn:active { transform: translateY(-50%) scale(0.96); }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--border);
  transition: transform .25s var(--ease), background .25s var(--ease), width .25s var(--ease);
}
.carousel-dot.active {
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
}

@media (max-width: 860px) {
  .carousel { --per-view: 2; max-width: 560px; }
}

@media (max-width: 560px) {
  .carousel { --per-view: 1; max-width: 260px; }
  .carousel-prev { left: -8px; }
  .carousel-next { right: -8px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 17px; }
}

/* Price box */
.price-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 20px 45px -24px color-mix(in srgb, var(--accent-a) 45%, transparent);
}
.price-box .price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-box .price-note {
  color: var(--text-muted);
  font-size: 14px;
  margin: 6px 0 18px;
}

/* Download CTA sections */
.section.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-a) 10%, var(--bg-alt)), color-mix(in srgb, var(--accent-b) 10%, var(--bg-alt)));
}

/* Footer */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-alt);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
}
.site-footer a { color: var(--text-muted); }
.site-footer .links { margin-top: 8px; }
.site-footer .links a { margin: 0 8px; }

/* Shared entrance animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .hero p.subtitle { font-size: 16px; }
}
