/* ==========================================================================
   iDesign Hub — Landing Page
   Design system: black & white editorial, serif display, monochrome accents
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-2: #161616;
  --ink-3: #212121;
  --paper: #ffffff;
  --paper-2: #f2f1ee;
  --cream: #ffffff;
  --muted-on-dark: rgba(255, 255, 255, 0.64);
  --muted-on-light: rgba(10, 10, 10, 0.62);
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(10, 10, 10, 0.12);
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px; }

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

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.55); }
.section-dark .btn-primary,
.hero .btn-primary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6);
}
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  opacity: 0.8;
}
.btn-ghost:hover { opacity: 1; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.86);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  color: var(--cream);
}
.logo { display: flex; align-items: center; }
.logo-img { height: 22px; width: auto; }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted-on-dark);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--cream); }

.header-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse 120% 80% at 20% -10%, #1c1c1c 0%, var(--ink) 55%);
  color: var(--cream);
  padding: 168px 0 110px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px; right: -160px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 20px;
}
.section:not(.section-dark) .eyebrow { color: var(--muted-on-light); }
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  color: var(--paper);
}
.hero h1 em { font-style: italic; font-family: var(--font-display); color: var(--paper); border-bottom: 2px solid rgba(255,255,255,0.35); }
.hero-sub {
  font-size: 17.5px;
  color: var(--muted-on-dark);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat strong { font-family: var(--font-display); font-size: 24px; color: var(--paper); }
.hero-stat span { font-size: 13px; color: var(--muted-on-dark); }

/* Phone mockups */
.phone {
  border-radius: 34px;
  border: 6px solid #0c0c0c;
  background: #0c0c0c;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
  width: 240px;
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 74px; height: 18px;
  background: #0c0c0c;
  border-radius: 12px;
  z-index: 2;
}
.phone img { width: 100%; display: block; }
.phone video { width: 100%; display: block; background: #000; }

.phone-stack { position: relative; height: 460px; display: flex; align-items: center; justify-content: center; }
.phone-back {
  position: absolute;
  left: 4%;
  top: 6%;
  transform: rotate(-9deg);
  width: 210px;
  opacity: 0.9;
}
.phone-front {
  position: relative;
  transform: rotate(4deg);
  z-index: 2;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.5);
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}
.float-card .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.float-card .float-mark { height: 12px; width: auto; }
.float-card-1 { top: 8%; right: -2%; animation-delay: 0.3s; }
.float-card-2 { bottom: 12%; left: -4%; animation-delay: 1.1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------------- Sections ---------------- */
.section { padding: 108px 0; }
.section-dark {
  background: var(--ink);
  color: var(--cream);
}
.section-dark .section-sub { color: var(--muted-on-dark); }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-sub { font-size: 16.5px; color: var(--muted-on-light); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Problem cards */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--paper);
  margin-bottom: 14px;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--muted-on-dark); margin: 0; }

/* Platform layout */
.platform-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.platform-gallery {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-lg { width: 250px; }
.platform-gallery .phone-lg:first-child {
  position: absolute;
  left: 6%;
  transform: rotate(-6deg);
  z-index: 1;
}
.phone-offset {
  position: relative;
  transform: rotate(5deg);
  right: -8%;
  z-index: 2;
}

.feature-list { display: flex; flex-direction: column; gap: 30px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--paper);
}
.feature-item h3 { font-size: 17px; margin-bottom: 6px; }
.feature-item p { font-size: 14.5px; color: var(--muted-on-light); margin: 0; }
.section-dark .feature-item p { color: var(--muted-on-dark); }

/* Example prompts */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.prompt-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.prompt-card:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }
.prompt-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 12px;
}
.prompt-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--cream);
  margin: 0;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
}
.timeline-item {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.timeline-index {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}
.timeline-item h3 { font-size: 15.5px; margin-bottom: 8px; }
.timeline-item p { font-size: 13px; color: var(--muted-on-light); margin: 0; }

.tech-strip {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13.5px;
  color: var(--muted-on-light);
  font-weight: 500;
}
.tech-strip span:nth-child(odd):not(:first-child) { color: var(--ink); font-weight: 700; }

/* Marketplace */
.marketplace-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--cream);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paper);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 6px; height: 3px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.phone-single { display: flex; justify-content: center; }

/* About stats */
.stat-card {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: left;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 10px;
}
.stat-label { font-size: 14px; color: var(--muted-on-light); }

/* Vision quote */
.vision-section {
  background: var(--ink);
  padding: 90px 0;
}
.vision-quote { max-width: 760px; margin: 0 auto; text-align: center; }
.vision-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--paper);
  line-height: 1.35;
  margin-bottom: 18px;
}
.vision-quote span { font-size: 14px; font-weight: 600; color: var(--muted-on-dark); }

/* Contact */
.contact-section { text-align: center; position: relative; overflow: hidden; }
.contact-section .section-head { margin: 0 auto 40px; text-align: center; }
.contact-section .section-sub { margin: 0 auto; }
.raise-actions { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 64px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--cream); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14px; align-items: flex-start; }
.footer-contact a:hover { color: var(--cream); text-decoration: underline; }
.footer-bottom {
  padding: 22px 32px;
  font-size: 12.5px;
  text-align: center;
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .platform-layout, .marketplace-layout { grid-template-columns: 1fr; }
  .platform-gallery { height: 380px; margin-bottom: 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .prompt-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-sm { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: rgba(10, 10, 10, 0.97);
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-header.nav-open .header-cta .btn-sm {
    display: inline-flex;
  }
  .hero { padding: 130px 0 80px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 24px; }
  .section { padding: 76px 0; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .prompt-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .phone-back { display: none; }
  .phone-front { transform: none; }
  .phone-stack { height: auto; }
  .platform-gallery .phone-lg:first-child { position: relative; left: 0; transform: none; margin-bottom: -40px; }
  .phone-offset { right: 0; transform: none; margin-left: auto; }
  .raise-actions .btn { width: 100%; justify-content: center; }
  .footer-contact { align-items: flex-start; }
}
