/* ===== CSS Variables ===== */
:root {
  --color-navy:   #0F172A;
  --color-orange: #F97316;
  --color-bg:     #F8FAFC;
  --color-slate:  #64748B;
  --color-white:  #FFFFFF;
  --color-border: #E2E8F0;
  --color-text:   #1E293B;
  --font-main:    'Inter', sans-serif;
  --max-width:    1100px;
  --radius-btn:   6px;
  --radius-card:  8px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-slate);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

/* Offset anchor scroll targets so sticky nav doesn't cover headings */
section {
  scroll-margin-top: 64px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
  line-height: 1;
}

.btn:hover {
  opacity: 0.86;
}

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

.btn-full {
  width: 100%;
  text-align: center;
  padding: 14px 22px;
}

/* ===== Shared Section Layout ===== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Narrow container for the contact form */
.section-inner--narrow {
  max-width: 680px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-slate);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== Nav ===== */
.nav {
  background-color: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-white);
}

/* ===== Hero ===== */
.hero {
  background-color: var(--color-white);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-slate);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
}

/* Orange left-border stat callout — eye-catching block */
.hero-stat {
  display: block;
  background-color: #FFF7ED;
  border-left: 4px solid var(--color-orange);
  padding: 18px 22px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 36px;
  max-width: 400px;
}

.hero-stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.hero-stat-desc {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.45;
}

/* Larger CTA button to pull user attention */
.hero-cta {
  padding: 16px 38px;
  font-size: 17px;
}

.hero-visual-wrap {
  flex-shrink: 0;
  width: 490px;
}

.hero-svg {
  width: 100%;
  height: auto;
}

/* ===== Problem Section ===== */
.problem {
  padding: 80px 0;
  background-color: var(--color-bg);
}

.problem-cards {
  display: flex;
  gap: 24px;
}

.problem-card {
  flex: 1;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.problem-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}

.problem-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.problem-card-text {
  font-size: 15px;
  color: var(--color-slate);
  line-height: 1.65;
}

/* ===== Solution / How It Works — Flow Layout ===== */
.solution {
  padding: 80px 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Three step cards connected by arrow connectors */
.solution-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.flow-step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

/* Orange circle containing the step icon */
.flow-icon-wrap {
  width: 76px;
  height: 76px;
  background-color: var(--color-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.flow-icon {
  width: 34px;
  height: 34px;
}

/* "Analyze Encounter" / "AI Copilot Intelligence" sub-label above the title */
.flow-step-sublabel {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-orange);
  margin-bottom: 4px;
}

.flow-step-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.flow-step-text {
  font-size: 15px;
  color: var(--color-slate);
  line-height: 1.65;
  text-align: left;
}

/* Arrow SVG connector between steps — vertically centered with the icons */
.flow-connector {
  flex-shrink: 0;
  width: 48px;
  padding-top: 30px;
}

.flow-connector svg {
  width: 48px;
  height: 16px;
  display: block;
}

/* ===== Industries Served ===== */
.industries {
  padding: 80px 0;
  background-color: var(--color-bg);
}

.industries-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.industry-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 48px;
  max-width: 460px;
  text-align: center;
}

.industry-icon {
  font-size: 38px;
  display: block;
  margin-bottom: 14px;
}

.industry-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.industry-card-text {
  font-size: 15px;
  color: var(--color-slate);
  line-height: 1.65;
}

.industries-note {
  text-align: center;
  font-size: 14px;
  color: var(--color-slate);
  font-style: italic;
}

/* ===== Contact / Early Access Form ===== */
.contact {
  padding: 80px 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
}

.form-label-optional {
  font-weight: 400;
  color: var(--color-slate);
}

.form-input {
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-navy);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--color-orange);
}

.form-input::placeholder {
  color: #A0AEC0;
}

/* Custom select arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

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

/* Red border applied by JS on invalid email */
.form-input--error {
  border-color: #EF4444;
}

.form-disclaimer {
  font-size: 13px;
  color: var(--color-slate);
  text-align: center;
  margin-top: -4px;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-navy);
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col--center {
  align-items: center;
}

.footer-col--right {
  align-items: flex-end;
}

.footer-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-domain {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {

  /* Hero: stack content above SVG */
  .hero {
    padding: 56px 0 48px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 40px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
    max-width: 100%;
  }

  .hero-visual-wrap {
    width: 100%;
    max-width: 420px;
    align-self: center;
  }

  .hero-stat-number {
    font-size: 28px;
  }

  /* Problem: stack cards */
  .problem-cards {
    flex-direction: column;
  }

  /* Solution: stack flow steps vertically, hide horizontal arrows */
  .solution-flow {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .flow-step {
    width: 100%;
    max-width: 400px;
  }

  .flow-step-text {
    text-align: center;
  }

  /* Rotate arrow to point down when stacked */
  .flow-connector {
    padding-top: 0;
    transform: rotate(90deg);
  }

  /* Form row: stack fields */
  .form-row {
    flex-direction: column;
  }

  /* Footer: stack columns */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-col--center,
  .footer-col--right {
    align-items: flex-start;
  }

  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {

  /* Hide text nav links on very small screens; keep the CTA button */
  .nav-link {
    display: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-stat-number {
    font-size: 24px;
  }

  .hero-cta {
    padding: 14px 28px;
    font-size: 16px;
    display: block;
    text-align: center;
  }
}
