/* CrossKhrome enterprise SaaS */

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-elevated: #f4f4f5;
  --bg-card: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --accent: #09090b;
  --accent-hover: #27272a;
  --accent-glow: rgba(9, 9, 11, 0.08);
  --enterprise: #b45309;
  --enterprise-bg: #fffbeb;
  --enterprise-border: #fde68a;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: min(1140px, 92vw);
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85em;
  padding: 0.12em 0.35em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 5px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.site-header .nav.container {
  padding-left: 0;
  padding-right: 0;
}

.logo {
  display: flex;
  align-items: center;
  margin-left: 0;
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 769px) {
  .logo {
    margin-left: calc(3.75rem + (min(1140px, 92vw) - 100vw) / 2);
  }
}

.logo:hover {
  opacity: 0.88;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
}

.btn-full {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.badge-enterprise {
  color: var(--enterprise);
  background: var(--enterprise-bg);
  border: 1px solid var(--enterprise-border);
}

.badge-outline {
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4.5rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 0, 0, 0.04), transparent),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
  padding-top: 0.5rem;
  text-align: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0 auto;
  max-width: 32rem;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--enterprise-bg);
  border: 1px solid var(--enterprise-border);
  border-radius: var(--radius);
  line-height: 1.5;
}

.hero-note strong {
  color: var(--enterprise);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .section-desc {
  margin-inline: auto;
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* Steps */
.steps {
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.step-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Features */
.features {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Capabilities */
.capabilities-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.cap-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.cap-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}

.capabilities-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 140px;
}

.stat-card {
  padding: 1.15rem 1.25rem;
  text-align: left;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Enterprise */
.enterprise-inner {
  padding: 2.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.enterprise-copy h2 {
  margin: 0.75rem 0;
  max-width: 24ch;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.enterprise-copy > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.enterprise-points {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.enterprise-points li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.enterprise-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
}

/* Contact */
.contact {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-intro > p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
}

.form-wrapper {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.required {
  color: var(--enterprise);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: var(--text-faint);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 96px;
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.form-checkbox label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.botcheck {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

.form-success {
  display: none;
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.form-success:not([hidden]),
.form-success.form-success-visible {
  display: block;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.form-success p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.footer-brand-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 20rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.footer-col a {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* Mobile */
@media (max-width: 900px) {
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .capabilities-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    min-width: 100px;
  }

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

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

@media (max-width: 768px) {
  .site-header .nav.container {
    padding-left: 3rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1rem;
  }

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

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