/* ---------- Design tokens ---------- */
/* Re-skin by editing these variables. */
:root {
  --bg: #0a0a0b;
  --bg-elev: #111114;
  --bg-card: #121216;
  --border: #1f1f24;
  --border-strong: #2a2a31;
  --text: #f5f5f7;
  --text-muted: #9a9aa5;
  --text-dim: #6a6a74;
  --accent: #c6ff3d;
  --accent-ink: #0a0a0b;
  --accent-glow: rgba(198, 255, 61, 0.25);
  --radius: 14px;
  --radius-lg: 20px;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --max-w: 1180px;
  --pad-x: clamp(20px, 5vw, 56px);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(198, 255, 61, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(120, 80, 255, 0.06), transparent 60%);
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--accent); font-weight: 700; padding-right: 0.08em; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  color: var(--accent);
  font-size: 20px;
  transform: translateY(-1px);
}
.brand-name {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text) !important;
  transition: all 0.2s ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(198, 255, 61, 0.08);
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) var(--pad-x) clamp(70px, 10vw, 140px);
  text-align: left;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elev);
  margin-bottom: 32px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-muted);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-title {
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 28px;
  max-width: 18ch;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: var(--bg-elev);
}

/* Hero launch strip */
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.hero-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: border-color 0.2s ease;
}
.hero-strip-item:not(.hero-strip-muted):hover { border-color: var(--accent); }
.hero-strip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
.hero-strip-meta {
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 2px;
}
.hero-strip-sep { color: var(--border-strong); font-size: 12px; }
.hero-strip-muted { color: var(--text-dim); }

@media (max-width: 640px) {
  .hero-strip { gap: 10px 20px; font-size: 13px; }
  .hero-strip-sep { display: none; }
  .hero-strip-item { flex-basis: 100%; }
}

/* ---------- Sections ---------- */
section { position: relative; }

.section-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.section-head h2 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
  padding-right: 0;
}

/* ---------- Projects ---------- */
.projects {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}

.project-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, transparent 40%, var(--accent-glow) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.project-card:hover::before { opacity: 1; }
.project-card::after {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}
.project-card:hover::after { opacity: 0.55; }
.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.project-mockup {
  border-radius: var(--radius);
  background: #0e0e11;
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.project-mockup svg { display: block; width: 100%; height: auto; }

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.project-head h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.badge-quiet {
  color: var(--text-dim);
  border-color: var(--border);
}

.project-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.project-meta {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.project-card-ghost {
  background: transparent;
  border-style: dashed;
  opacity: 0.6;
}
.project-card-ghost:hover { opacity: 0.85; }

/* ---------- Forms ---------- */
.project-form,
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.project-form input,
.newsletter-form input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.project-form input::placeholder,
.newsletter-form input::placeholder { color: var(--text-dim); }
.project-form input:focus,
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.project-form button,
.newsletter-form button {
  padding: 11px 18px;
  background: var(--text);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.project-form button:hover,
.newsletter-form button:hover {
  background: var(--accent);
}
.project-form button:disabled,
.newsletter-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.form-msg {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  min-height: 1.2em;
  margin-top: 2px;
}
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #ff7a7a; }

/* ---------- About ---------- */
.about {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}

.about-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: 28px;
}
.about-lead {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.about-text {
  font-size: 16px;
  color: var(--text-muted);
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding: clamp(80px, 11vw, 140px) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(198, 255, 61, 0.05), transparent 70%);
}
.newsletter-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.newsletter-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}
.newsletter-mark svg { width: 100%; height: 100%; display: block; }
.newsletter-copy h3 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}
.newsletter-copy p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 44ch;
  margin: 0 auto;
}
.newsletter-form {
  width: 100%;
  max-width: 440px;
  justify-content: center;
  margin-top: 8px;
}
.newsletter-form .form-msg { text-align: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--pad-x) 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
}
.footer-brand .brand-mark { color: var(--text); }
.footer-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}
