/* A&A Mobile Dynamics — monochromatic premium landing */

:root {
  --bg: #f7f7f7;
  --bg-alt: #efefef;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --text: #1a1a1a;
  --text-secondary: #3a3a3c;
  --text-muted: #86868b;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1140px;
  --header-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --header-total-h: calc(var(--header-h) + var(--safe-top));
  --font: "Inter", system-ui, -apple-system, "SF Pro Text", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "SF Pro Display", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* Background folds */

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

.fold {
  position: absolute;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.4) 100%);
  box-shadow: var(--shadow-md);
  transform: rotate(-12deg);
}

.fold--1 {
  width: 180px;
  height: 180px;
  top: -40px;
  right: 8%;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.fold--2 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: -30px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite reverse;
}

.fold--3 {
  width: 90px;
  height: 90px;
  top: 45%;
  right: -20px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.25;
  animation: float 24s ease-in-out infinite 2s;
}

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

/* Header */

.site-header {
  position: fixed;
  top: calc(var(--safe-top) * -1);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-total-h);
  padding-top: var(--safe-top);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 101;
}

.logo img {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-name .amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  margin: 0 1px;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 20px;
  background: var(--text);
  color: var(--surface) !important;
  border-radius: 980px;
  font-weight: 600 !important;
  transition: transform 0.2s var(--ease), box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher */

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 980px;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lang-switcher-btn:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow-sm);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 120;
}

.lang-switcher-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-switcher-option:hover,
.lang-switcher-option.is-active {
  background: var(--bg);
  color: var(--text);
}

.lang-switcher-option.is-active {
  font-weight: 700;
}

/* RTL (Arabic, Hebrew, Persian) */

html[dir="rtl"] .header-inner,
html[dir="rtl"] .footer-inner,
html[dir="rtl"] .hero-inner,
html[dir="rtl"] .contact-card {
  direction: rtl;
}

html[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .app-link-arrow svg {
  transform: scaleX(-1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 101;
}

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

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

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

/* Typography helpers */

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

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

.btn-primary {
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  box-shadow: var(--shadow-sm);
}

/* Hero */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
}

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

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero-accent {
  color: var(--text-secondary);
}

.lead {
  margin: 0 0 36px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 28em;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-frame {
  position: relative;
  width: min(320px, 100%);
}

.hero-logo {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.hero-logo-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-dot {
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.4; }
}

/* About */

.about {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: var(--surface);
}

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

.value-card {
  padding: 36px 32px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.value-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Apps */

.apps {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

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

.app-card {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
}

.app-card-link {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.app-card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.app-card-link--placeholder {
  cursor: default;
  opacity: 0.85;
}

.app-card-link--placeholder:hover {
  transform: none;
  box-shadow: none;
}

.app-card-visual {
  position: relative;
  padding: 40px 40px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--surface) 100%);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.app-icon svg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.app-icon img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.app-card-subtitle {
  margin: -4px 0 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.app-phone {
  position: relative;
  flex: 1;
  max-width: 160px;
  margin-left: auto;
  aspect-ratio: 9 / 16;
  background: var(--text);
  border-radius: 20px 20px 0 0;
  padding: 8px 8px 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform 0.45s var(--ease);
}

.app-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 36%;
  height: 5px;
  border-radius: 980px;
  background: #000;
  transform: translateX(-50%);
}

.app-card-link:hover .app-phone {
  transform: translateY(0);
}

.app-phone--ghost {
  background: #d1d1d6;
}

.app-phone-screen {
  height: 100%;
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  padding: 18px 10px 10px;
  overflow: hidden;
}

/* Phone UI — PulseWise health dashboard */

.phone-ui {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}

.phone-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-ui-label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.phone-ui-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.2;
}

.phone-bpm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.phone-bpm-ring {
  position: relative;
  width: 72px;
  height: 72px;
  color: var(--text);
}

.phone-bpm-svg {
  width: 100%;
  height: 100%;
}

.phone-bpm-arc {
  animation: phone-pulse-ring 2.4s var(--ease) infinite;
  transform-origin: center;
}

.phone-bpm-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.phone-bpm-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.phone-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-top: auto;
  padding: 0 2px;
}

.phone-chart span {
  flex: 1;
  height: var(--h);
  min-height: 4px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, var(--text) 0%, rgba(26, 26, 26, 0.35) 100%);
  opacity: 0.85;
  transform-origin: bottom;
  animation: phone-bar-rise 0.6s var(--ease) backwards;
}

.phone-chart span:nth-child(1) { animation-delay: 0.05s; }
.phone-chart span:nth-child(2) { animation-delay: 0.1s; }
.phone-chart span:nth-child(3) { animation-delay: 0.15s; }
.phone-chart span:nth-child(4) { animation-delay: 0.2s; }
.phone-chart span:nth-child(5) { animation-delay: 0.25s; }
.phone-chart span:nth-child(6) { animation-delay: 0.3s; }
.phone-chart span:nth-child(7) { animation-delay: 0.35s; }

.phone-chips {
  display: flex;
  gap: 5px;
}

.phone-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 0;
  font-size: 0.48rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: 6px;
}

.phone-chip svg {
  opacity: 0.55;
  flex-shrink: 0;
}

/* Phone UI — PetCarely timeline */

.phone-pet-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-pet-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  flex-shrink: 0;
}

.phone-pet-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.phone-pet-name {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.phone-pet-meta {
  font-size: 0.48rem;
  color: var(--text-muted);
}

.phone-timeline {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.phone-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.phone-tl-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-alt);
  position: relative;
}

.phone-tl-icon--meal::after {
  content: "";
  position: absolute;
  inset: 5px 4px 4px;
  border: 1.2px solid var(--text);
  border-radius: 2px;
  opacity: 0.45;
}

.phone-tl-icon--walk::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 4px;
  left: 6px;
  border: 1.2px solid var(--text);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.45;
}

.phone-tl-icon--med::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  top: 6px;
  left: 5px;
  border: 1.2px solid var(--text);
  border-radius: 2px;
  opacity: 0.45;
}

.phone-tl-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.phone-tl-bar {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-alt);
}

.phone-tl-bar--wide { width: 100%; }
.phone-tl-bar--mid { width: 72%; }
.phone-tl-bar--short { width: 42%; opacity: 0.65; }

.phone-tabbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.phone-tab {
  width: 16px;
  height: 3px;
  border-radius: 980px;
  background: var(--bg-alt);
}

.phone-tab--active {
  width: 20px;
  background: var(--text);
  opacity: 0.25;
}

@keyframes phone-pulse-ring {
  0%, 100% { opacity: 1; stroke-dasharray: 120 176; }
  50% { opacity: 0.7; stroke-dasharray: 130 166; }
}

@keyframes phone-bar-rise {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 0.85; }
}

.app-card-link:hover .phone-bpm-arc {
  animation-duration: 1.6s;
}

.app-card.reveal.is-visible .phone-chart span {
  animation-play-state: running;
}

.app-card-body {
  padding: 32px 36px 36px;
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.app-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 980px;
  color: var(--text-secondary);
}

.app-status--soon {
  background: var(--text);
  color: var(--surface);
}

.app-card-body h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-card-body p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.app-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.25s var(--ease);
}

.app-card-link:hover .app-link-arrow {
  gap: 12px;
}

.app-link-arrow--muted {
  color: var(--text-muted);
  font-weight: 500;
}

/* Stats */

.stats {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  background: var(--text);
  color: var(--surface);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
}

/* Contact */

.contact {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  background: var(--surface);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 64px;
  background: var(--bg);
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
}

.contact-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--text);
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.7;
}

.contact-note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 24px 48px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-row: 1;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-tagline {
  margin: 2px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 28px;
  grid-row: 1;
  grid-column: 2;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Legal pages */

.legal-page {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.legal-content {
  max-width: 720px;
  background: var(--surface);
  padding: 48px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: none;
}

.legal-back:hover {
  color: var(--text);
}

.legal-lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.legal-content li strong {
  color: var(--text);
}

.legal-content h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.legal-content em {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-footer-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-footer-links a {
  font-weight: 500;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-frame {
    width: min(240px, 70vw);
  }

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

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

  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    text-align: center;
  }

  .stats-inner {
    gap: 32px;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--border);
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: calc(var(--safe-top) * -1) 0 0;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh + var(--safe-top));
    padding: calc(var(--safe-top) + var(--header-h) + 24px) 24px 56px;
    gap: 14px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.72) 42%, rgba(247, 247, 247, 0.92) 100%),
      var(--surface-glass);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
  }

  .header-inner > .logo {
    flex: 1;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(280px, 82vw);
    min-height: 52px;
    padding: 14px 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-sm);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
  }

  .nav-cta {
    margin-top: 4px;
    border-color: transparent !important;
    border-radius: 980px !important;
    background: var(--text) !important;
    color: var(--surface) !important;
    box-shadow: var(--shadow-md);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-nav {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-scroll-hint {
    display: none;
  }

  .about,
  .apps,
  .contact {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .app-card-visual {
    padding: 28px 24px 0;
  }

  .app-card-body {
    padding: 24px;
  }

  .logo-sub {
    display: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fold,
  .scroll-dot,
  .phone-bpm-arc,
  .phone-chart span {
    animation: none;
  }

  .btn:hover,
  .app-card-link:hover,
  .value-card:hover {
    transform: none;
  }
}
