/* ═══════════════════════════════════════════════
   TortugaApps — Gray + Orange Skeuomorphic Theme
   Onest font · Dark surfaces · Embossed UI
   ═══════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────── */
:root {
  /* Surface palette — dark grays */
  --c-bg:            #1A1A1E;
  --c-bg-alt:        #222226;
  --c-surface:       #2A2A2F;
  --c-surface-raised:#323238;
  --c-surface-inset: #16161A;
  --c-border:        rgba(255,255,255,0.06);
  --c-border-light:  rgba(255,255,255,0.10);

  /* Text */
  --c-text:          #EAEAEA;
  --c-text-secondary:#A0A0A8;
  --c-text-tertiary: #707078;
  --c-text-muted:    #55555D;

  /* Orange accent */
  --c-accent:        #FF6B00;
  --c-accent-hover:  #FF8C33;
  --c-accent-soft:   rgba(255,107,0,0.12);
  --c-accent-glow:   rgba(255,107,0,0.25);

  /* Skeuomorphic shadows */
  --shadow-raised:   0 2px 0 rgba(255,255,255,0.04) inset,
                     0 -1px 0 rgba(0,0,0,0.3) inset,
                     0 8px 24px rgba(0,0,0,0.5);
  --shadow-card:     0 1px 0 rgba(255,255,255,0.05) inset,
                     0 12px 40px rgba(0,0,0,0.45),
                     0 2px 6px rgba(0,0,0,0.3);
  --shadow-inset:    0 2px 6px rgba(0,0,0,0.5) inset,
                     0 -1px 0 rgba(255,255,255,0.04) inset;
  --shadow-btn:      0 1px 0 rgba(255,255,255,0.15) inset,
                     0 -1px 0 rgba(0,0,0,0.3) inset,
                     0 4px 12px rgba(0,0,0,0.4);
  --shadow-btn-active: 0 2px 4px rgba(0,0,0,0.5) inset;

  /* Typography */
  --font-main:       'Onest', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --sp-xs: 0.5rem;   --sp-sm: 0.75rem;
  --sp-md: 1.25rem;  --sp-lg: 2rem;
  --sp-xl: 3.5rem;   --sp-2xl: 5rem;

  /* Radius */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;

  /* Noise texture overlay */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  position: relative;
}

/* Noise texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

a { color: var(--c-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-accent-hover); }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -0.01em; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

/* ── Navbar — Brushed Metal ────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(26,26,30,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(26,26,30,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--c-text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.navbar__brand:hover { color: var(--c-accent); }

.navbar__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.navbar__link:hover {
  color: var(--c-text);
  background: var(--c-accent-soft);
}

/* ── Buttons — Skeuomorphic ────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c-accent), #fff 20%) 0%,
    var(--c-accent) 50%,
    color-mix(in srgb, var(--c-accent), #000 15%) 100%);
  box-shadow: var(--shadow-btn);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn--primary:hover {
  color: #fff;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c-accent), #fff 30%) 0%,
    color-mix(in srgb, var(--c-accent), #fff 10%) 50%,
    color-mix(in srgb, var(--c-accent), #000 10%) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset,
              0 -1px 0 rgba(0,0,0,0.3) inset,
              0 6px 20px var(--c-accent-glow);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn-active);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c-accent), #000 10%) 0%,
    color-mix(in srgb, var(--c-accent), #000 25%) 100%);
}

.btn--outline {
  color: var(--c-text-secondary);
  background: var(--c-surface);
  box-shadow: var(--shadow-raised);
  border: 1px solid var(--c-border-light);
}
.btn--outline:hover {
  color: var(--c-text);
  background: var(--c-surface-raised);
  transform: translateY(-1px);
}
.btn--outline:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn-active);
}

.btn--accent {
  color: #fff;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c-accent), #fff 20%) 0%,
    var(--c-accent) 50%,
    color-mix(in srgb, var(--c-accent), #000 15%) 100%);
  box-shadow: var(--shadow-btn);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: var(--r-lg);
}
.btn--accent:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset,
              0 8px 30px var(--c-accent-glow);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
}

/* ── Hero — Main Hub ───────────────────────── */
.hero {
  padding: calc(var(--sp-2xl) + 4rem) 0 var(--sp-2xl);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--c-accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-md);
  padding: 0.35rem 1rem;
  background: var(--c-accent-soft);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 100px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-md);
  color: var(--c-text);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-md);
  position: relative;
}

.hero h1 span {
  color: var(--c-accent);
}

.hero__tagline {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--c-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--sp-lg);
  line-height: 1.7;
}

.hero p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--c-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--sp-lg);
  line-height: 1.7;
}

.hero .btn-group {
  justify-content: center;
}

/* ── Sections ──────────────────────────────── */
.section {
  padding: var(--sp-2xl) 0;
  position: relative;
}

.section--dark {
  background: var(--c-bg);
}

.section--alt {
  background: var(--c-bg-alt);
}

.section--white {
  background: var(--c-bg);
}

.section__header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.section__header h2 {
  margin-bottom: var(--sp-xs);
}

.section__header p {
  font-size: 1.05rem;
  color: var(--c-text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.section__divider {
  width: 48px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  margin: 0 auto var(--sp-md);
}

/* ── Stats Bar ─────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-md);
  padding: var(--sp-xl) 0;
}

.stat {
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.stat__number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── App Grid ──────────────────────────────── */
.grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-lg);
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Top highlight for 3D embossed look */
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.08) 50%, transparent 90%);
  z-index: 1;
}

.app-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 20px 60px rgba(0,0,0,0.5),
              0 4px 12px rgba(0,0,0,0.3);
}

.app-card__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.app-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  display: block;
}

.app-card__desc {
  font-size: 0.85rem;
  color: var(--c-text-secondary);
  display: block;
  line-height: 1.4;
}

/* Card variant with header/info/body wrappers (generated app pages) */
.app-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.app-card__info { flex: 1; min-width: 0; }

.app-card__body {
  padding: 0 var(--sp-lg) var(--sp-lg);
}

.app-card__tagline {
  font-size: 0.9rem;
  color: var(--c-text-tertiary);
  line-height: 1.5;
}

.app-card__footer {
  margin-top: auto;
  padding: var(--sp-sm) var(--sp-lg) var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.app-card__arrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Feature Cards ─────────────────────────── */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-md);
}

.feature-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 16px 48px rgba(0,0,0,0.5);
}

.feature-card__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  margin-bottom: var(--sp-md);
  box-shadow: var(--shadow-inset);
}

.feature-card__icon svg {
  width: 24px; height: 24px;
  fill: var(--c-accent);
  stroke: var(--c-accent);
}

.feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--c-text-secondary);
  line-height: 1.55;
}

/* ── Steps (How It Works) ──────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  position: relative;
}

/* connector line */
.steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 16.5%; right: 16.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent-soft), var(--c-accent));
  border-radius: 1px;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 52px; height: 52px;
  margin: 0 auto var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c-accent), #fff 20%),
    var(--c-accent),
    color-mix(in srgb, var(--c-accent), #000 20%));
  border-radius: 50%;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset,
              0 -1px 0 rgba(0,0,0,0.3) inset,
              0 6px 20px var(--c-accent-glow);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--c-text-secondary);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

/* ── Editorial Section ─────────────────────── */
.editorial {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-xl) 0;
}

.editorial__kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-accent);
  margin-bottom: var(--sp-sm);
}

.editorial__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--sp-md);
  letter-spacing: -0.02em;
}

.editorial__body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--c-text-secondary);
}

/* ── Technology Grid ───────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-md);
}

.tech-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.tech-card:hover { transform: translateY(-3px); }

.tech-card svg {
  width: 36px; height: 36px;
  margin-bottom: var(--sp-sm);
  fill: var(--c-accent);
  stroke: var(--c-accent);
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--c-text-secondary);
}

/* ── CTA Section ───────────────────────────── */
.cta {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.cta::after {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--c-accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
}

.cta > * { position: relative; z-index: 1; }

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--sp-xs);
}

.cta p {
  font-size: 1.05rem;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-lg);
}

/* ── App Hero (individual pages) ───────────── */
.app-hero {
  padding: calc(var(--sp-2xl) + 4rem) 0 var(--sp-2xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-accent), var(--c-bg) 92%) 0%, var(--c-bg) 100%);
}

/* Primary glow — right side */
.app-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--c-accent-glow) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}

/* Secondary glow — left side */
.app-hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--c-accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.25;
}

.app-hero__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
  position: relative;
  z-index: 1;
}

.app-hero__text {
  flex: 1;
}

.app-hero__text h1 {
  margin-bottom: var(--sp-sm);
  color: var(--c-accent);
  text-shadow: 0 0 40px var(--c-accent-glow);
}

.app-hero__text p {
  color: var(--c-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}

.app-hero__visual {
  flex-shrink: 0;
}

.app-hero__mockup {
  border-radius: 36px;
  max-width: 200px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset,
              0 20px 60px rgba(0,0,0,0.5),
              0 4px 12px rgba(0,0,0,0.3),
              0 0 80px -20px var(--c-accent-glow);
}

/* ── Footer ────────────────────────────────── */
.footer {
  padding: var(--sp-xl) 0 var(--sp-lg);
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  justify-content: center;
  margin-bottom: var(--sp-md);
}

.footer__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--c-accent); }

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* ── Legal Pages ───────────────────────────── */
.legal {
  padding: calc(var(--sp-2xl) + 4rem) 0 var(--sp-2xl);
  max-width: 800px;
  margin: 0 auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--sp-sm);
}

.legal__date {
  font-size: 0.85rem;
  color: var(--c-text-tertiary);
  margin-bottom: var(--sp-xl);
  font-weight: 500;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-xs);
  border-bottom: 2px solid var(--c-accent);
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-xs);
}

.legal p, .legal li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-sm);
}

.legal ul, .legal ol {
  padding-left: 1.5rem;
  margin-bottom: var(--sp-md);
}

.legal li { margin-bottom: 0.35rem; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-md) 0;
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.legal th, .legal td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--c-border);
}

.legal th {
  background: var(--c-surface-raised);
  font-weight: 600;
  color: var(--c-text);
}

.legal td {
  color: var(--c-text-secondary);
}

.legal a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* ── Animations ────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .app-hero__inner { flex-direction: column; text-align: center; gap: var(--sp-lg); }
  .app-hero__text .btn-group { justify-content: center; }
  .hero { padding-top: calc(var(--sp-xl) + 4rem); }
  .grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--sp-md); }
  .steps::before { display: none; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--sp-xl) 0; }
  .cta { padding: var(--sp-xl) var(--sp-md); }
  .stat { padding: var(--sp-md); }
  .stat__number { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
  .btn--accent { padding: 0.85rem 1.75rem; }
}
