/* =========================================================
   appki — shadcn/ui-inspired design system
   ========================================================= */

:root {
  --bg:           #09090b;   /* zinc-950 */
  --bg-card:      #18181b;   /* zinc-900 */
  --border:       #27272a;   /* zinc-800 */
  --border-hover: #3f3f46;   /* zinc-700 */

  --text:         #fafafa;   /* zinc-50 */
  --muted:        #a1a1aa;   /* zinc-400 */
  --muted-2:      #71717a;   /* zinc-500 */
  --accent:       #ffffff;   /* white */

  --radius-sm:    0.375rem;  /* 6px — buttons/inputs */
  --radius:       0.5rem;    /* 8px — cards */
  --radius-lg:    0.75rem;   /* 12px — cta card */

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1120px;
  --section-py: clamp(5rem, 10vw, 8rem);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}
.accent { color: var(--accent); }
.muted  { color: var(--muted); }

/* Pill badge / section label */
.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

/* scroll-reveal — subtle */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary {
  background: #ffffff;
  color: #09090b;
}
.btn-primary:hover {
  background: #e4e4e7;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card);
  color: var(--text);
}
.btn-lg {
  font-size: 0.9375rem;
  padding: 0.6875rem 1.75rem;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.logo-tagline {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 0.5rem; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: all 0.2s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 57px;
  background: rgba(9,9,11,0.97);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 99;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}
.mobile-menu a:hover { color: var(--text); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--section-py) + 64px);
  padding-bottom: var(--section-py);
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}
.hero-noise {
  position: absolute;
  inset: 0;
  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='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--text);
}
.hero-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-2);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* =========================================================
   SECTION BASE
   ========================================================= */
.section { padding: var(--section-py) 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.section-header p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted-2);
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.step-body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.step-body p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.how-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.how-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   WHAT I BUILD
   ========================================================= */
.build-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.build-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  order: 2;
}
.build-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.build-cards {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  order: 1;
}
.build-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: border-color 0.15s;
}
.build-card:hover {
  border-color: var(--border-hover);
}
.build-card-icon {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  color: var(--muted);
}
.build-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.build-card p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* =========================================================
   WHY AI
   ========================================================= */
.ai-section {
  position: relative;
  overflow: hidden;
}
.ai-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ai-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
}
.ai-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%);
}
.ai-inner {
  position: relative;
  z-index: 1;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  color: var(--muted-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.ai-text {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
}
.ai-text strong { color: var(--text); font-weight: 600; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}
.about-photo { flex-shrink: 0; }
.about-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-body h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
}
.about-body p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 560px;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================
   CTA / CONTACT
   ========================================================= */
.cta-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.cta-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text);
}
.cta-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.cta-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.social-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}
.social-link svg { width: 16px; height: 16px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-2);
  font-size: 0.75rem;
}
.footer .accent { color: var(--text); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .how-grid,
  .build-grid { grid-template-columns: 1fr; }

  .how-image,
  .build-image { order: -1; }
  .build-image img, .how-image img { height: 240px; }

  .stats-row { grid-template-columns: 1fr; }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 1.5rem;
  }
  .stat-card:last-child { border-bottom: none; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .about-photo { display: flex; justify-content: center; }
  .about-photo img { width: 140px; height: 140px; }
  .about-body p { margin-inline: auto; }
  .about-badges { justify-content: center; }
}

@media (max-width: 540px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .btn-lg { font-size: 0.9375rem; padding: 0.75rem 1.5rem; }
  .cta-socials { flex-direction: column; align-items: center; }
}
