:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #d8e0ea;
  --panel: #ffffff;
  --cad: #0891b2;
  --cad-dark: #0e7490;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --night: #0b1014;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

svg {
  display: block;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 34px;
  color: #e2e8f0;
  background: rgba(11, 16, 20, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(16px);
}

.brand,
.header-action,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(8, 145, 178, 0.18);
  border-radius: 8px;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-mark path {
  fill: none;
  stroke: #67e8f9;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  justify-content: center;
  gap: 22px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: #ffffff;
}

.header-action {
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: #ffffff;
  background: var(--cad);
  border: 1px solid rgba(103, 232, 249, 0.35);
  border-radius: 8px;
  font-weight: 800;
}

.header-action svg,
.button svg,
.download-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 820px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px 6vw 142px;
  color: #ffffff;
  background: var(--night);
}

.cad-scene {
  position: absolute;
  inset: 0;
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cad-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.94) 0%, rgba(5, 8, 12, 0.78) 35%, rgba(5, 8, 12, 0.12) 67%, rgba(5, 8, 12, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 8, 12, 0.58) 0%, rgba(5, 8, 12, 0) 46%);
}

.scene-toolbar {
  position: absolute;
  z-index: 1;
  right: 26px;
  top: 104px;
  bottom: 74px;
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.82);
  opacity: 0.96;
  box-shadow: 0 0 40px rgba(8, 145, 178, 0.14);
}

.scene-toolbar span {
  width: 30px;
  height: 28px;
  border-radius: 7px;
  background: rgba(8, 145, 178, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.22);
  position: relative;
}

.scene-toolbar span:first-child {
  background: #0891b2;
}

.scene-toolbar span:nth-child(3)::before,
.scene-toolbar span:nth-child(8)::before,
.scene-toolbar span:nth-child(10)::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 2px;
  background: #67e8f9;
  transform: rotate(-38deg);
}

.scene-toolbar span:nth-child(4)::before,
.scene-toolbar span:nth-child(7)::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #67e8f9;
  border-radius: 3px;
}

.scene-toolbar span:nth-child(5)::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid #67e8f9;
  border-radius: 999px;
}

.scene-drawing {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 3vh;
  width: min(1120px, 69vw);
  min-width: 820px;
  max-width: 1240px;
  opacity: 0.92;
  filter:
    drop-shadow(0 0 18px rgba(56, 189, 248, 0.20))
    drop-shadow(0 0 20px rgba(34, 197, 94, 0.10));
  animation: cadBreath 6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(590px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 850;
}

.eyebrow.dark {
  color: var(--cad-dark);
}

.hero h1 {
  margin: 0;
  font-size: 5.25rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  width: min(540px, 100%);
  margin: 28px 0 0;
  color: #dbeafe;
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-license {
  width: min(520px, 100%);
  margin: 16px 0 0;
  color: #a7f3d0;
  font-size: 0.98rem;
  line-height: 1.55;
}

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

.button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.button:hover,
.download-button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: var(--cad);
  border-color: rgba(103, 232, 249, 0.42);
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.28);
}

.button.primary:hover {
  background: var(--cad-dark);
}

.button.secondary {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.66);
  border-color: rgba(226, 232, 240, 0.28);
}

.button.secondary:hover {
  background: rgba(15, 23, 42, 0.92);
}

.button.ghost {
  color: #78350f;
  background: #fffbeb;
  border-color: #d97706;
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.12);
}

.button.coming-soon-button {
  color: #7c2d12 !important;
  background: #fff7ed !important;
  border: 2px solid #c2410c !important;
  opacity: 1;
}

.button.full {
  width: 100%;
}

.hero-metrics {
  position: absolute;
  z-index: 3;
  left: 6vw;
  right: 6vw;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.16);
  padding-top: 18px;
}

.hero-metrics div {
  min-width: 0;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: #ffffff;
  font-size: 1.02rem;
}

.hero-metrics span {
  margin-top: 4px;
  color: #a7b4c6;
  font-size: 0.88rem;
}

.section {
  padding: 92px 6vw;
}

.section.compact {
  padding-top: 84px;
}

.section-heading {
  width: min(720px, 100%);
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2,
.split h2,
.desktop-copy h2,
.final-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.28rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.split p,
.desktop-copy p,
.final-cta p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.feature-grid,
.example-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid article,
.cad-example,
.price-card,
.license-panel,
.flow-step,
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.feature-grid article:hover,
.cad-example:hover,
.price-card:hover,
.license-panel:hover,
.flow-step:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 145, 178, 0.36);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.feature-grid article {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.feature-grid article::after,
.flow-step::after,
.price-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cad), #22c55e, #f59e0b);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.feature-grid article:hover::after,
.flow-step:hover::after,
.price-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.feature-grid h3,
.cad-example h3,
.price-card h3,
.license-panel h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 1.1rem;
}

.feature-grid p,
.cad-example p,
.price-card p,
.license-panel li,
.faq-content p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(8, 145, 178, 0.28);
  background: #ecfeff;
  position: relative;
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
}

.feature-icon.line::before {
  left: 11px;
  right: 11px;
  top: 22px;
  height: 3px;
  background: var(--cad);
  transform: rotate(-35deg);
}

.feature-icon.dimension::before {
  left: 10px;
  right: 10px;
  top: 22px;
  height: 2px;
  background: var(--amber);
}

.feature-icon.dimension::after {
  left: 12px;
  right: 12px;
  top: 15px;
  bottom: 15px;
  border-left: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

.feature-icon.edit::before {
  inset: 13px;
  border: 3px solid var(--green);
  transform: rotate(45deg);
}

.feature-icon.layer::before {
  left: 12px;
  right: 12px;
  top: 14px;
  height: 16px;
  border: 2px solid var(--cad);
}

.feature-icon.layer::after {
  left: 16px;
  right: 8px;
  top: 21px;
  height: 16px;
  border: 2px solid var(--amber);
}

.split,
.desktop-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
  background: #ffffff;
}

.flow-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.flow-step {
  padding: 20px;
  border-color: #cfe3ea;
  position: relative;
  overflow: hidden;
}

.flow-step strong,
.flow-step span {
  display: block;
}

.flow-step strong {
  color: var(--cad-dark);
  font-size: 1rem;
}

.flow-step span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

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

.cad-example {
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.cad-example h3,
.cad-example p {
  margin-left: 20px;
  margin-right: 20px;
}

.cad-example p {
  margin-bottom: 22px;
}

.mini-cad {
  display: block;
  width: 100%;
  height: 230px;
  background: var(--night);
  transform-origin: center;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.cad-example:hover .mini-cad {
  transform: scale(1.035);
  filter: saturate(1.16) contrast(1.08);
}

.pricing-section {
  background: #eef6f8;
}

.billing-toggle {
  width: max-content;
  display: flex;
  gap: 4px;
  margin: -18px auto 28px;
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.billing-toggle button {
  min-width: 92px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.billing-toggle button.active {
  color: #ffffff;
  background: var(--cad);
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.price-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.price-card.featured {
  border-color: var(--cad);
  box-shadow: 0 22px 58px rgba(8, 145, 178, 0.22);
}

.plan-badge {
  width: max-content;
  padding: 6px 10px;
  color: #0e7490;
  background: #cffafe;
  border: 1px solid #a5f3fc;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-badge.combo {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.plan-badge.premium {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

.price {
  margin: 18px 0;
}

.price strong {
  font-size: 2.3rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-weight: 750;
}

.price-card ul,
.license-panel ul {
  margin: 0 0 24px;
  padding-left: 19px;
}

.price-card li {
  margin-bottom: 10px;
  color: #475569;
}

.price-card .button {
  margin-top: auto;
}

.desktop-section {
  background: #ffffff;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.download-button {
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.download-button span {
  padding: 3px 7px;
  color: #92400e;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 0.74rem;
}

.license-panel {
  padding: 26px;
  border-color: #cbd5e1;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
}

.license-panel h3 {
  margin-top: 0;
}

.license-panel li {
  margin-bottom: 10px;
}

.faq-section {
  background: #f8fafc;
}

.faq-list {
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border: 0;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 auto;
}

.faq-item button span::before,
.faq-item button span::after {
  content: "";
  position: absolute;
  background: var(--cad-dark);
}

.faq-item button span::before {
  left: 2px;
  right: 2px;
  top: 8px;
  height: 2px;
}

.faq-item button span::after {
  top: 2px;
  bottom: 2px;
  left: 8px;
  width: 2px;
}

.faq-item.open button span::after {
  display: none;
}

.faq-content {
  display: none;
  padding: 0 20px 18px;
}

.faq-item.open .faq-content {
  display: block;
}

.faq-content p {
  margin: 0;
}

.final-cta {
  padding: 76px 6vw;
  color: #ffffff;
  text-align: center;
  background: #0b1014;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
}

.final-cta h2 {
  color: #ffffff;
}

.final-cta p {
  color: #cbd5e1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6vw;
  color: #64748b;
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 14px 16px;
  color: #ffffff;
  background: #0f172a;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.26);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cadBreath {
  0%,
  100% {
    opacity: 0.84;
    filter:
      drop-shadow(0 0 16px rgba(56, 189, 248, 0.18))
      drop-shadow(0 0 18px rgba(34, 197, 94, 0.09));
  }

  50% {
    opacity: 1;
    filter:
      drop-shadow(0 0 26px rgba(56, 189, 248, 0.30))
      drop-shadow(0 0 24px rgba(34, 197, 94, 0.16));
  }
}

@media (max-width: 1180px) {
  .example-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .scene-toolbar {
    display: none;
  }

  .scene-drawing {
    right: -380px;
    width: 980px;
    min-width: 980px;
    opacity: 0.34;
  }

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

  .split,
  .desktop-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 780px;
    padding: 116px 22px 190px;
  }

  .scene-toolbar {
    display: none;
  }

  .scene-drawing {
    right: -500px;
    bottom: 112px;
    width: 920px;
    min-width: 920px;
    opacity: 0.23;
  }

  .hero h1 {
    font-size: 3.45rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-license {
    font-size: 0.94rem;
  }

  .hero-actions,
  .download-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .download-button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    bottom: 22px;
  }

  .section {
    padding: 66px 22px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2,
  .split h2,
  .desktop-copy h2,
  .final-cta h2 {
    font-size: 2rem;
  }

  .feature-grid,
  .example-grid,
  .pricing-grid,
  .flow-board {
    grid-template-columns: 1fr;
  }

  .feature-grid article:hover,
  .cad-example:hover,
  .price-card:hover,
  .license-panel:hover,
  .flow-step:hover,
  .button:hover,
  .download-button:hover {
    transform: none;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    flex: 1;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
