:root {
  --bg: #071114;
  --bg-2: #0c1c22;
  --ink: #e8e2d6;
  --muted: #9aa8a3;
  --accent: #ff6a3d;
  --accent-2: #3dd6c3;
  --line: rgba(232, 226, 214, 0.12);
  --max: 72rem;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(61, 214, 195, 0.14), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(255, 106, 61, 0.16), transparent 50%),
    linear-gradient(165deg, var(--bg), var(--bg-2) 48%, #0a1518);
  overflow-x: hidden;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  pointer-events: none;
  position: fixed;
  z-index: 0;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  top: -8%;
  left: -10%;
  background: rgba(61, 214, 195, 0.35);
}

.orb-b {
  right: -12%;
  bottom: 10%;
  background: rgba(255, 106, 61, 0.28);
  animation-duration: 22s;
  animation-delay: -4s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -6%, 0) scale(1.08); }
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  min-height: calc(100vh - 4.5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 7rem) 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(120deg, #fff6ea 10%, var(--accent-2) 45%, var(--accent) 90%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 10s ease-in-out infinite alternate;
}

@keyframes sheen {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.hero-title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #1a0d08;
}

.btn-primary:hover {
  background: #ff825c;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(232, 226, 214, 0.35);
}

.hero-scroll {
  margin-top: auto;
  padding-top: 3.5rem;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 3.2rem;
  background: linear-gradient(to bottom, transparent, var(--accent-2));
  animation: pulse-line 2.2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.25; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

.reveal {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 7rem) 1.5rem;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prose {
  margin: 0 0 1rem;
  max-width: 38rem;
  color: var(--muted);
}

.prose:last-child {
  margin-bottom: 0;
}

.rail {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rail li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.rail li:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 0.4rem;
}

.rail-k {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rail-v {
  color: var(--muted);
}

.mail-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.35s ease, color 0.25s ease;
}

.mail-link:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.foot-note {
  color: rgba(154, 168, 163, 0.7);
}

@media (max-width: 720px) {
  .nav {
    gap: 0.9rem;
    font-size: 0.85rem;
  }

  .rail li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb,
  .hero-brand,
  .hero-scroll span,
  .reveal {
    animation: none !important;
  }
}
