/* ============================================
   CODITECT Landing Page — www.coditect.ai
   Brand: Sky-500 blue (#0ea5e9) from auth.coditect.ai
   Font: Inter (matches az1.ai + auth.coditect.ai)
   ============================================ */

:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-primary-darker: #0369a1;
  --color-primary-light: #38bdf8;
  --color-primary-lightest: #e0f2fe;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Montserrat', 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.25);
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar__logo { width: 32px; height: 32px; }
.navbar__wordmark {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary-darker), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__links {
  display: flex;
  gap: 32px;
}
.navbar__links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--color-primary); }

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

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 40%, #0ea5e9 100%);
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero kicker */
.hero__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a5f3fc;
  background: rgba(165,243,252,0.12);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__accent {
  background: linear-gradient(90deg, #38bdf8, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 540px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__proof {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  align-items: center;
}
.hero__stat {
  display: flex;
  flex-direction: column;
}
.hero__stat strong {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.hero__stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* Terminal mockup */
.hero__visual { position: relative; }

.hero__terminal {
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #1e293b;
}
.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal__dot--red { background: #ef4444; }
.terminal__dot--yellow { background: #eab308; }
.terminal__dot--green { background: #22c55e; }
.terminal__title {
  margin-left: 8px;
  font-size: 13px;
  color: #94a3b8;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal__body {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 2;
}
.terminal__line { color: #e2e8f0; }
.t-prompt { color: #22c55e; margin-right: 8px; }
.t-dim { color: #64748b; }
.t-success { color: #22c55e; }

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}
.section-subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-top: 16px;
  line-height: 1.7;
}

/* ---- Features ---- */
.features {
  padding: 100px 0;
  background: var(--color-surface-alt);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
}
.card--hoverable:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.card__icon--blue { background: #0ea5e9; }
.card__icon--green { background: #10b981; }
.card__icon--purple { background: #8b5cf6; }
.card__icon--orange { background: #f97316; }
.card__icon--teal { background: #14b8a6; }
.card__icon--pink { background: #ec4899; }

.card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ---- Process / How It Works ---- */
.process {
  padding: 100px 0;
}

.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.process__step {
  text-align: center;
  max-width: 320px;
  padding: 0 24px;
}

.process__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(14,165,233,0.3);
}

.process__connector {
  width: 80px;
  height: 2px;
  background: var(--color-border);
  margin-top: 28px;
  flex-shrink: 0;
}

.process__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.process__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ---- Solutions ---- */
.solutions {
  padding: 100px 0;
  background: var(--color-surface-alt);
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}
.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.solution-card__accent {
  width: 6px;
  flex-shrink: 0;
}
.solution-card__accent--blue { background: #0ea5e9; }
.solution-card__accent--green { background: #10b981; }
.solution-card__accent--purple { background: #8b5cf6; }
.solution-card__accent--orange { background: #f97316; }

.solution-card__body {
  padding: 28px 28px;
}
.solution-card__body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.solution-card__body p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.solution-card__body ul {
  list-style: none;
  padding: 0;
}
.solution-card__body li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 4px 0 4px 20px;
  position: relative;
}
.solution-card__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---- Qualify / Survey ---- */
.qualify {
  padding: 100px 0;
  background: linear-gradient(135deg, #0c4a6e, #0369a1, #0ea5e9);
}

.qualify__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.qualify__subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 40px;
}

.survey {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  text-align: left;
}

.survey__progress {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.survey__progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.survey__step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.survey__options {
  display: grid;
  gap: 12px;
}

.survey__option {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface-alt);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.survey__option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-lightest);
}

.survey__input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  outline: none;
  transition: border-color var(--transition);
}
.survey__input:focus {
  border-color: var(--color-primary);
}

.survey__fine-print {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 12px;
  text-align: center;
}

/* Survey hint text */
.survey__hint {
  font-size: 15px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Survey textarea */
.survey__textarea {
  display: block;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
  transition: border-color var(--transition);
  margin-bottom: 16px;
}
.survey__textarea:focus {
  border-color: var(--color-primary);
}
.survey__textarea::placeholder {
  color: var(--color-text-muted);
}

/* File upload drop zone */
.survey__upload {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
  background: var(--color-surface-alt);
}
.survey__upload:hover,
.survey__upload.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-lightest);
}
.survey__upload-icon {
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.survey__upload:hover .survey__upload-icon,
.survey__upload.dragover .survey__upload-icon {
  color: var(--color-primary);
}
.survey__upload-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}
.survey__upload-browse {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}
.survey__upload-formats {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* File list items */
.survey__files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.survey__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.survey__file-name {
  color: var(--color-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
}
.survey__file-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
}
.survey__file-remove:hover {
  color: #ef4444;
}

/* Multi-select option selected state */
.survey__option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-lightest);
  color: var(--color-primary-dark);
  font-weight: 600;
}
.survey__options--multi {
  grid-template-columns: repeat(2, 1fr);
}

.survey__done {
  text-align: center;
  padding: 20px 0;
}
.survey__done-icon {
  margin-bottom: 20px;
}
.survey__done h3 {
  margin-bottom: 8px;
}
.survey__done p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* ---- FAQ ---- */
.faq {
  padding: 100px 0;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  font-size: 17px;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}
.faq__item[open] .faq__question::after {
  content: '-';
}

.faq__question::-webkit-details-marker { display: none; }

.faq__answer {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  padding-bottom: 20px;
}

/* ---- Tech CTA (Senior Engineers) ---- */
.tech-cta {
  padding: 80px 0;
  background: var(--color-surface-alt);
}
.tech-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.tech-cta__content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.tech-cta__content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
}
@media (max-width: 768px) {
  .tech-cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .tech-cta__content p { max-width: 100%; }
  .tech-cta { padding: 64px 0; }
}

/* ---- Footer ---- */
.footer {
  background: #0f172a;
  color: #fff;
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer__logo span {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 8px;
}
.footer__email {
  color: var(--color-primary-light);
  font-size: 14px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}
.footer__bottom p {
  font-size: 13px;
  color: #64748b;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__proof { justify-content: center; }
  .hero__visual { display: none; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .solutions__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links { justify-items: center; }
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__actions .btn--outline { display: none; }
  .navbar__toggle { display: flex; }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .hero { padding: 60px 0; }
  .hero__title { font-size: 36px; }

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

  .process__steps { flex-direction: column; align-items: center; }
  .process__connector { width: 2px; height: 40px; }
  .process__step { max-width: 100%; }

  .footer__links { grid-template-columns: 1fr; text-align: center; }
  .survey__options--multi { grid-template-columns: 1fr; }

  .section-title { font-size: 28px; }
  .features, .process, .solutions, .faq { padding: 64px 0; }
  .qualify { padding: 64px 0; }
  .survey { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 28px; }
  .hero__proof { flex-direction: column; gap: 16px; }
  .hero__stat-divider { display: none; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
