* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-secondary: #0d111a;
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #e5e9f2;
  --muted: #9aa4b2;
  --accent: #39f0d1;
  --accent-2: #5b7cfa;
  --accent-3: #f8b4ff;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0e1425 0%, #05070b 55%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.01em;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  background: rgba(5, 7, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand-mark {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  color: var(--accent);
}

.brand-subtitle {
  font-size: 1rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

main {
  position: relative;
  z-index: 2;
  padding: 48px 64px 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(20, 26, 40, 0.8), rgba(7, 10, 16, 0.4));
  border: 1px solid var(--stroke);
  box-shadow: 0 24px 80px rgba(9, 14, 24, 0.6);
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

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

.primary,
.ghost,
.launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 22px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #020409;
  box-shadow: 0 10px 24px rgba(57, 240, 209, 0.25);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(57, 240, 209, 0.4);
}

.ghost {
  border-color: var(--stroke);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-metric {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(9, 12, 20, 0.7);
}

.hero-metric .label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-metric .value {
  font-size: 1.5rem;
  font-weight: 600;
}

.section-header {
  margin-top: 64px;
  margin-bottom: 24px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.app-tile {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(8, 10, 16, 0.8);
  overflow: hidden;
  min-height: 220px;
  transition: transform 0.3s ease, border 0.3s ease;
}

.app-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 240, 209, 0.4);
}

.tile-core {
  position: relative;
  z-index: 2;
}

.tile-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(0.8);
  transform: scale(1.02);
  transition: opacity 0.3s ease;
}

.app-tile:hover .tile-image {
  opacity: 0.5;
}

.tile-tag {
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 16px;
}

.tile-url {
  color: var(--muted);
  font-size: 0.95rem;
}

.hovercard {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(140deg, rgba(13, 18, 30, 0.96), rgba(7, 9, 14, 0.96));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.app-tile:hover .hovercard,
.app-tile:focus-within .hovercard {
  opacity: 1;
  transform: translateY(0);
}

.hovercard h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.hovercard p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px;
}

.launch {
  align-self: flex-start;
  background: rgba(57, 240, 209, 0.15);
  color: var(--accent);
  border-color: rgba(57, 240, 209, 0.5);
}

.launch:hover {
  background: rgba(57, 240, 209, 0.3);
}

.submit-section {
  margin-top: 72px;
  padding: 32px;
  border-radius: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke);
}

.submit-form {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
textarea {
  background: rgba(6, 8, 13, 0.9);
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: "Space Grotesk", sans-serif;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(91, 124, 250, 0.25);
}

.form-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.site-footer {
  padding: 48px 64px 60px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--stroke);
  background: rgba(5, 7, 11, 0.9);
}

.footnote {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(3, 5, 8, 0.7);
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  width: min(920px, 100%);
  background: rgba(9, 12, 20, 0.98);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.icon-button {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 24px;
}

.modal-preview {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.preview-tile {
  width: 100%;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(7, 9, 14, 0.95);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.preview-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
}

.preview-core {
  position: relative;
  z-index: 2;
}

.confirm-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 20px 28px;
  }

  main,
  .site-footer {
    padding: 32px 28px 48px;
  }

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

@media (max-width: 600px) {
  .site-nav {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
