:root {
  color-scheme: dark;
  --bg: #090b0d;
  --surface: #101418;
  --bg-card: #12171c;
  --text: #f3f6f8;
  --text-soft: #a4adb5;
  --text-faint: #a4adb5;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.17);
  --accent: #ff6a1a;
  --accent-bright: #ff8b45;
  --accent-soft: rgba(255,106,26,.10);
  --radius: 18px;
  --max-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 80% 10%,rgba(255,106,26,.07),transparent 28rem),linear-gradient(180deg,#0b0e11,#07090b);
  font-family: Inter,"SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom,black,transparent 70%);
}
a { color: inherit; text-underline-offset: 4px; }
.shell { width: min(calc(100% - 40px),var(--max-width)); margin: 0 auto; }
header { position: relative; transform: translateZ(0); z-index: 10; padding: 20px 0; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-logo { display: block; flex: 0 0 40px; width: 40px; height: 36px; overflow: hidden; }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.9); }
main { padding: 0 0 64px; }
.hero { max-width: 800px; padding: 44px 0 48px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--accent-bright); font-family: Consolas,monospace; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; flex-shrink: 0; background: var(--accent); }
h1 { margin: 0; font-size: clamp(3.2rem,6vw,5rem); line-height: .98; letter-spacing: -.06em; font-weight: 850; }
h1 span { color: var(--text-soft); font-weight: 500; }
.hero-description { max-width: 700px; margin: 22px 0 0; color: var(--text-soft); font-size: 1.125rem; line-height: 1.65; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-title { margin: 0; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.section-code { color: var(--text-soft); font-family: Consolas,monospace; font-size: .875rem; }
.projects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.project { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,#ffffff07,#ffffff02),var(--bg-card); transition: border-color 160ms ease; }
.project:hover, .project:focus-within { border-color: var(--line-strong); }
.project-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.project-number { color: var(--accent-bright); font-family: Consolas,monospace; font-size: .875rem; letter-spacing: .03em; }
.project-icon { display: block; width: 104px; height: 104px; object-fit: contain; margin-top: 24px; border-radius: 22px; }
.project h2 { margin: 22px 0 14px; font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.project p { margin: 0; color: var(--text-soft); font-size: 1rem; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-soft); font-size: .875rem; }
.card-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; }
.card-note { color: var(--text-soft); font-size: .875rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; color: #120700; background: var(--accent); text-decoration: none; font-size: 1rem; font-weight: 750; }
.btn:hover { background: var(--accent-bright); }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: #ffffff08; border-color: var(--accent); }
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: #000; text-decoration: none; }
.store-btn:hover { border-color: #7ee2a8; }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-btn-text small { color: var(--text-soft); font-size: .875rem; }
.store-btn-text strong { font-size: 1.125rem; }
.apps, .testing, .contact, .legal { margin-top: 64px; }
.testing, .contact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.testing h2, .contact h2 { margin: 0 0 14px; font-size: clamp(1.75rem,3vw,2.5rem); letter-spacing: -.04em; line-height: 1.2; }
.testing p, .contact p { margin: 0; color: var(--text-soft); }
.testing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.testing-steps { display: grid; gap: 16px; margin: 0; padding-left: 24px; color: var(--text-soft); }
.testing-steps li { padding-left: 6px; }
.testing-steps li::marker { color: var(--accent-bright); font-weight: 700; }
.instagram-note h3 { margin: 0 0 14px; font-size: 1.5rem; letter-spacing: -.025em; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--accent-bright); overflow-wrap: anywhere; }
.legal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); }
.legal-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 12px; border-bottom: 1px solid var(--line); color: var(--text-soft); text-decoration: none; }
.legal-link:hover { color: var(--text); background: #ffffff05; }
footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 16px; font-size: clamp(1.8rem,4vw,3.3rem); line-height: 1; font-weight: 850; letter-spacing: -.055em; }
.footer-logo { display: block; width: 64px; height: 64px; object-fit: contain; }
.footer-meta { color: var(--text-soft); font-size: .875rem; line-height: 1.8; text-align: right; }
@media(max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  header { padding: 14px 0; }
  .hero { padding: 28px 0 32px; }
  h1 { font-size: clamp(2.5rem,11vw,3.6rem); }
  .hero-description { margin-top: 16px; font-size: 1rem; }
  .projects, .testing, .contact, .legal-grid { grid-template-columns: minmax(0,1fr); }
  .project { padding: 24px; }
  .project-icon { width: 88px; height: 88px; border-radius: 19px; }
  .section-code { display: none; }
  .apps, .testing, .contact, .legal { margin-top: 44px; }
  .testing, .contact { gap: 28px; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
}
