/* ─── Design Tokens ─── */
:root {
  --bg:             #07070e;
  --surface:        rgba(255,255,255,0.04);
  --surface-hover:  rgba(255,255,255,0.07);
  --border:         rgba(255,255,255,0.08);
  --border-bright:  rgba(255,255,255,0.16);

  --blue:   #4F8EF7;
  --violet: #9B59F5;
  --cyan:   #22d3ee;
  --pink:   #f472b6;

  --text:       #e8e8f2;
  --text-muted: rgba(232,232,242,0.48);
  --text-dim:   rgba(232,232,242,0.24);

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Grid overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Ambient blobs ─── */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
}
.bl1 { width: min(500px,60vw); height: min(500px,60vw); background: radial-gradient(circle, rgba(155,89,245,.45) 0%, transparent 70%); }
.bl2 { width: min(380px,46vw); height: min(380px,46vw); background: radial-gradient(circle, rgba(79,142,247,.40)  0%, transparent 70%); }
.bl3 { width: min(440px,54vw); height: min(440px,54vw); background: radial-gradient(circle, rgba(34,211,238,.32)  0%, transparent 70%); }
.bl4 { width: min(300px,36vw); height: min(300px,36vw); background: radial-gradient(circle, rgba(244,114,182,.28) 0%, transparent 70%); }

/* ─── Layout ─── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,14,.72);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  text-decoration: none;
  background: linear-gradient(130deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .025em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 24px 90px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 18px;
  border: 1px solid rgba(79,142,247,.28);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--blue);
  background: rgba(79,142,247,.07);
  margin-bottom: 44px;
  letter-spacing: .1em;
  animation: fadeDown .6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.75)} }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: .92;
  letter-spacing: -.05em;
  margin-bottom: 36px;
  animation: fadeUp .7s .1s ease both;
}
.ht-main {
  display: block;
  background: linear-gradient(160deg, #fff 20%, rgba(255,255,255,.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ht-accent {
  display: block;
  background: linear-gradient(130deg, var(--blue) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 18px;
  font-weight: 300;
  animation: fadeUp .7s .2s ease both;
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text-dim);
  letter-spacing: .12em;
  animation: fadeUp .7s .3s ease both;
}
.hero-sub span { color: var(--blue); }

.hero-scroll {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  animation: fadeIn 1s 1.2s ease both;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(79,142,247,.6), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(.45)} }

/* ─── Section commons ─── */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.sec-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--blue);
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 48px;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 22px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 500; }

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.a-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .3s, background .3s;
}
.a-card:hover {
  border-color: var(--border-bright);
  background: var(--surface-hover);
}
.a-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(130deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.a-label {
  font-size: .84rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── Bento Grid ─── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
  position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: default;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); }
.card:hover::after { opacity: 1; }

.c-blue::after   { background: radial-gradient(circle at 75% 15%, rgba(79,142,247,.09), transparent 58%); }
.c-violet::after { background: radial-gradient(circle at 20% 80%, rgba(155,89,245,.09), transparent 58%); }
.c-cyan::after   { background: radial-gradient(circle at 50% 5%,  rgba(34,211,238,.09), transparent 58%); }

.card:hover.c-blue   { border-color: rgba(79,142,247,.3);  box-shadow: 0 8px 36px rgba(79,142,247,.12); }
.card:hover.c-violet { border-color: rgba(155,89,245,.3);  box-shadow: 0 8px 36px rgba(155,89,245,.12); }
.card:hover.c-cyan   { border-color: rgba(34,211,238,.3);  box-shadow: 0 8px 36px rgba(34,211,238,.12); }

/* Bento slots */
.b1 { grid-column: span 5; }
.b2 { grid-column: span 7; }
.b3 { grid-column: span 12; }

/* Card contents */
.c-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.tag-web     { background: rgba(79,142,247,.13); color: var(--blue);   border: 1px solid rgba(79,142,247,.2); }
.tag-app     { background: rgba(155,89,245,.13); color: var(--violet); border: 1px solid rgba(155,89,245,.2); }
.tag-grafika { background: rgba(34,211,238,.13); color: var(--cyan);   border: 1px solid rgba(34,211,238,.2); }

.c-icon  { font-size: 2rem; margin-bottom: 14px; display: block; }
.c-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.025em;
  margin-bottom: 10px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.c-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* App Store card */
.c-appstore {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.as-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 24px;
  width: fit-content;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  position: relative;
  z-index: 2;
}
.as-badge:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
}
.as-apple { font-size: 1.15rem; }

/* Wide card (b3) */
.b3-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.swatches { display: flex; gap: 8px; flex-shrink: 0; }
.swatch { width: 44px; height: 88px; border-radius: 8px; }

/* Featured project inside card */
.feat-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.feat-divider::before, .feat-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.feat-project {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .2s, border-color .2s;
}
a.feat-project:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--border-bright);
}
.feat-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.feat-info { flex: 1; min-width: 0; }
.feat-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.feat-sub {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Coming soon state */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px dashed var(--border-bright);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  margin-top: 20px;
}

/* ─── Tech tags ─── */
.tech-wrap { text-align: center; }
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.t-tag {
  padding: 9px 20px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all .25s;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-block;
}
a.t-tag:hover {
  color: var(--text);
  border-color: var(--border-bright);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.t-primary {
  background: rgba(79,142,247,.09);
  border-color: rgba(79,142,247,.24);
  color: var(--blue);
}
.t-primary:hover {
  background: rgba(79,142,247,.16);
  box-shadow: 0 0 22px rgba(79,142,247,.14);
}
.t-violet {
  background: rgba(155,89,245,.09);
  border-color: rgba(155,89,245,.24);
  color: var(--violet);
}
.t-violet:hover {
  background: rgba(155,89,245,.16);
  box-shadow: 0 0 22px rgba(155,89,245,.14);
}
.t-cyan {
  background: rgba(34,211,238,.07);
  border-color: rgba(34,211,238,.22);
  color: var(--cyan);
}
.t-cyan:hover {
  background: rgba(34,211,238,.14);
  box-shadow: 0 0 22px rgba(34,211,238,.12);
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.f-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  background: linear-gradient(130deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.f-copy { font-size: .78rem; color: var(--text-dim); }
.f-ai {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .08em;
}
.f-ai span { color: var(--violet); }

/* ─── Cursor spotlight ─── */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .6s;
  will-change: background;
}

/* ─── Custom cursor ─── */
.custom-cursor,
.custom-cursor * { cursor: none !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(34,211,238,.3);
  pointer-events: none;
  z-index: 9999;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 1px solid rgba(79,142,247,.45);
  pointer-events: none;
  z-index: 9998;
  transition: width .2s, height .2s, margin .2s, border-color .2s;
}
.cursor-ring.is-hover {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-color: rgba(79,142,247,.8);
}

/* ─── Typewriter cursor ─── */
.type-cursor {
  display: inline-block;
  width: 2px;
  height: .85em;
  background: var(--blue);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink-cursor .7s step-end infinite;
  transition: opacity .5s;
}
@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* ─── Keyframes ─── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .b1,.b2,.b3 { grid-column: span 12; }
  .b3-inner { grid-template-columns: 1fr; gap: 24px; }
  .swatches { justify-content: flex-start; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}
