* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #9b7dd4;
  --brand-dark: #7b5db4;
  --brand-subtle: #f0ecf7;
  --black: #111113;
  --gray-950: #18181b;
  --gray-900: #1c1c1f;
  --gray-800: #2e2e32;
  --gray-700: #3f3f46;
  --gray-600: #52525b;
  --gray-500: #71717a;
  --gray-400: #a1a1aa;
  --gray-300: #d4d4d8;
  --gray-200: #e4e4e7;
  --gray-100: #f4f4f5;
  --gray-50: #fafafa;
  --white: #ffffff;
  --nav-height: 52px;
}

html, body {
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scroll Container ── */

#container {
  overflow: scroll;
  height: 100vh;
}

#container::-webkit-scrollbar {
  display: none;
}

#container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Page Sections ── */

.page {
  height: 100vh;
  position: relative;
}

.page-inner {
  width: 90%;
  max-width: 1120px;
  padding: 64px 0 calc(var(--nav-height) + 44px) 0;
}

/* ── Hero ── */

#hero {
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero .page-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-window {
  background-color: var(--white);
  border-radius: 16px;
  padding: 60px 80px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 600px;
  max-width: 900px;
  width: 100%;
}

.hero-top {
  margin-bottom: 40px;
}

.hero-company {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-company:hover {
  color: var(--gray-700);
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 28px;
  color: var(--gray-900);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 52px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-platform-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.platform-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--gray-500);
  letter-spacing: 0.01em;
}

.hero-dot {
  color: var(--gray-300);
}

/* ── Buttons ── */

.btn {
  padding: 13px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--brand);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-400);
  border: 1px solid var(--gray-700);
}

.btn-ghost:hover {
  border-color: var(--gray-500);
  color: var(--white);
}

/* ── Section Heading ── */

#details {
  display: flex;
  align-items: center;
  justify-content: center;
}

#details .page-inner {
  text-align: center;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.details-window {
  background-color: var(--white);
  border-radius: 16px;
  padding: 60px 80px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 600px;
  max-width: 900px;
  width: 100%;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
  color: var(--gray-900);
}

/* ── Capabilities ── */

#capabilities {
  background-color: var(--white);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.cap-item {
  background-color: var(--white);
  padding: 30px 26px;
}

.cap-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--brand);
  margin-bottom: 14px;
  font-weight: 500;
}

.cap-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.cap-item p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ── Dual System ── */

#system {
  background-color: var(--gray-50);
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}

.dual-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 36px;
}

.dual-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dual-card-header h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.dual-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  background-color: var(--brand-subtle);
  padding: 5px 12px;
  border-radius: 4px;
}

.dual-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 26px;
}

.dual-details {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--gray-100);
}

.dual-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}

.dual-label {
  font-weight: 500;
  color: var(--gray-900);
}

.dual-detail-row span:last-child {
  color: var(--gray-500);
}

/* ── Integration Strip ── */

.integration-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}

.integration-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
}

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

.integration-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand);
  background-color: var(--brand-subtle);
  padding: 4px 14px;
  border-radius: 4px;
}

.integration-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-left: auto;
}

/* ── Pricing ── */

#pricing {
  background-color: var(--white);
}

.pricing-sub {
  font-size: 1rem;
  color: var(--gray-500);
  margin-top: -30px;
  margin-bottom: 36px;
}

.pricing-table {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
}

.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 3fr;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-header-row {
  background-color: var(--gray-950);
  color: var(--white);
}

.pricing-header-row .pricing-cell {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
}

.pricing-cell {
  padding: 16px 24px;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  color: var(--gray-600);
}

.pricing-cell strong {
  color: var(--gray-900);
}

.price-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--gray-900);
  font-size: 0.975rem;
}

.price-val span {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-left: 2px;
}

.pricing-row:not(.pricing-header-row):nth-child(even) {
  background-color: var(--gray-50);
}

.pricing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}

.pricing-footer p {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.pricing-footer .btn-primary {
  background-color: var(--gray-950);
}

.pricing-footer .btn-primary:hover {
  background-color: var(--black);
}

/* ── Technical ── */

#technical {
  background-color: var(--gray-50);
  align-items: flex-start;
  padding-top: 80px;
}

.technical-inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-height));
  padding-top: 80px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: auto;
}

.tech-item {
  background-color: var(--white);
  padding: 30px 26px;
}

.tech-item h4 {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.tech-item p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ── Footer ── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  margin-top: 52px;
  border-top: 1px solid var(--gray-200);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-900);
}

.footer-sep {
  color: var(--gray-300);
}

.footer-company {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-company:hover {
  color: var(--gray-900);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-right a:hover {
  color: var(--gray-900);
}

/* ── Bottom Navigation ── */

#navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  z-index: 100;
  height: var(--nav-height);
}

#navigation button {
  flex: 1;
  padding: 0 14px;
  background-color: var(--white);
  border: none;
  border-right: 1px solid var(--gray-100);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.15s ease;
  height: 100%;
}

#navigation button:last-child {
  border-right: none;
}

#navigation button:hover {
  color: var(--gray-700);
  background-color: var(--gray-50);
}

#navigation button.active {
  background-color: var(--gray-950);
  color: var(--white);
}

/* ── Modal ── */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.modal-body {
  padding: 28px 32px 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.925rem;
  font-family: 'Outfit', sans-serif;
  color: var(--gray-900);
  background-color: var(--white);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(155, 125, 212, 0.1);
}

.form-group small {
  display: block;
  margin-top: 5px;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.subdomain-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subdomain-row input {
  flex: 0 0 auto;
  width: 200px;
}

.subdomain-suffix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.form-actions .btn-ghost {
  color: var(--gray-500);
  border-color: var(--gray-300);
}

.form-actions .btn-ghost:hover {
  color: var(--gray-900);
  border-color: var(--gray-400);
}

/* ── Responsive ── */

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

  .integration-strip {
    flex-wrap: wrap;
    gap: 12px;
  }

  .integration-note {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .dual-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-window,
  .details-window {
    padding: 50px 50px;
    min-width: 400px;
    max-width: 700px;
  }
}

@media (max-width: 640px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-header-row {
    display: none;
  }

  .pricing-cell {
    padding: 10px 18px;
  }

  .pricing-cell:first-child {
    padding-top: 16px;
  }

  .pricing-cell:last-child {
    padding-bottom: 16px;
    color: var(--gray-400);
    font-size: 0.8rem;
  }

  .pricing-footer {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 6px;
  }

  .footer-sep {
    display: none;
  }

  .hero-window,
  .details-window {
    padding: 40px 30px;
    border-radius: 12px;
    min-width: auto;
    max-width: none;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .integration-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  #navigation button {
    font-size: 0.75rem;
    padding: 0 8px;
  }

  .page-inner {
    padding: 44px 0 calc(var(--nav-height) + 28px) 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }
}
