/* ============================================================
   Chad & Liu — Landing Page
   ============================================================ */

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

:root {
  --bg:        #080E1C;
  --text:      #E2E8F4;
  --accent:    #3B82F6;
  --accent-hi: #60A5FA;
  --dim:       #64748B;
  --line:      rgba(59, 130, 246, 0.14);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(
    ellipse 65% 55% at 15% -5%,
    rgba(59, 130, 246, 0.13) 0%,
    transparent 65%
  );
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

/* --- Animations ------------------------------------------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes curtainUp {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}

@keyframes expandX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes scaleDown {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Layout ----------------------------------------------- */

.inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative;
  z-index: 1;
}

/* --- Header ----------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 32px 0;
  animation: fadeIn 0.6s ease both;
}

.wordmark {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  user-select: none;
}

.wordmark .amp {
  color: var(--accent);
}

/* --- Hero ------------------------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 96px;
}

/* Vertical accent line — draws top to bottom */
.hero-content {
  position: relative;
  padding-left: 32px;
}

.hero-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  transform-origin: top center;
  transform: scaleY(0);
  animation: scaleDown 1.1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Headline (curtain reveal) ---------------------------- */

.hero-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(52px, 7.5vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 40px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  line-height: 1.1;
}

.hero-title .line span {
  display: block;
  animation: curtainUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .line:nth-child(1) span { animation-delay: 0.3s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.42s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.54s; }

/* --- Rule ------------------------------------------------- */

.hero-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent), var(--accent-hi) 30%, transparent 65%);
  transform-origin: left center;
  animation: expandX 1s 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin-bottom: 36px;
}

/* --- Body text -------------------------------------------- */

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--dim);
  max-width: 480px;
  animation: fadeUp 0.7s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- Responsive ------------------------------------------- */

@media (max-width: 640px) {
  .inner {
    padding: 0 28px;
  }

  .hero {
    padding: 100px 0 72px;
  }

  .hero-content {
    padding-left: 20px;
  }

  .hero-title {
    font-size: clamp(40px, 11vw, 60px);
    margin-bottom: 28px;
  }

  .hero-sub {
    font-size: 14px;
    max-width: 100%;
  }
}
