/* ══════════════════════════════════════════
   INKI · STYLESHEET
   ══════════════════════════════════════════ */

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

:root {
  --bg:     #0A0A0B;
  --surface:#141416;
  --border: #27272a;
  --text:   #F4F4F5;
  --muted:  #71717a;
  --cyan:   #00F0FF;
  --lime:   #CCFF00;
  --orange: #FF3D00;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -0.04em;
}

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


/* ── TRACE LINE ─────────────────────────── */
#trace-line {
  position: fixed;
  left: 0; top: 0;
  width: 2px;
  height: 100vh;
  z-index: 100;
  pointer-events: none;
}
#trace-progress {
  width: 100%;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  transition: height 0.1s linear, background 0.4s ease;
}
#trace-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  margin-left: -3px;
  box-shadow: 0 0 12px var(--cyan);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}


/* ── NAVBAR ─────────────────────────────── */
nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(10,10,11,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,240,255,0.2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
nav a {
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
nav a:hover { color: var(--text); }
nav a.active {
  color: var(--cyan);
  background: rgba(0,240,255,0.08);
}


/* ── HERO ───────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 16px 120px;
}
.hero-header {
  text-align: center;
  padding: 80px 0 40px;
}
.hero-label {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(56px, 10vw, 100px);
  font-weight: 700;
  font-family: var(--font-head);
}
.hero-title span { color: var(--cyan); }
.hero-sub {
  color: var(--muted);
  margin-top: 16px;
  font-size: 18px;
}


/* ── PANELS ─────────────────────────────── */
.panels {
  display: flex;
  gap: 12px;
  flex: 1;
  min-height: 480px;
}
.panel {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.23,1,0.32,1);
  border: 1px solid var(--border);
}
.panel:hover { flex: 2; }

.panel img.bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
  transition: filter 0.5s, transform 0.6s;
}
.panel:hover img.bg {
  filter: brightness(0.5);
  transform: scale(1.04);
}
.panel-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0.4;
  transition: opacity 0.4s, box-shadow 0.4s;
}
.panel:hover .panel-top-line { opacity: 1; }

.panel-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
}
.panel-tag {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.panel-name {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-head);
}
.panel-desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.panel-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 12px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
}
.panel:hover .panel-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ── MANIFESTO ──────────────────────────── */
#manifesto {
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
#manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,240,255,0.04), transparent);
  pointer-events: none;
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.manifesto-quote {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  border: none;
  padding: 32px 40px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--cyan);
  border-radius: 0 16px 16px 0;
  text-align: left;
  letter-spacing: -0.02em;
  position: relative;
}
.manifesto-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 80px;
  color: var(--cyan);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}
.manifesto-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-left: 40px;
}
.manifesto-line {
  width: 32px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}
.manifesto-author span {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}


/* ── TICKER ─────────────────────────────── */
.ticker {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 10;
}
.ticker::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-move 25s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,240,255,0.5);
  flex-shrink: 0;
}
@keyframes ticker-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── APP SECTIONS ───────────────────────── */
.app-section {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.app-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}
.app-inner.reversed { flex-direction: row-reverse; }

.app-mockup {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

/* Phone frame */
.phone {
  width: 260px;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.08);
  background: var(--surface);
  padding: 10px;
  position: relative;
}
.phone-screen {
  border-radius: 32px;
  background: #0d0d0f;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}
.phone-icon {
  width: 80px; height: 80px;
  border-radius: 18px;
  margin-bottom: 20px;
  object-fit: cover;
}
.phone-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.phone-sub {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.phone-metrics {
  margin-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
.phone-metric span {
  font-size: 11px;
  color: var(--muted);
}
.metric-bar {
  height: 4px;
  border-radius: 2px;
}
.phone-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  z-index: -1;
}

/* Content */
.app-content { flex: 1; }
.app-tag {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.app-title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}
.app-desc {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feat-num {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-head);
  flex-shrink: 0;
  margin-top: 2px;
}
.feat-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
}
.feat-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.app-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid;
  transition: transform 0.2s, box-shadow 0.2s;
}
.app-cta:hover { transform: scale(1.04); }

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0 40px;
}


/* ── FOOTER CTA ─────────────────────────── */
#cta {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow-c {
  position: absolute;
  top: 10%; left: 20%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(150px);
  opacity: 0.06;
  pointer-events: none;
}
.cta-glow-o {
  position: absolute;
  bottom: 20%; right: 15%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--orange);
  filter: blur(150px);
  opacity: 0.06;
  pointer-events: none;
}
.cta-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.cta-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-title span { color: var(--cyan); }
.cta-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto 56px;
}
.app-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-card {
  width: 260px;
  padding: 32px 24px;
  border-radius: 20px;
  background: rgba(20,20,22,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
  cursor: pointer;
}
.app-card:hover { transform: translateY(-6px); }
.card-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 16px;
}
.card-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
}
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-head);
  border: 1px solid;
  transition: transform 0.2s;
}
.card-btn:hover { transform: scale(1.05); }

/* Footer bar */
.footer-bar {
  margin-top: 80px;
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}
.footer-logo span { color: var(--cyan); }
.footer-copy { color: var(--muted); font-size: 13px; }
.footer-link {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }


/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  #trace-line { display: none; }

  .panels {
	flex-direction: column;
	min-height: auto;
  }
  .panel { min-height: 200px; }

  .manifesto-quote {
	padding: 24px 20px;
	font-size: 18px;
  }
  .manifesto-author { padding-left: 20px; }

  .app-inner,
  .app-inner.reversed {
	flex-direction: column;
	gap: 40px;
  }
  .app-mockup {
	flex: none;
	width: 100%;
  }
  .app-section { padding: 80px 20px; }

  .app-cards { flex-direction: column; align-items: center; }
  .footer-bar { justify-content: center; text-align: center; }
}