/* Base tokens lifted from the app (frame/src/styles/tokens.css); the warm
   rust accent below is new to the site — the app itself carries no hue, but
   a marketing page needs one place that isn't quiet, and rust-orange is
   literally the ecosystem's own color. */
:root {
  --canvas: #1a1a1d;
  --chrome: #1f1f22;
  --surface: #26262a;
  --raised: #2c2c30;
  --float: #3d3d44;
  --text: #f4f4f6;
  --muted: rgb(244 244 246 / 0.68);
  --faint: rgb(244 244 246 / 0.44);
  --hairline: rgb(244 244 246 / 0.1);

  --rust: #ff7a45;
  --rust-dim: #c9602f;

  --radius-control: 14px;
  --radius-card: 18px;
  --radius-panel: 22px;

  --font-sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI Variable Text", "Segoe UI", "Noto Sans", Cantarell, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px clamp(20px, 5vw, 64px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark { border-radius: 6px; display: block; }

.nav-links {
  display: flex;
  gap: 24px;
  margin-right: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }

.nav-source {
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 7px 14px;
  border-radius: var(--radius-control);
}
.nav-source:hover { color: var(--text); border-color: rgb(244 244 246 / 0.2); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 0;
  overflow: hidden;
}

/* The app's own new-tab backdrop, lifted straight from
   frame/src/shared/sky/assets — the realest "our theme" the site has. */
.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(320px, 52vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.8);
}

.hero-banner-grain {
  position: absolute;
  inset: 0;
  background: url("assets/texture-tile.png");
  background-size: 360px;
  opacity: 0.16;
  mix-blend-mode: overlay;
}

.hero-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(10 10 11 / 0.35) 0%, rgb(10 10 11 / 0.15) 40%, var(--canvas) 100%),
    radial-gradient(70% 70% at 50% 45%, transparent 40%, rgb(10 10 11 / 0.55) 100%);
}

.hero-banner-word {
  position: relative;
  width: min(480px, 70vw);
  filter: drop-shadow(0 20px 50px rgb(0 0 0 / 0.6));
}

.hero-sub {
  position: relative;
  margin-top: -56px;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  z-index: 1;
}

.hero-actions {
  position: relative;
  display: flex;
  gap: 12px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 650;
  padding: 13px 24px;
  border-radius: 999px;
}

.btn-solid { background: var(--rust); color: #1a0e08; }
.btn-solid:hover { background: #ff8a5c; }

.btn-line { border: 1px solid var(--hairline); color: var(--text); }
.btn-line:hover { border-color: rgb(244 244 246 / 0.24); background: rgb(244 244 246 / 0.03); }

/* ---------- hero visual: a faithful miniature of the real chrome ---------- */
.hero-visual {
  position: relative;
  margin-top: clamp(40px, 7vw, 72px);
  width: 100%;
  display: flex;
  justify-content: center;
}

.chrome-frame {
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-panel);
  background: var(--chrome);
  border: 1px solid var(--hairline);
  box-shadow: 0 60px 100px -40px rgb(0 0 0 / 0.7);
  overflow: hidden;
}

.chrome-dots {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
}
.chrome-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--raised);
}

.chrome-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  height: 340px;
  margin: 0 10px 10px;
  padding: 14px;
  border-radius: var(--radius-card);
  background: var(--canvas);
  overflow: hidden;
}

.shot {
  display: block;
  border-radius: 11px;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 30px -14px rgb(0 0 0 / 0.5);
}

.shot-sidebar {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: top;
}

.shot-settings {
  flex: 1;
  height: auto;
  align-self: center;
  width: 100%;
  object-fit: contain;
}

/* ---------- features ---------- */
.features {
  position: relative;
  max-width: 1180px;
  margin: clamp(60px, 10vw, 110px) auto 0;
  padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--chrome);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  padding: clamp(26px, 3vw, 32px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: linear-gradient(145deg, rgb(255 122 69 / 0.22), rgb(255 122 69 / 0.05));
  border: 1px solid rgb(255 122 69 / 0.2);
}

.feature-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 8px;
}

.feature h2 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- projects ---------- */
.projects {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) clamp(70px, 10vw, 120px);
}

.projects h2 {
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.015em;
}

.projects-lede {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.project-list {
  margin-top: 30px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  overflow: hidden;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--chrome);
}
.project-row + .project-row { border-top: 1px solid var(--hairline); }
.project-row.project-row-pending { opacity: 0.55; }
a.project-row:hover { background: var(--surface); }

.project-row-icon { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.project-row-icon-empty {
  background: repeating-linear-gradient(45deg, rgb(244 244 246 / 0.05) 0 6px, transparent 6px 12px);
  border: 1px dashed var(--hairline);
}

.project-row-copy { flex: 1; min-width: 0; }
.project-row-copy h3 { font-size: 15px; margin-bottom: 3px; }
.project-row-copy p { font-size: 13.5px; color: var(--faint); }

.project-row-status {
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--raised);
  flex-shrink: 0;
}
.status-live { color: #1a0e08; background: var(--rust); }

/* ---------- about ---------- */
.about {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px) clamp(80px, 11vw, 140px);
}

.about-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  background: var(--chrome);
  overflow: hidden;
}

.about-banner {
  height: 120px;
  background:
    radial-gradient(60% 140% at 15% 0%, rgb(255 122 69 / 0.35), transparent 70%),
    linear-gradient(135deg, var(--rust-dim), var(--surface) 65%);
}

.about-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 clamp(28px, 4vw, 44px);
  margin-top: -34px;
}

.about-avatar {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  flex-shrink: 0;
  background: var(--chrome);
  border: 4px solid var(--chrome);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.6);
  object-fit: cover;
}

.about-head > div { padding-bottom: 6px; }

.about-bio,
.lang-grid { margin-left: clamp(28px, 4vw, 44px); margin-right: clamp(28px, 4vw, 44px); }
.about-card { padding-bottom: clamp(28px, 4vw, 44px); }

.about-head h2 { font-size: 21px; letter-spacing: -0.01em; }
.about-handle { margin-top: 3px; font-size: 13.5px; color: var(--rust); }

.about-bio {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.lang-grid {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}

.lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px 12px;
  border-radius: var(--radius-card);
  background: rgb(244 244 246 / 0.03);
  border: 1px solid var(--hairline);
}

.lang img { width: 26px; height: 26px; }
.lang span { font-size: 11.5px; color: var(--faint); }

.lang-featured {
  background: linear-gradient(160deg, rgb(255 122 69 / 0.16), rgb(255 122 69 / 0.04));
  border-color: rgb(255 122 69 / 0.3);
}
.lang-featured span { color: var(--rust); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 64px) 40px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--faint);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .chrome-frame { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
