:root {
  --purple: #4b148c;
  --deep-purple: #240046;
  --gold: #c9a227;
  --gold-soft: #f6e7a8;
  --ink: #16131f;
  --muted: #6e657b;
  --paper: #fffaf0;
  --white: #ffffff;
  --line: rgba(75, 20, 140, 0.16);
  --shadow: 0 24px 60px rgba(36, 0, 70, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 162, 39, 0.22), transparent 35%),
    radial-gradient(circle at top right, rgba(75, 20, 140, 0.18), transparent 30%),
    var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 240, 0.8);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--gold));
  box-shadow: 0 12px 30px rgba(75, 20, 140, 0.28);
}

.nav-links a {
  color: var(--muted);
  font-weight: 650;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: var(--deep-purple);
  color: var(--white);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 18px;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

.eyebrow {
  color: var(--purple);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin: 0 0 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  margin-bottom: 24px;
}

h1 span {
  color: var(--purple);
  text-shadow: 0 8px 0 rgba(201, 162, 39, 0.18);
}

.lead {
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  background: var(--deep-purple);
  color: var(--white);
  box-shadow: var(--shadow);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--purple);
}

.hero-card,
.card,
.project-card,
.contact-box {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 26px;
}

.orb {
  position: absolute;
  top: 52px;
  right: 48px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold) 42%, var(--purple) 72%);
  box-shadow: 0 30px 70px rgba(75, 20, 140, 0.28);
}

.hero-card h2,
.hero-card ul {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
}

.hero-card li {
  margin: 12px 0;
  color: var(--muted);
  font-weight: 650;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section.alt {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1120px) / 2));
  padding-right: max(16px, calc((100% - 1120px) / 2));
  background: linear-gradient(180deg, rgba(75, 20, 140, 0.08), rgba(201, 162, 39, 0.08));
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading h2,
.contact-box h2 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.project-card {
  border-radius: 26px;
  padding: 28px;
}

.card h3,
.project-card h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.card p,
.project-card p,
.timeline p,
.contact-box p {
  color: var(--muted);
  line-height: 1.75;
}

.project-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tag {
  align-self: flex-start;
  color: var(--deep-purple);
  background: rgba(201, 162, 39, 0.22);
  border: 1px solid rgba(201, 162, 39, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.timeline-item span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--deep-purple);
  color: var(--gold-soft);
  font-weight: 900;
}

.contact {
  padding-top: 50px;
}

.contact-box {
  border-radius: 34px;
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(75, 20, 140, 0.94), rgba(36, 0, 70, 0.96)),
    var(--deep-purple);
  color: var(--white);
}

.contact-box .eyebrow,
.contact-box p {
  color: var(--gold-soft);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-links a {
  border: 1px solid rgba(246, 231, 168, 0.45);
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 800;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 50px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .hero,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
    min-height: auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 250, 240, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
