:root {
  --paper: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --midnight: #0b192c;
  --midnight-elevated: #132640;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --cobalt: #1e40af;
  --cobalt-soft: #eff6ff;
  --emerald: #047857;
  --emerald-soft: #ecfdf5;
  --container-max: 1120px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

/* Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--midnight);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--midnight);
  color: var(--surface);
  display: inline-grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--midnight);
  color: var(--surface);
}

.btn-primary:hover {
  background-color: var(--cobalt);
}

.btn-outline {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  background-color: var(--paper);
}

.btn-play {
  background-color: var(--midnight);
  color: var(--surface);
  border-color: var(--midnight);
}

.btn-play:hover {
  background-color: var(--cobalt);
  border-color: var(--cobalt);
}

.play-logo {
  flex-shrink: 0;
}

.btn-light {
  background-color: var(--surface);
  color: var(--midnight);
}

.btn-light:hover {
  background-color: var(--cobalt-soft);
}

.btn-ghost-dark {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost-dark:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.38);
}

/* Hero Section */
.hero {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 5.25rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 3.75rem;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background-color: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.platform-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
}

.hero h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.032em;
  color: var(--midnight);
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 2.15rem;
  font-size: 1.09375rem;
  color: var(--slate);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-note {
  margin: 1.15rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Studio Product Showcase */
.showcase-wrap {
  display: flex;
  justify-content: flex-end;
}

.showcase-frame {
  width: 100%;
  max-width: 410px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 0.85rem;
  box-shadow: 0 20px 45px -20px rgba(11, 25, 44, 0.14),
    0 2px 6px rgba(11, 25, 44, 0.04);
}

.showcase-screen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}

.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.showcase-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.featured-app-preview {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.featured-app-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.featured-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.featured-app-head strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--midnight);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.featured-app-copy span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--slate);
}

.catalog-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.catalog-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem;
  background: var(--surface);
}

.tile-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.55rem;
}

.catalog-tile strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 0.15rem;
}

.catalog-tile span {
  display: block;
  font-size: 0.78125rem;
  line-height: 1.4;
  color: var(--muted);
}

.publisher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  background: var(--midnight);
  color: var(--surface);
  font-size: 0.75rem;
}

.publisher-bar span:last-child {
  color: #93c5fd;
  font-weight: 600;
  white-space: nowrap;
}

/* Standards Strip */
.standards-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

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

.standard-item {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line);
}

.standard-item:first-child {
  padding-left: 0;
}

.standard-item:last-child {
  border-right: none;
  padding-right: 0;
}

.standard-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 0.25rem;
}

.standard-item span {
  display: block;
  font-size: 0.875rem;
  color: var(--slate);
}

/* Applications Catalog Section */
.apps-section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.apps-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.apps-heading-group h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--midnight);
}

.apps-heading-group p {
  margin: 0;
  color: var(--slate);
  max-width: 52ch;
}

.apps-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  appearance: none;
  background: var(--paper);
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.95rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.filter-btn.is-active {
  background: var(--midnight);
  color: var(--surface);
  border-color: var(--midnight);
}

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

.app-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: border-color 0.15s ease;
}

.app-card:hover {
  border-color: var(--line-strong);
}

.app-card-main {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  min-width: 0;
}

.app-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.app-content {
  min-width: 0;
}

.app-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.app-title-row h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--midnight);
}

.app-category-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cobalt);
  background: var(--cobalt-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.app-tagline {
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.app-description {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate);
  max-width: 64ch;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.apps-empty {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 2.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.apps-empty p {
  margin: 0;
  color: var(--slate);
}

/* Studio Approach */
.approach {
  padding: 5rem 0;
  background: var(--paper);
}

.approach-header {
  margin-bottom: 3rem;
  max-width: 58ch;
}

.approach-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 2.8vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--midnight);
}

.approach-header p {
  margin: 0;
  color: var(--slate);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}

.approach-cell {
  padding: 2rem;
}

.approach-cell + .approach-cell {
  border-left: 1px solid var(--line);
}

.approach-cell h3 {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--midnight);
}

.approach-cell p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate);
}

/* Contact Section */
.contact-section {
  padding: 1rem 0 5.5rem;
  background: var(--paper);
}

.contact-panel {
  background: var(--midnight);
  color: var(--surface);
  border-radius: 14px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 3rem;
}

.contact-panel h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.contact-panel p {
  margin: 0;
  color: #cbd5e1;
  max-width: 48ch;
}

.contact-direct {
  background: var(--midnight-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-label {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
}

.contact-address {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--surface);
  text-decoration: none;
  word-break: break-all;
}

.contact-address:hover {
  text-decoration: underline;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-meta a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
}

.footer-meta a:hover {
  color: var(--midnight);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .showcase-wrap {
    justify-content: flex-start;
  }

  .showcase-frame {
    max-width: 440px;
  }

  .app-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .app-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .standard-item {
    padding: 1.35rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .standard-item:nth-child(2n) {
    border-right: none;
  }

  .standard-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

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

  .approach-cell + .approach-cell {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .apps-section,
  .approach {
    padding: 3.5rem 0;
  }

  .app-card {
    padding: 1.35rem;
  }

  .app-card-main {
    flex-direction: column;
    gap: 1rem;
  }

  .catalog-tiles {
    grid-template-columns: 1fr;
  }

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

  .standard-item {
    padding: 1.15rem 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .standard-item:last-child {
    border-bottom: none;
  }

  .contact-panel {
    padding: 2rem 1.5rem;
  }
}
