/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fffdf9;
  --bg-tint: #faf7f2;
  --bg-card: #ffffff;
  --text: #0f0f0f;
  --text-muted: #6b6b6b;
  --text-soft: #4a4a4a;
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.1);
  --accent-glow: rgba(249, 115, 22, 0.3);
  --accent-2: #8b5cf6;
  --border: #ebebeb;
  --border-strong: #d4d4d4;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Syne', sans-serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 620px; margin: 0 auto; }
.accent { color: var(--accent); }
.text-center { text-align: center; }

/* === Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  padding: 14px 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem; font-weight: 600;
  border-radius: 100px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', sans-serif;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.8rem; }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--border-strong);
  color: var(--text-soft);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/* === Hero === */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, rgba(249,115,22,0.04) 0%, transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.tag-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* === Photo === */
.hero-photo { position: relative; }
.photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #f97316 0%, #8b5cf6 100%);
  position: relative;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame.no-photo img { display: none; }
.photo-placeholder-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: rgba(255,255,255,0.8);
}
.photo-frame:not(.no-photo) .photo-placeholder-text { display: none; }

.photo-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: float 4s ease-in-out infinite;
}
.photo-card.card-1 {
  bottom: 32px; left: -20px;
  animation-delay: 0s;
}
.photo-card.card-2 {
  top: 40px; right: -20px;
  animation-delay: 2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.card-stat {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem; font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.card-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

/* === Marquee === */
.marquee-section {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-tint);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.marquee-sep {
  color: var(--accent);
  font-size: 0.7rem;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === Sections === */
.section { padding: 96px 0; }
.section-tinted { background: var(--bg-tint); }

.section-tag {
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 10px;
  display: block;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 48px;
  line-height: 1.15;
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.about-left h2 { margin-bottom: 0; }
.about-right p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-right p:last-child { margin-bottom: 0; }
.about-right strong { color: var(--text); font-weight: 600; }

/* === Timeline === */
.timeline {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-strong), var(--accent), var(--accent-2));
}
.timeline-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  position: relative;
}
.tl-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-tint);
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  margin-top: 4px;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.tl-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}
.tl-dot.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.tl-year {
  font-size: 0.72rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.08em; display: block;
  margin-bottom: 4px;
}
.tl-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.tl-content p { font-size: 0.875rem; color: var(--text-soft); line-height: 1.65; }

/* === Projects === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}
.project-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.project-card h3 {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 12px; letter-spacing: -0.015em;
}
.project-card p {
  font-size: 0.9rem; color: var(--text-soft);
  line-height: 1.7; margin-bottom: 20px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.project-tags span {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
}
.project-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted);
}
.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

/* === Waitlist === */
.waitlist-section {
  background: linear-gradient(135deg, rgba(249,115,22,0.06) 0%, rgba(139,92,246,0.06) 100%);
}
.waitlist-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
.waitlist-box h2 { margin-bottom: 12px; }
.waitlist-sub {
  font-size: 1rem; color: var(--text-soft);
  line-height: 1.7; margin-bottom: 32px;
  text-align: center;
}
.waitlist-form { margin-bottom: 24px; }
.form-row-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-row-inline input {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row-inline input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-note {
  font-size: 0.78rem; color: var(--text-muted);
  text-align: center; margin-top: 12px;
}
.waitlist-social {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.waitlist-social p {
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: 10px;
}
.social-links { display: flex; gap: 16px; justify-content: center; }
.social-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent); text-decoration: none;
  transition: opacity 0.2s;
}
.social-link:hover { opacity: 0.7; }

/* === Footer === */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-tint);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* === Responsive === */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 360px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-left h2 { margin-bottom: 0; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 110px 0 64px; }
  .section { padding: 64px 0; }
  .waitlist-box { padding: 36px 24px; }
  .form-row-inline { flex-direction: column; }
  .form-row-inline input { min-width: unset; border-radius: var(--radius-sm); }
  .form-row-inline .btn { border-radius: var(--radius-sm); text-align: center; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
