:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --text: #0e0e0e;
  --text-soft: #404040;
  --line: #d8d8d8;
  --black: #0a0a0a;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top right, #efefef 0, #ffffff 45%);
  color: var(--text);
  line-height: 1.55;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--black);
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
}

.brand-text {
  letter-spacing: 0.2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}

.hero {
  padding: 4.5rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: center;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}

.lead {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.78rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn-light {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--black);
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: var(--shadow);
}

.card-topline {
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    #111 0 14px,
    #fff 14px 22px
  );
}

.card-content {
  padding: 1.2rem 1.2rem 1.1rem;
}

.card-content h2 {
  margin: 0;
  font-size: 1.3rem;
}

.card-content ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  color: var(--text-soft);
}

.card-content li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.card-content i {
  color: var(--black);
}

.portal-section {
  padding: 1.2rem 0 3.5rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.section-head p {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
}

.embed-wrap {
  position: relative;
  border: 1px solid #c9c9c9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  min-height: clamp(420px, 70vh, 860px);
  box-shadow: var(--shadow);
}

#appFrame {
  width: 100%;
  height: clamp(420px, 70vh, 860px);
  border: 0;
  background: var(--white);
}

.iframe-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 500;
  color: #171717;
  background: linear-gradient(120deg, #fbfbfb, #f0f0f0);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.iframe-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.fallback-box {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px dashed #949494;
  border-radius: var(--radius-sm);
  background: #fafafa;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.fallback-box p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #202020;
}

.about {
  padding: 0.4rem 0 3.3rem;
}

.about-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  background: #fcfcfc;
}

.about-grid h2 {
  margin: 0 0 0.4rem;
}

.about-grid p {
  margin: 0;
  color: var(--text-soft);
}

.about-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-content: start;
}

.about-tags span {
  border: 1px solid #1b1b1b;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--white);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  color: var(--text-soft);
}

.site-footer p {
  margin: 0;
  font-size: 0.93rem;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 1.25rem;
    left: 1.25rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    gap: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.open {
    max-height: 240px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 3.4rem;
  }

  .fallback-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
