:root {
  --bg: #07090d;
  --bg-elevated: #0e1218;
  --surface: #141a24;
  --surface-hover: #1a2230;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f0f3f8;
  --text-muted: #9aa4b2;
  --accent: #3d8bfd;
  --accent-dim: rgba(61, 139, 253, 0.15);
  --accent-glow: rgba(61, 139, 253, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --space: clamp(1rem, 4vw, 2rem);
  --container: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(61, 139, 253, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120, 80, 255, 0.06), transparent);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7eb6ff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.container {
  width: min(100% - var(--space) * 2, var(--container));
  margin-inline: auto;
}

.container.narrow {
  max-width: 720px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  border: 1px solid var(--border);
}

.logo-text {
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(61, 139, 253, 0.35);
  color: #b8d7ff !important;
}

.nav-cta:hover {
  background: rgba(61, 139, 253, 0.25);
  color: var(--text) !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(7, 9, 13, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--space) 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: var(--surface);
  }
}

.hero {
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: #c5d7f0;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #041018 !important;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  background: #5ba3ff;
  color: #041018 !important;
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text) !important;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--surface-hover);
}

.hero-panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-profile {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(61, 139, 253, 0.03));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 62ch;
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.timeline-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.timeline-meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline-item p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.section-apps {
  border-top: 1px solid var(--border);
}

.section-ios {
  background: rgba(255, 255, 255, 0.02);
}

.app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.app-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.app-card-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #12161d;
  border-bottom: 1px solid var(--border);
}

.app-card-icon-ios {
  object-fit: cover;
}

.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
}

.app-card:hover {
  border-color: rgba(61, 139, 253, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.app-meta,
.app-tag {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.app-tag {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 600;
}

.rating {
  color: #e8c170;
}

.badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-dim);
  color: #9ec8ff;
  border: 1px solid rgba(61, 139, 253, 0.3);
}

.badge-hit {
  background: rgba(232, 193, 112, 0.12);
  color: #e8c170;
  border-color: rgba(232, 193, 112, 0.25);
}

.app-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent) !important;
}

.app-link:hover {
  color: #9ec8ff !important;
}

.app-card-compact .app-card-body {
  padding: 1rem 1.15rem 1.2rem;
}

.app-card-compact .app-title {
  font-size: 0.98rem;
}

.section-contact {
  border-top: 1px solid var(--border);
}

.contact-card {
  text-align: center;
}

.contact-card .section-title {
  margin-bottom: 0.75rem;
}

.contact-card .section-intro {
  margin-bottom: 0;
}

.contact-actions {
  margin: 1.35rem 0 0;
}

.contact-actions .btn {
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-elevated);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
