@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --home-bg: #171918;
  --home-bg-deep: #121312;
  --home-section-light: #1d1f1f;
  --home-section-dark: #151716;
  --home-card: #242726;
  --home-card-strong: #2c302f;
  --home-line: rgba(255, 255, 255, 0.09);
  --home-line-soft: rgba(255, 255, 255, 0.06);
  --home-section-line: rgba(255, 255, 255, 0.07);
  --home-text: #f7f1e6;
  --home-text-soft: rgba(215, 208, 198, 0.9);
  --home-text-muted: rgba(163, 156, 148, 0.86);
  --home-accent: #ff6a2d;
  --home-accent-soft: rgba(255, 106, 45, 0.08);
  --home-accent-wash: rgba(114, 70, 50, 0.24);
  --home-highlight-border: rgba(255, 140, 90, 0.22);
  --home-highlight-gradient:
    radial-gradient(circle at top left, rgba(255, 126, 72, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(82, 68, 62, 0.97) 0%, rgba(70, 63, 60, 0.95) 44%, rgba(45, 48, 47, 0.98) 100%);
  --home-highlight-gradient-soft:
    radial-gradient(circle at top left, rgba(255, 126, 72, 0.05), transparent 32%),
    linear-gradient(135deg, rgba(76, 66, 62, 0.95) 0%, rgba(66, 61, 58, 0.94) 44%, rgba(45, 48, 47, 0.97) 100%);
}

body.home {
  background:
    radial-gradient(circle at top right, rgba(255, 106, 45, 0.12), transparent 24%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, #121312 0%, #171918 48%, #121312 100%);
  color: var(--home-text);
  -webkit-font-smoothing: antialiased;
}

.home .site-header {
  position: sticky;
  top: 0;
  background: rgba(12, 13, 13, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home .header-inner {
  min-height: 72px;
}

.home .brand-mark {
  gap: 12px;
}

.home .brand-copy strong {
  color: var(--home-text);
  font-size: 1.18rem;
}

.home .brand-copy small {
  color: var(--home-text-muted);
  font-size: 0.82rem;
}

.home .site-nav {
  gap: 26px;
}

.home .site-nav ul {
  gap: 30px;
}

.home .site-nav a {
  color: rgba(244, 239, 231, 0.88);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.home .nav-cta,
.home .button-primary {
  background: linear-gradient(180deg, #ff8048, #ff6a2d);
  color: #fff8f2;
  box-shadow: 0 12px 26px rgba(255, 106, 45, 0.18);
}

.home .button,
.home .nav-cta {
  border-radius: 18px;
}

.home .button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(244, 239, 231, 0.92);
}

.nexra-home .container {
  width: min(calc(100% - 64px), 1232px);
}

.nexra-home .section {
  position: relative;
  padding: 84px 0;
}

.nexra-home .section-tight {
  padding-top: 0;
  padding-bottom: 72px;
}

.nexra-home .compact-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.nexra-home .compact-heading h2 {
  margin: 14px 0 16px;
  color: var(--home-text);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.nexra-home .compact-heading p {
  color: var(--home-text-soft);
  font-size: 1.03rem;
}

.nexra-home .section-kicker,
.nexra-home .card-kicker,
.nexra-home .trust-label {
  color: var(--home-accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.home-trust-section,
.home-why-section,
.home-pricing-section,
.home-getting-started-section {
  background: linear-gradient(180deg, var(--home-section-light) 0%, #1a1c1c 100%);
  border-top: 1px solid var(--home-section-line);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-trust-section {
  display: grid;
  align-items: center;
  min-height: 178px;
}

.home-trust-section.section-tight {
  padding-top: 34px;
  padding-bottom: 34px;
}

.home-problem-section,
.home-services-section,
.home-use-cases-section,
.home-faq-cta-section {
  background: linear-gradient(180deg, var(--home-section-dark) 0%, #171918 100%);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  gap: 38px;
  align-items: start;
}

.home-hero-copy {
  padding-top: 78px;
}

.hero-pill {
  padding: 10px 16px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-title {
  margin: 26px 0 26px;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: clamp(2.9rem, 4.2vw, 4.15rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.hero-title .accent {
  color: var(--home-accent);
}

.hero-title-line-primary {
  color: var(--home-text);
}

.hero-title-line-secondary {
  margin-top: 6px;
  font-size: 0.84em;
  letter-spacing: -0.05em;
}

.home-hero-copy .hero-description {
  max-width: 720px;
  color: var(--home-text-soft);
  font-size: 1.08rem;
  line-height: 1.85;
}

.home-hero-copy .hero-actions {
  margin-top: 34px;
  gap: 14px;
}

.home-hero-copy .button {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.home-hero-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 38px;
  padding: 16px;
  border: 1px solid var(--home-line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(45, 48, 47, 0.92), rgba(24, 26, 26, 0.98));
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.22);
}

.hero-process-frame,
.hero-mini-panel,
.trust-reference-card,
.problem-card,
.problem-focus-card,
.why-card,
.services-core-card,
.services-side-card,
.plan-card,
.use-case-card,
.step-reference-card,
.faq-static-card,
.cta-reference-panel {
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(45, 48, 47, 0.92), rgba(24, 26, 26, 0.98));
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-process-frame {
  padding: 22px 24px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(41, 43, 43, 0.94), rgba(23, 25, 25, 0.98));
}

@media (hover: hover) and (pointer: fine) {
  .hero-process-frame:hover,
  .hero-mini-panel:hover,
  .trust-reference-card:hover,
  .problem-card:hover,
  .problem-focus-card:hover,
  .why-card:hover,
  .services-core-card:hover,
  .services-side-card:hover,
  .plan-card:hover,
  .use-case-card:hover,
  .step-reference-card:hover,
  .faq-static-card:hover,
  .cta-reference-panel:hover {
    transform: translateY(-4px);
  }

  .hero-process-frame:hover,
  .hero-mini-panel:hover,
  .trust-reference-card:hover,
  .problem-card:hover,
  .why-card:hover,
  .services-side-card:hover,
  .plan-card:hover,
  .use-case-card:hover,
  .step-reference-card:hover,
  .faq-static-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
  }

  .problem-focus-card:hover,
  .services-core-card:hover,
  .plan-card.is-featured:hover,
  .use-case-card.is-highlighted:hover,
  .step-reference-card.is-highlighted:hover,
  .cta-reference-panel:hover {
    border-color: rgba(255, 140, 90, 0.24);
  }
}

.hero-process-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-process-head .card-kicker {
  margin: 0;
  color: var(--home-accent);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 90, 0.08);
  background: rgba(255, 118, 66, 0.1);
  color: #ff9b71;
  font-size: 0.94rem;
  font-weight: 500;
}

.hero-process-list {
  display: grid;
  gap: 14px;
}

.hero-process-item {
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--home-text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.hero-mini-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 128px;
  padding: 18px 26px 16px;
  border-radius: 20px;
}

.hero-mini-panel .card-kicker {
  margin: 0;
  color: var(--home-text-muted);
}

.hero-mini-panel h3 {
  margin: 8px 0 0;
  color: var(--home-text);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: clamp(0.9rem, 0.78vw, 1rem);
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.trust-reference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-reference-card {
  min-height: 106px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
}

.trust-reference-card h2 {
  margin: 12px 0 0;
  color: var(--home-text);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 20px;
  grid-template-areas:
    "primary second third"
    "primary focus focus";
}

.problem-card {
  padding: 34px 30px;
}

.problem-card:nth-child(2) {
  grid-area: primary;
}

.problem-card:nth-child(3) {
  grid-area: second;
}

.problem-card:nth-child(4) {
  grid-area: third;
}

.problem-card-primary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.problem-icon {
  margin-bottom: 24px;
  font-size: 2rem;
}

.problem-card h3,
.why-card h3,
.services-core-card h3,
.services-side-card h3,
.plan-card h3,
.use-case-card h3,
.step-reference-card h3,
.faq-static-card h3,
.cta-reference-panel h2 {
  margin: 0 0 14px;
  color: var(--home-text);
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 900;
}

.problem-card h3 {
  font-size: 1.34rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.problem-card p,
.problem-focus-card p,
.why-card p,
.services-core-card p,
.services-side-card p,
.plan-card p,
.use-case-card p,
.step-reference-card p,
.faq-static-card p,
.cta-reference-panel p {
  margin: 0;
  color: var(--home-text-soft);
  line-height: 1.85;
}

.problem-note {
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--home-text);
  line-height: 1.9;
}

.problem-focus-card {
  grid-area: focus;
  padding: 28px 32px;
  border-color: var(--home-highlight-border);
  background: var(--home-highlight-gradient);
}

.problem-focus-card p {
  margin-top: 16px;
  color: var(--home-text);
  font-size: 1.14rem;
  line-height: 1.68;
  font-weight: 700;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
}

.why-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-card {
  padding: 28px 26px;
}

.why-card h3 {
  font-size: 1.14rem;
  line-height: 1.5;
}

.why-card-title-line {
  display: block;
}

.services-reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.services-core-card {
  padding: 34px;
  border-color: var(--home-highlight-border);
  background: var(--home-highlight-gradient);
}

.services-core-card h3 {
  font-size: clamp(2.1rem, 3vw, 2.9rem);
}

.services-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.services-core-item {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--home-text);
  font-size: 1rem;
  font-weight: 700;
}

.services-reference-stack {
  display: grid;
  gap: 18px;
}

.services-side-card {
  padding: 30px 28px;
}

.services-side-card h3 {
  font-size: 1.25rem;
}

.services-quiz-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 24px 0;
}

.services-quiz-cta p {
  margin: 0;
  color: var(--home-text-soft);
  font-size: 1rem;
  font-weight: 600;
}

.services-quiz-cta .button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  padding: 34px 28px 26px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-card.is-featured {
  border-color: rgba(255, 140, 90, 0.48);
  background: var(--home-highlight-gradient-soft);
}

.plan-card h3 {
  font-size: 1.14rem;
  line-height: 1.5;
}

.plan-subtitle {
  margin-bottom: 18px;
  color: var(--home-text-muted);
  font-size: 0.98rem;
}

.plan-meta-block + .plan-meta-block {
  margin-top: 20px;
}

.plan-meta-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--home-accent);
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.plan-bullet-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--home-text);
  line-height: 1.7;
}

.plan-bullet-list li::before {
  content: '';
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--home-accent);
}

.plan-price-box {
  margin-top: auto;
  padding: 24px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  text-align: center;
}

.plan-price-box span {
  display: block;
  color: var(--home-text-soft);
}

.plan-price-box strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--home-accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.plan-price-box p {
  color: var(--home-text-soft);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.use-case-card {
  padding: 26px 28px;
}

.use-case-card.is-highlighted {
  border-color: var(--home-highlight-border);
  background: var(--home-highlight-gradient-soft);
}

.use-case-card h3 {
  font-size: 1.24rem;
}

.getting-started-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}

.step-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-reference-card {
  min-height: 220px;
  padding: 24px 24px 26px;
}

.step-reference-card.is-highlighted {
  border-color: var(--home-highlight-border);
  background: var(--home-highlight-gradient-soft);
}

.step-reference-card h3 {
  font-size: 1.18rem;
  line-height: 1.45;
}

.faq-cta-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: start;
}

.faq-card-stack {
  display: grid;
  gap: 18px;
}

.faq-static-card {
  padding: 26px 24px;
}

.faq-static-card h3 {
  font-size: 1.08rem;
}

.cta-reference-panel {
  min-height: 520px;
  padding: 34px 36px;
  border-color: var(--home-highlight-border);
  background: var(--home-highlight-gradient);
}

.cta-reference-panel h2 {
  margin-top: 14px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 3.2vw, 3.2rem);
}

.cta-reference-panel .button {
  margin-top: 26px;
  min-width: 148px;
}

.cta-reference-panel .cta-note {
  margin-top: 22px;
  color: var(--home-text-soft);
}

@media (max-width: 1180px) {
  .home-hero-grid,
  .why-layout,
  .services-reference-layout,
  .getting-started-layout,
  .faq-cta-layout {
    grid-template-columns: 1fr;
  }

  .why-card-row,
  .plans-grid,
  .step-reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .problem-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "primary second"
      "primary third"
      "focus focus";
  }
}

@media (max-width: 920px) {
  .home .site-nav {
    background: rgba(44, 44, 44, 0.98);
  }

  .home .site-nav ul {
    gap: 18px;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-hero-copy {
    padding-top: 32px;
  }

  .home-hero-panel {
    display: none;
  }

  .trust-reference-grid,
  .why-card-row,
  .plans-grid,
  .use-cases-grid,
  .step-reference-grid {
    grid-template-columns: 1fr;
  }

  .problem-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "primary"
      "second"
      "third"
      "focus";
  }

  .services-reference-layout {
    grid-template-columns: 1fr;
  }

  .services-core-grid {
    grid-template-columns: 1fr;
  }

  .services-quiz-cta {
    flex-direction: column;
    align-items: stretch;
    padding-top: 18px;
  }

  .services-quiz-cta .button {
    width: 100%;
    justify-content: center;
  }

  .faq-cta-layout {
    grid-template-columns: 1fr;
  }

  .cta-reference-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .nexra-home .container {
    width: min(calc(100% - 28px), 1200px);
  }

  .hero-title {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

  .home-hero-copy .hero-description,
  .nexra-home .compact-heading p {
    font-size: 0.98rem;
  }

  .home-hero-copy .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-copy .button {
    width: 100%;
  }
}
