/* Infinity Academy Schools — Landing
   Theme derived from school-logo.svg:
   #1B4755 (teal), #1B5177 (blue), #0F83AF / #0487BA (cyan accent) */

:root {
  --navy: #1b4755;
  --navy-deep: #123640;
  --navy-mid: #1b5177;
  --accent: #0f83af;
  --accent-bright: #0487ba;
  --accent-soft: #3aa3c7;
  --ink: #123640;
  --muted: #4f6b75;
  --paper: #f4fafc;
  --paper-warm: #e8f3f7;
  --line: rgba(27, 71, 85, 0.14);
  --white: #fcfdfd;
  --radius: 18px;
  --shell: min(1120px, calc(100% - 2rem));
  --font-ar: "Cairo", system-ui, sans-serif;
  --font-en: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

strong {
  font-weight: 700;
}

.latin {
  font-family: var(--font-en);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

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

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(18, 54, 64, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(18, 54, 64, 0.28);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  min-width: 0;
  flex: 1 1 auto;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-short {
  display: none;
}

.brand-full {
  display: inline;
}

.brand-text small {
  font-size: 0.72rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Hide header CTA on mobile — must beat .btn { display: inline-flex } */
a.header-cta {
  display: none !important;
  margin-inline-start: 0.35rem;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.nav-toggle {
  margin-inline-start: 0;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  inset-inline: 0;
  top: var(--header-h);
  background: rgba(18, 54, 64, 0.97);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.25rem calc(1.5rem + var(--safe-bottom));
  border-bottom: 1px solid rgba(15, 131, 175, 0.35);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
}

.nav-mobile a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-mobile .btn {
  margin-top: 0.5rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27, 71, 85, 0.28);
}

.btn-ghost-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(15, 131, 175, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 70%, rgba(27, 81, 119, 0.35), transparent 50%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-mid) 100%);
  color: var(--white);
  padding: calc(var(--header-h) + 1.5rem) 0 calc(4rem + var(--safe-bottom));
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.motion-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-glow {
  position: absolute;
  inset-inline-end: -10%;
  bottom: -20%;
  width: min(60vw, 640px);
  height: min(60vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 131, 175, 0.28), transparent 65%);
  filter: blur(20px);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 2rem;
}

.hero-copy {
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-hero {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 1rem 0 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-support {
  margin: 0.85rem 0 0;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.35;
  }
}

/* Sections shared */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.about-copy h2,
.app-copy h2,
.contact-intro h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.about-copy p strong {
  color: var(--navy);
}

.about-facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact {
  background: var(--paper);
  padding: 1.25rem 1.4rem;
  display: grid;
  gap: 0.25rem;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.fact-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
}

/* Pillars */
.pillars {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}

.pillars-row {
  display: grid;
  gap: 1.25rem;
}

.pillar {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.pillar:last-child {
  border-bottom: 0;
}

.pillar-index {
  display: block;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.pillar p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

/* Stages */
.stages {
  background: var(--navy);
  color: var(--white);
}

.stages .section-kicker {
  color: var(--accent-soft);
}

.stages h2 {
  color: var(--white);
}

.stages-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.stages-strip li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stages-strip li:last-child {
  border-bottom: 0;
}

.stage-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.stage-en {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Features */
.features {
  background: var(--white);
}

.section-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1.05rem;
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
}

.feature-tab {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.feature-tab:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.feature-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.feature-panel[hidden] {
  display: none;
}

.feature-panels {
  perspective: 1200px;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  transform-style: preserve-3d;
}

.feature-card {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, var(--paper) 0%, var(--white) 100%);
  transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
  will-change: transform, opacity;
}

.feature-card:hover {
  border-color: rgba(15, 131, 175, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18, 54, 64, 0.08);
}

.feature-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.motion-title {
  overflow: hidden;
}

/* Parents */
.parents {
  background:
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
}

.parents-grid {
  display: grid;
  gap: 2rem;
}

.parents-copy p {
  color: var(--muted);
  max-width: 48ch;
}

.parents-points {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.parents-points li {
  position: relative;
  padding-inline-start: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.parents-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.parents-panel {
  display: grid;
  gap: 0.75rem;
}

.quick-link {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.quick-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.quick-link span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.quick-link strong {
  color: var(--navy);
  font-size: 1rem;
  word-break: break-word;
}

/* Community */
.community {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.community .section-kicker {
  color: var(--accent-soft);
}

.community h2 {
  color: var(--white);
}

.community-banner {
  display: grid;
  gap: 1.5rem;
}

.community-copy p:last-child {
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
  margin-bottom: 0;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.community-actions .btn-ghost-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.community-actions .btn-ghost-dark:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

/* App */
.app {
  background: var(--white);
  overflow: hidden;
}

.app-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.app-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}

.app-features {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.app-features li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--ink);
  font-weight: 600;
}

.app-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.app-visual {
  display: grid;
  place-items: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 320px);
  border-radius: 28px;
  padding: 0.65rem;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  box-shadow:
    0 30px 60px rgba(18, 54, 64, 0.28),
    0 0 0 1px rgba(15, 131, 175, 0.3);
}

.phone-frame img {
  width: 100%;
  border-radius: 20px;
  background: var(--paper);
}

.store-actions {
  display: grid;
  gap: 0.75rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.25s ease, transform 0.25s var(--ease), background 0.25s ease;
}

.store-btn:hover {
  border-color: var(--accent);
  background: var(--white);
  transform: translateY(-2px);
}

.store-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.store-btn small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.store-btn strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.2;
}

/* Contact */
.contact {
  background:
    linear-gradient(180deg, var(--paper) 0%, #e8edf2 100%);
}

.contact-panel {
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(18, 54, 64, 0.08);
}

.contact-intro p:last-child {
  color: var(--muted);
  max-width: 42ch;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
}

.contact-item {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-item:hover {
  border-color: rgba(15, 131, 175, 0.45);
  background: #f0f9fc;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.contact-value {
  font-weight: 700;
  color: var(--navy);
  word-break: break-word;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.75rem 0;
  font-size: 0.9rem;
}

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

.footer-inner p {
  margin: 0;
}

.footer-credit a {
  color: var(--accent-soft);
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Reveal baseline (JS enhances) */
.reveal {
  opacity: 1;
}

/* Responsive — mobile first refinements + breakpoints */
@media (max-width: 1023px) {
  :root {
    --header-h: 64px;
    --shell: min(1120px, calc(100% - 1.25rem));
  }

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

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
    font-size: 1rem;
  }

  .brand-text small {
    display: none;
  }

  .nav-toggle {
    margin-inline-start: auto;
  }

  a.header-cta {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .hero-copy {
    max-width: none;
  }

  .brand-hero {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .scroll-hint {
    display: none;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .pillar {
    padding: 1.35rem 0;
  }

  .phone-frame {
    width: min(100%, 260px);
  }

  .store-actions {
    grid-template-columns: 1fr;
  }

  .store-btn {
    min-height: 56px;
  }

  .contact-panel {
    padding: 1.35rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .about-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .stages-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stages-strip li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.1rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stages-strip li:nth-child(2n) {
    border-inline-end: 0;
  }

  .stages-strip li:nth-child(n + 3) {
    border-bottom: 0;
  }

  .store-actions {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 768px) {
  :root {
    --shell: min(1120px, calc(100% - 2.5rem));
  }

  .about-grid {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: start;
    gap: 3.5rem;
  }

  .pillars-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .pillar {
    padding: 0 1.5rem;
    border-bottom: 0;
    border-inline-end: 1px solid var(--line);
  }

  .pillar:first-child {
    padding-inline-start: 0;
  }

  .pillar:last-child {
    border-inline-end: 0;
    padding-inline-end: 0;
  }

  .stages-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .stages-strip li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.5rem 1.25rem;
    border-bottom: 0;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stages-strip li:last-child {
    border-inline-end: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .parents-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: center;
    gap: 2.5rem;
  }

  .community-banner {
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }

  .app-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }

  .store-actions {
    grid-template-columns: 1fr 1fr;
  }

  .contact-panel {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .app-grid {
    gap: 2rem;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .brand-full {
    display: inline;
  }

  .brand-short {
    display: none;
  }

  .brand-text small {
    display: inline;
  }

  .nav-desktop {
    display: flex;
  }

  a.header-cta {
    display: inline-flex !important;
  }

  .nav-toggle {
    display: none;
  }

  .hero-content {
    padding-block: 3rem;
  }

  .phone-frame {
    width: min(100%, 340px);
  }

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

@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-desktop a {
    font-size: 0.8rem;
    padding: 0.35rem 0.45rem;
  }

  a.header-cta {
    padding-inline: 0.85rem;
    font-size: 0.8rem;
    min-height: 40px;
  }

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

@media (max-width: 360px) {
  .hero-actions .btn {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-hint span {
    animation: none;
  }
}
