:root {
  --bg: #0b0c10;
  --card: #121318;
  --muted: #9aa3af;
  --text: #e5e7eb;
  --brand: #60a5fa;
  --accent: #8b5cf6;
  --maxw: 1024px;
  --radius: 16px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(96, 165, 250, 0.12),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at 0% 0%,
      rgba(139, 92, 246, 0.1),
      transparent 60%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 0;
  background-color: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.pill {
  font-size: 13px;
  padding: 8px 14px;
  background: rgba(96, 165, 250, 0.15);
  color: #dbeafe;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  font-weight: 500;
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px);
  opacity: 0.2;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 12, 16, 0.5);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.hero p.lead {
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--muted);
  margin: 0 0 18px;
}

/* Buttons */
.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  min-height: 40px;
}

.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: white;
  border: none;
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Sections */
section {
  padding: 120px 0;
}

h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin: 0 0 8px;
}

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

/* Cards */
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card .project-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 8px;
  background: white;
  padding: 16px;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
}

.card-button-wrapper {
  margin-top: auto;
  padding-top: 16px;
}

.card-description-wrapper {
  min-height: 60px;
  display: flex;
  align-items: flex-start;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

/* Lists */
.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin: 6px 0;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  width: 100%;
  justify-items: stretch;
}

.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
  font-weight: 700;
}

.step .label {
  grid-column: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Portfolio */
.portfolio-list {
  display: grid;
  gap: 24px;
}

.portfolio-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.portfolio-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.portfolio-row .thumb {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-row .thumb img {
  width: 100%;
  max-width: 160px;
  max-height: 32px;
  object-fit: contain;
}

.portfolio-row .title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 20px;
}

.portfolio-row .desc {
  margin-bottom: 4px;
}

.portfolio .stack {
  color: var(--muted);
  font-size: 14px;
}

/* Profile */
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* CTA Hero */
.cta-hero {
  padding: 64px 0;
  text-align: center;
  background: radial-gradient(
      1000px 500px at 80% -10%,
      rgba(96, 165, 250, 0.12),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 0% 0%,
      rgba(139, 92, 246, 0.1),
      transparent 60%
    );
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-hero h2 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 8px;
}

.cta-hero .actions {
  justify-content: center;
}

/* Footer */
footer {
  padding: 48px 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 80px;
}

/* Case Study Specific Styles */
.metrics-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.metric-chip {
  background: rgba(96, 165, 250, 0.15);
  color: #dbeafe;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.tech-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}

.tech-logo:hover {
  opacity: 1;
}

.case-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.case-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 12px;
}

.case-hero .headline {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  margin: 0 0 24px;
}

.team-line {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.team-avatars {
  display: flex;
  gap: 6px;
  align-items: center;
}

.team-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.tech-stack-section {
  display: grid;
  gap: 24px;
}

.tech-group {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-group h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--brand);
}

.tech-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-tag img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Trust Line */
.trust-line {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0;
}

/* Legal Disclaimer */
.legal-disclaimer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin: 40px 0;
}

.legal-disclaimer p {
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-disclaimer p:first-child {
  margin-top: 0;
}

.legal-disclaimer p:last-child {
  margin-bottom: 0;
}

/* MVP Cards */
.mvp-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s ease;
}

.mvp-card .project-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 8px;
  background: white;
  padding: 16px;
}

.mvp-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
}

.mvp-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.mvp-card .headline {
  color: var(--brand);
  font-size: 16px;
  margin-bottom: 12px;
}

.mvp-card .summary {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Tech Stack */
#tech-stack-grid {
  display: grid;
  gap: 32px;
}

.tech-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-category h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.tech-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
}

.tech-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tech-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Team Page */
.team-grid {
  display: grid;
  gap: 24px;
}

.team-member {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.team-member .avatar {
  width: 80px;
  height: 80px;
}

.team-member h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.team-member .role {
  color: var(--brand);
  font-size: 14px;
  margin-bottom: 8px;
}

.team-member .bio {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive Design */
@media (min-width: 720px) {
  .grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  section {
    padding: 80px 0;
  }

  .hero {
    text-align: center;
  }

  .brand img {
    height: 28px;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
  }

  .actions .btn {
    width: 100%;
  }

  .portfolio-row {
    grid-template-columns: 1fr;
  }

  .portfolio-row .thumb img {
    aspect-ratio: 16 / 9;
  }

  .team-member {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* China Page Specific Styles */

/* Pricing Pill in Hero */
.pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 12px;
  margin: 24px 0;
  font-weight: 600;
}

.price-amount {
  font-size: 24px;
  color: var(--brand);
}

.price-divider {
  color: var(--muted);
}

.price-timeline {
  color: var(--text);
  font-size: 16px;
}

/* For / Not For Section */
.for-not-for {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) {
  .for-not-for {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Roadmap Stages */
.roadmap-stages {
  display: grid;
  gap: 24px;
}

.roadmap-stage {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s ease;
}

.roadmap-stage:hover {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 0.05),
    rgba(96, 165, 250, 0.02)
  );
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-number {
  background: rgba(96, 165, 250, 0.15);
  color: #bfdbfe;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.stage-title {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.stage-content {
  display: grid;
  gap: 16px;
}

.stage-when,
.stage-outcome {
  padding: 12px 0;
}

.stage-when strong,
.stage-outcome strong {
  display: block;
  color: var(--brand);
  font-size: 14px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-when p,
.stage-outcome p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Pricing Card */
.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 8px 32px rgba(96, 165, 250, 0.1);
}

.pricing-card-content {
  text-align: center;
}

.pricing-header {
  margin-bottom: 32px;
}

.pricing-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.pricing-label {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

.pricing-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.pricing-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-icon {
  color: var(--brand);
  flex-shrink: 0;
}

.pricing-detail span {
  color: var(--text);
  font-size: 15px;
}

@media (max-width: 720px) {
  .pricing-card {
    padding: 24px;
  }

  .pricing-amount {
    font-size: 36px;
  }

  .pricing-pill {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .price-divider {
    display: none;
  }
}
