:root {
  --ink: #071821;
  --ink-soft: #123040;
  --paper: #f2efe6;
  --paper-deep: #e4dfd2;
  --sky: #0284c7;
  --sky-deep: #0369a1;
  --foam: #e0f2fe;
  --amber: #d97706;
  --line: rgba(7, 24, 33, 0.11);
  --muted: rgba(7, 24, 33, 0.64);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ui-border: #e5e5e5;
  --ui-muted: #737373;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #f6f3eb 0%, #ebe4d6 40%, #d9ebea 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-a {
  width: 48vw;
  height: 48vw;
  max-width: 620px;
  max-height: 620px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.32), transparent 70%);
}

.orb-b {
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  top: 8%;
  right: -10%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.26), transparent 70%);
  animation-delay: -4s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(7, 24, 33, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 24, 33, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

a { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), #115e59);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
}

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

.top-cta {
  color: #f6f3eb !important;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
}

.top-cta:hover {
  background: var(--ink-soft) !important;
  color: #f6f3eb !important;
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 0.78fr 1.32fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 4.5rem);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, var(--ink) 20%, var(--sky-deep) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.95rem, 3.8vw, 3.15rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.05rem;
}

.lede {
  margin: 0 0 1.7rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.35rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--ink);
  color: #f6f3eb;
  border: 1px solid var(--ink);
  box-shadow: 0 14px 28px rgba(7, 24, 33, 0.22);
}

.btn-primary:hover {
  background: var(--ink-soft);
  box-shadow: 0 18px 34px rgba(7, 24, 33, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-color: color-mix(in srgb, var(--ink) 36%, transparent);
}

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust li:not(:last-child)::after {
  content: "·";
  margin-left: 0.85rem;
  opacity: 0.45;
}

/* ── Real UI mock ── */
.hero-visual {
  position: relative;
  min-height: 540px;
}

.glow-ring {
  position: absolute;
  inset: 6% -3% -2% -3%;
  background: radial-gradient(ellipse at center, rgba(2, 132, 199, 0.22), transparent 65%);
  filter: blur(8px);
  animation: pulse-glow 5s ease-in-out infinite;
}

.product-plane {
  position: absolute;
  inset: 0 0 2.4rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(7, 24, 33, 0.1);
  box-shadow:
    0 28px 56px rgba(7, 24, 33, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  display: flex;
  flex-direction: column;
  animation: float-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transform-origin: 70% 50%;
}

.ui-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ui-border);
  background: #fff;
  flex-shrink: 0;
}

.ui-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #171717;
  letter-spacing: -0.02em;
}

.ui-meta {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--ui-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.ui-meta .dot { margin: 0 0.15rem; opacity: 0.5; }

.ui-meta kbd,
.section kbd,
.trust kbd,
.feature-list kbd,
.steps kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72em;
  border: 1px solid #d4d4d4;
  background: #fafafa;
  border-radius: 4px;
  padding: 0.05rem 0.28rem;
}

.ui-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  max-width: 58%;
}

.ui-btn {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.32rem 0.48rem;
  border-radius: 7px;
  border: 1px solid var(--ui-border);
  background: #fff;
  color: #404040;
  white-space: nowrap;
}

.ui-btn.primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

.ui-btn.dark {
  background: #171717;
  border-color: #171717;
  color: #fff;
}

.ui-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 0;
  flex: 1;
  background: #fafafa;
}

.ui-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ui-border);
  background: #fafafa;
  min-height: 0;
}

.ui-search {
  margin: 0.7rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  background: #fff;
  font-size: 0.72rem;
  color: #a3a3a3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ui-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ui-border);
}

.ui-tab {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.55rem 0.3rem;
  color: var(--ui-muted);
}

.ui-tab.on {
  color: #0284c7;
  box-shadow: inset 0 -2px 0 #0284c7;
}

.ui-tab em {
  font-style: normal;
  display: inline-flex;
  min-width: 1rem;
  padding: 0.05rem 0.3rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.62rem;
  font-weight: 800;
}

.ui-count {
  padding: 0.45rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ui-muted);
}

.ui-nav {
  flex: 1;
  overflow: hidden;
  padding: 0 0.45rem 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ui-nav-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.7rem;
  line-height: 1.3;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  color: #404040;
}

.ui-nav-item b {
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  color: #a3a3a3;
  margin-top: 0.08rem;
}

.ui-nav-item.active {
  background: #e0f2fe;
  color: #0c4a6e;
  font-weight: 600;
}

.ui-side-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.55rem;
  border-top: 1px solid var(--ui-border);
}

.ui-side-foot span {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.4rem;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: #fff;
  color: #404040;
}

.ui-main {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
  background: #f5f5f5;
}

.ui-turn {
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
}

.ui-turn.active {
  border-color: rgba(2, 132, 199, 0.45);
  background: #f0f9ff;
}

.ui-turn-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.ui-turn-left {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.ui-num {
  font-family: ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #737373;
  background: #f5f5f5;
  border-radius: 5px;
  padding: 0.18rem 0.35rem;
  flex-shrink: 0;
}

.booked {
  font-size: 0.58rem;
  font-weight: 700;
  color: #d97706;
  background: #fffbeb;
  border-radius: 5px;
  padding: 0.18rem 0.35rem;
  flex-shrink: 0;
}

.ui-turn-text {
  font-size: 0.74rem;
  font-weight: 500;
  color: #171717;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ui-turn-actions {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: #a3a3a3;
}

.ui-turn-actions .sky { color: #0284c7; }
.ui-turn-actions .star-on { color: #f59e0b; font-size: 0.8rem; }
.ui-turn-actions .star-off { color: #d4d4d4; font-size: 0.8rem; }

.ui-turn-actions .go {
  background: #e0f2fe;
  color: #0284c7;
  padding: 0.22rem 0.4rem;
  border-radius: 6px;
  font-weight: 700;
}

.fab-mock {
  position: absolute;
  right: 1rem;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(246, 243, 235, 0.96);
  border: 1px solid rgba(7, 24, 33, 0.1);
  box-shadow: 0 14px 28px rgba(7, 24, 33, 0.16);
  font-size: 0.88rem;
  font-weight: 600;
  animation: bob 3.5s ease-in-out infinite;
  z-index: 2;
}

.fab-badge {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0284c7;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

/* ── Sections ── */
.section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1.08rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  gap: 0.25rem;
  padding: 1.2rem 0 1.2rem 3.3rem;
  position: relative;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--ink), var(--sky-deep));
  color: #f6f3eb;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.steps strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.steps span { color: var(--muted); }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.feature-list li:last-child { border-bottom: 1px solid var(--line); }

.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.privacy {
  max-width: none;
  width: 100%;
  margin: 1rem 0 0;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(2, 132, 199, 0.32), transparent 50%),
    linear-gradient(125deg, #071821 0%, #0f3a4a 55%, #115e59 100%);
  color: #f3f0e8;
}

.privacy h2,
.privacy .section-lede {
  color: #f3f0e8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.privacy .section-lede {
  opacity: 0.82;
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

.privacy-links {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.78;
  font-size: 0.95rem;
}

.privacy-links a { color: #a5f3fc; }

.developer {
  max-width: 800px;
}

.dev-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}

.dev-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: #f6f3eb;
  background: linear-gradient(145deg, var(--ink), var(--sky-deep));
}

.dev-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dev-role {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.dev-bio {
  margin: 0 0 0.9rem;
  color: var(--muted);
  max-width: 48ch;
  font-size: 0.98rem;
}

.dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.dev-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dev-links a:hover {
  background: #fff;
  border-color: rgba(7, 24, 33, 0.22);
  transform: translateY(-1px);
}

.closing {
  text-align: left;
  padding-bottom: 5rem;
}

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 0.15rem;
}

.footer-sub {
  opacity: 0.85;
}

.footer-dev a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(7, 24, 33, 0.2);
}

.footer-dev a:hover {
  border-bottom-color: var(--sky-deep);
  color: var(--sky-deep);
}

html:not(.ready) .hero-copy,
html:not(.ready) .product-plane {
  opacity: 0;
}

.hero-copy {
  animation: fade-up 0.75s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) translateY(36px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) translateY(0) scale(1);
  }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.06); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 480px;
    order: -1;
  }

  .product-plane {
    transform: none;
  }

  .top-nav a:not(.top-cta) {
    display: none;
  }

  .ui-header-actions {
    max-width: 100%;
  }
}

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

  .ui-sidebar {
    display: none;
  }

  .ui-header {
    flex-direction: column;
  }

  .hero-visual {
    min-height: 400px;
  }

  .ui-turn-actions span:not(.go):not(.star-on):not(.star-off):not(.sky) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
