:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --fg: #f4f4f0;
  --fg-soft: #a8a8a3;
  --fg-mute: #5a5a55;
  --accent: #d4ff3a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --display: 'Anton', 'Bebas Neue', 'Impact', sans-serif;
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--bg); }

/* ===== Cursor blob ===== */
.cursor-blob {
  position: fixed;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, opacity 0.2s ease;
  top: 0;
  left: 0;
  will-change: transform;
}
.cursor-blob.expand {
  width: 80px;
  height: 80px;
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor-blob { display: none; }
}

/* ===== Grain ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 36px;
  mix-blend-mode: difference;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.05em;
}
.logo-mark {
  color: var(--accent);
  font-size: 26px;
  animation: spin 8s linear infinite;
  display: inline-block;
}
.logo-mark-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-block;
  transition: transform 0.4s ease;
}
.logo:hover .logo-mark-img { transform: rotate(8deg) scale(1.05); }
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.status-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding: 18px 20px; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding: 140px 36px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.hero-meta {
  display: flex;
  gap: 60px;
  font-family: var(--mono);
  font-size: 12px;
  flex-wrap: wrap;
}
.meta-block { display: flex; flex-direction: column; gap: 4px; }
.meta-label { color: var(--fg-mute); letter-spacing: 0.08em; }
.meta-value { color: var(--fg); letter-spacing: 0.04em; }

.hero-title {
  font-family: var(--display);
  font-size: clamp(4rem, 14vw, 14rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 60px 0;
  font-weight: 400;
}
.hero-title .line {
  display: block;
}
.hero-title em {
  font-family: 'Space Grotesk', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.55em;
  color: var(--accent);
  letter-spacing: -0.02em;
  vertical-align: middle;
}
.outline {
  -webkit-text-stroke: 2px var(--fg);
  color: transparent;
  display: inline-block;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-desc {
  max-width: 460px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--fg-soft);
  line-height: 1.5;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-soft);
}
.scroll-cue .arrow {
  display: inline-block;
  animation: bounce 1.8s ease-in-out infinite;
  font-size: 18px;
  color: var(--accent);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Marquee ===== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.03em;
}
.marquee-track span:not(.dot-sep) { color: var(--fg); }
.dot-sep { color: var(--accent); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
  padding: clamp(80px, 12vw, 160px) 36px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.section-head {
  margin-bottom: 80px;
}
.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}
.section h2 {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.dot-end { color: var(--accent); }

/* ===== Work / Projects ===== */
.work { position: relative; }
.projects {
  border-top: 1px solid var(--line);
}
.project {
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr 100px 60px;
  align-items: center;
  padding: 36px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  position: relative;
  transition: background 0.3s ease, padding-left 0.3s ease;
  gap: 20px;
}
.project:hover {
  background: var(--accent);
  color: var(--bg);
  padding-left: 32px;
}
.project:hover .project-tags span { border-color: var(--bg); color: var(--bg); }
.project-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-mute);
  font-weight: 500;
}
.project:hover .project-num { color: var(--bg); }
.project-name {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.01em;
}
.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.project-tags span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.project-year {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-mute);
  text-align: right;
}
.project:hover .project-year { color: var(--bg); }
.project-arrow {
  font-size: 28px;
  text-align: right;
  transition: transform 0.3s ease;
}
.project:hover .project-arrow { transform: translateX(8px) rotate(-45deg); }

@media (max-width: 900px) {
  .project { grid-template-columns: 50px 1fr 60px; gap: 16px; padding: 24px 8px; }
  .project-tags, .project-year { display: none; }
  .project:hover { padding-left: 16px; }
}

/* ===== Project preview (hover image) ===== */
.project-preview {
  position: fixed;
  width: 380px;
  height: 280px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}
.project-preview.show { opacity: 1; }
.preview-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow: hidden;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
  padding: 28px;
}
.preview-card img {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.preview-card.active { opacity: 1; }
.preview-quickclean { background: linear-gradient(135deg, #00b4d8, #0077b6); }
.preview-moneylog { background: linear-gradient(135deg, #34c759, #00a86b); }
.preview-sysusage { background: linear-gradient(135deg, #5e5ce6, #2c2c8e); }
.preview-passsafe { background: linear-gradient(135deg, #1d1d1f, #3a3a3c); }
.preview-copyclip { background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.preview-appshots { background: linear-gradient(135deg, #af52de, #ff2d55); }
.preview-sendman { background: linear-gradient(135deg, #ff6b35, #f72585); }

@media (max-width: 900px) {
  .project-preview { display: none; }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.big-p {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  margin-bottom: 28px;
  color: var(--fg-soft);
}
.big-p:last-of-type { margin-bottom: 60px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Process ===== */
.process-list {
  display: flex;
  flex-direction: column;
}
.process-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 60px;
  padding: 50px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 12px;
}
.process-content h3 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.process-content p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--fg-soft);
  max-width: 700px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .process-item { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
}

/* ===== Contact ===== */
.contact { text-align: left; }
.contact-title {
  font-family: var(--display);
  font-size: clamp(3.4rem, 12vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 30px 0 60px;
  font-weight: 400;
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.01em;
  transition: color 0.3s ease, padding 0.3s ease;
  margin-bottom: 80px;
}
.email-link:hover {
  color: var(--accent);
  padding-left: 20px;
}
.arrow-big { font-size: 1.4em; transition: transform 0.3s ease; }
.email-link:hover .arrow-big { transform: translateX(10px) rotate(-45deg); color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.social-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.social-list a {
  font-family: var(--mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 0;
  position: relative;
  display: inline-block;
  width: fit-content;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.social-list a:hover { color: var(--accent); padding-left: 14px; }
.social-list a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--accent);
}
.social-list a:hover::before { opacity: 1; }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Footer ===== */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 36px;
  position: relative;
  z-index: 2;
  background: var(--bg-2);
}
.foot-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-soft);
  gap: 20px;
  flex-wrap: wrap;
}
.foot-mid {
  display: flex;
  gap: 28px;
  align-items: center;
}
.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.foot-top {
  transition: color 0.2s ease;
}
.foot-top:hover { color: var(--accent); }
