:root {
  --ink: #0f1117;
  --paper: #f8f6f1;
  --cream: #eee9df;
  --accent: #d35233;
  --accent-light: #f0a68e;
  --accent-glow: rgba(211, 82, 51, 0.12);
  --teal: #1a7a6d;
  --teal-light: #a3d9cf;
  --slate: #4a4e5a;
  --muted: #8a8d96;
  --card-bg: #ffffff;
  --border: #e2ddd4;
  --radius: 14px;
  --shadow-sm:
    0 1px 3px rgba(15, 17, 23, 0.04), 0 1px 2px rgba(15, 17, 23, 0.06);
  --shadow-md:
    0 4px 16px rgba(15, 17, 23, 0.06), 0 2px 4px rgba(15, 17, 23, 0.04);
  --shadow-lg:
    0 12px 40px rgba(15, 17, 23, 0.08), 0 4px 12px rgba(15, 17, 23, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  font-family: "JetBrains Mono", monospace;
}

.logo-text {
  font-family: "DM Serif Display", serif;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* === PAGE HERO === */
.page-hero {
  padding: 140px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    ellipse at 50% 50%,
    var(--accent-glow) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-20px) scale(1.03);
  }
}

.page-hero .section-label {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease both;
}

.page-hero h1 .highlight {
  color: var(--accent);
  position: relative;
}
.page-hero h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-light);
  border-radius: 2px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease 0.1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-label .dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* === MISSION === */
.mission {
  padding: 0 2rem 5rem;
}

.mission-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mission-text h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.mission-text p {
  font-size: 0.95rem;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.mission-text p:last-child {
  margin-bottom: 0;
}

.mission-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mission-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.mission-card .card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.mission-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.mission-card p {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}

.icon-orange {
  background: #fef3e2;
}
.icon-green {
  background: #d1fae5;
}
.icon-blue {
  background: #dbeafe;
}
.icon-teal {
  background: #ccfbf1;
}
.icon-purple {
  background: #ede9fe;
}

/* === TECH STACK === */
.tech-stack {
  padding: 5rem 2rem;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.tech-stack::before {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(26, 122, 109, 0.1),
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.tech-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tech-stack h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.tech-stack .sub {
  text-align: center;
  color: rgba(248, 246, 241, 0.5);
  font-weight: 300;
  margin-bottom: 3rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.tech-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.tech-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 600;
}
.tech-card .tech-sub {
  font-size: 0.75rem;
  color: rgba(248, 246, 241, 0.4);
  font-weight: 300;
}

.tech-card p.desc {
  font-size: 0.85rem;
  color: rgba(248, 246, 241, 0.55);
  font-weight: 300;
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tech-tag {
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 246, 241, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* === ARCHITECTURE === */
.architecture {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--ink) 0%, #161822 100%);
  color: var(--paper);
}

.archi-inner {
  max-width: 900px;
  margin: 0 auto;
}

.architecture h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -1px;
  margin-bottom: 2.5rem;
  text-align: center;
}

.archi-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.archi-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius);
  text-align: center;
  min-width: 140px;
  transition: transform 0.3s ease;
}
.archi-node:hover {
  transform: translateY(-4px);
}

.archi-node .node-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.archi-node .node-label {
  font-weight: 600;
  font-size: 0.85rem;
}
.archi-node .node-detail {
  font-size: 0.7rem;
  font-family: "JetBrains Mono", monospace;
  opacity: 0.5;
}

.node-user {
  background: rgba(211, 82, 51, 0.12);
  border: 1px solid rgba(211, 82, 51, 0.25);
}
.node-front {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.node-back {
  background: rgba(26, 122, 109, 0.15);
  border: 1px solid rgba(26, 122, 109, 0.3);
}
.node-db {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.archi-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  color: rgba(248, 246, 241, 0.2);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* === CREATOR === */
.creator {
  padding: 5rem 2rem;
}

.creator-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.creator-avatar {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.creator-avatar .initials {
  font-family: "DM Serif Display", serif;
  font-size: 3.5rem;
  color: white;
  letter-spacing: -2px;
}

.creator-avatar .badge-dev {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.creator-info h2 {
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
  letter-spacing: -1px;
  margin-bottom: 0.25rem;
}

.creator-role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.creator-info p {
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.75;
}

/* === ROADMAP === */
.roadmap {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}

.roadmap-inner {
  max-width: 700px;
  margin: 0 auto;
}

.roadmap h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  text-align: center;
}

.roadmap .sub {
  text-align: center;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 3rem;
}

.roadmap-timeline {
  position: relative;
  padding-left: 32px;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.roadmap-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.roadmap-item:last-child {
  margin-bottom: 0;
}

.roadmap-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.roadmap-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--border);
}

.roadmap-item.done::before {
  background: var(--teal);
  box-shadow: 0 0 0 2px var(--teal-light);
}
.roadmap-item.current::before {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
  animation: blink 2s infinite;
}
.roadmap-item.planned::before {
  background: var(--muted);
}

@keyframes blink {
  0%,
  100% {
    box-shadow: 0 0 0 2px var(--accent-light);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(211, 82, 51, 0.15);
  }
}

.roadmap-item .rm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.roadmap-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.rm-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.rm-tag-done {
  background: #d1fae5;
  color: #065f46;
}
.rm-tag-wip {
  background: #fef3e2;
  color: #b45309;
}
.rm-tag-planned {
  background: var(--cream);
  color: var(--muted);
}

.roadmap-item p {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}

/* === CTA === */
.cta {
  padding: 5rem 2rem;
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem;
  background: var(--card-bg);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.cta h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(211, 82, 51, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(211, 82, 51, 0.3);
}

/* === FOOTER === */
footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
footer p {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
}
footer strong {
  font-weight: 600;
  color: var(--ink);
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .mission-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .creator-inner {
    flex-direction: column;
    text-align: center;
  }
  .archi-flow {
    flex-direction: column;
    align-items: center;
  }
  .archi-arrow {
    transform: rotate(90deg);
    padding: 0.3rem 0;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .page-hero {
    padding: 110px 1.25rem 60px;
  }
  .cta-inner {
    padding: 2.5rem 1.5rem;
  }
  .creator-avatar {
    width: 120px;
    height: 120px;
  }
  .creator-avatar .initials {
    font-size: 2.5rem;
  }
}
