:root {
  --bg-deep: #0c0e14;
  --bg-mid: #13161f;
  --surface: rgba(22, 26, 36, 0.78);
  --surface-hover: rgba(28, 33, 46, 0.92);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(180, 200, 230, 0.14);
  --text: #eef1f7;
  --text-muted: #949eac;
  --text-subtle: #6d7684;
  --accent: #b8d4f0;
  --accent-dim: #8eb4d8;
  --accent-soft: rgba(184, 212, 240, 0.1);
  --accent-glow: rgba(184, 212, 240, 0.12);
  --error: #f0a8a8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.4);
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --content-max: 56rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  .app-card,
  .card-cta,
  .hero-link {
    transition: none;
  }

  .app-card:hover,
  .card-cta:hover {
    transform: none;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(70, 90, 120, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 30%, rgba(184, 212, 240, 0.05), transparent 50%),
    linear-gradient(175deg, var(--bg-deep) 0%, var(--bg-mid) 50%, #0a0c12 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, black 20%, transparent 72%);
}

.page-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
  z-index: 100;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

/* —— Hero —— */
.hero {
  padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 1.75rem) clamp(1.75rem, 4vw, 2.25rem);
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr minmax(14rem, 17.5rem);
    gap: 2.5rem 3rem;
  }
}

.lockup {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 480px) {
  .lockup {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.35rem;
  }
}

.mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: min(152px, 40vw);
  min-height: 52px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 40px var(--accent-glow);
}

.mark-img {
  display: block;
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lockup-text {
  min-width: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 0.5rem;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4.2vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.tagline {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 36rem;
}

.tagline .domain {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.hero-aside {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero-aside {
    padding-top: 0;
    border-top: none;
    border-left: 1px solid var(--border);
    padding-left: 2rem;
    margin-left: 0;
  }
}

.lede {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 212, 240, 0.35);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-link:hover {
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.hero-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* —— Section —— */
.section-bar {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 1.75rem) 1.125rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-bar::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.section-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

/* —— App grid —— */
main {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 1.75rem) 2.5rem;
}

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

@media (min-width: 540px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.app-card:hover {
  border-color: rgba(184, 212, 240, 0.22);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(184, 212, 240, 0.06);
}

.app-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card-desc {
  margin: 0 0 1.25rem;
  flex-grow: 1;
  color: var(--text-muted);
  font-size: 0.90625rem;
  line-height: 1.55;
}

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.card-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--bg-deep);
  background: linear-gradient(180deg, #d4e8f8 0%, var(--accent) 45%, var(--accent-dim) 100%);
  text-decoration: none;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.card-cta:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transform: translateX(2px);
}

.card-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.arrow {
  font-size: 1.05em;
  line-height: 1;
  opacity: 0.9;
}

.state-msg {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.state-msg.error {
  color: var(--error);
}

/* —— Footer (sticky to bottom when content is short) —— */
.site-footer {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  margin-top: auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 1.75rem) 2rem;
  flex-shrink: 0;
}

.footer-primary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 520px) {
  .footer-primary {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
  }
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 28rem;
}

.footer-tagline strong {
  color: var(--text);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 212, 240, 0.3);
  padding-bottom: 0.05rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
