/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-page: #020617;
  --bg-elevated: #020617;
  --bg-card: #020617;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-alt: #a855f7;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --pill-bg: rgba(15, 23, 42, 0.9);
  --radius-lg: 18px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --shadow-card: 0 18px 38px rgba(15, 23, 42, 0.9);
  --blur-bg: 22px;
  --space: 24px;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 52%, #000 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Top navigation */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.95);
  position: sticky;
  top: 12px;
  z-index: 10;
  backdrop-filter: blur(20px);
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, #6ee7b7, #22d3ee 40%, #0ea5e9 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b1120;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.16s ease-out;
}

.nav-links a:hover {
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

/* Layout sections */
main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(129, 140, 248, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.99));
  box-shadow: var(--shadow-soft);
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 2.4vw + 1.8rem, 2.7rem);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 34rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--pill-bg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pill-soft {
  border-style: dashed;
}

/* Hero orbit visualization */
.hero-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-orbit {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  position: relative;
  background: radial-gradient(circle, rgba(15, 23, 42, 1) 0, rgba(15, 23, 42, 0.9) 60%, transparent 100%);
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.9);
}

.orbit-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #22d3ee, #0ea5e9 60%, #22c55e 110%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0b1120;
  box-shadow: 0 0 38px rgba(56, 189, 248, 0.85);
}

.orbit-node {
  position: absolute;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.orbit-node-1 {
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-node-2 {
  right: -4%;
  top: 44%;
}

.orbit-node-3 {
  bottom: 4%;
  left: 58%;
}

.orbit-node-4 {
  left: -4%;
  top: 48%;
}

/* Sections */
.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.section-head p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Apps grid */
.apps-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.app-card {
  border-radius: 20px;
  padding: 16px 16px 18px;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.app-label {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.6);
}

.app-label-alt {
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent-alt);
  border-color: rgba(168, 85, 247, 0.7);
}

.app-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.app-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 10px;
  font-size: 0.8rem;
}

.app-meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-meta dt {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.9);
}

.app-meta dd {
  color: var(--text-main);
}

.app-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 6px;
}

.status-live {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.85);
}

.status-beta {
  background: #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.85);
}

.status-planned {
  background: #6b7280;
}

.primary-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.98));
  color: var(--text-main);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease-out;
}

.primary-btn:hover {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

/* Simple text sections */
.about,
.contact {
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 0 0, rgba(30, 64, 175, 0.24), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(8, 47, 73, 0.3), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.about code,
.contact code {
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.85);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.contact-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-card {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.96);
  font-size: 0.9rem;
}

.contact-card h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-dot {
  opacity: 0.6;
}

/* Responsiveness */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 640px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-shell {
    padding-inline: 16px;
  }
}
