/* API Robot — Marketing landing page
   Uniform design system: spacing, type, and section rhythm */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-card: #ffffff;
  --text: #1a1d21;
  --text-muted: #5c6269;
  --accent: #2874b8;
  --accent-hover: #1e5f9a;
  --accent-light: rgba(40, 116, 184, 0.12);
  --border: #e2e4e8;
  --radius: 8px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Spacing scale (uniform) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --title-sm: 1rem;
  --title-md: 1.0625rem;
  --title-section: 1.5rem;
  --title-hero: clamp(2rem, 5vw, 2.75rem);

  /* Section rhythm */
  --section-padding: var(--space-20);
  --container-max: 720px;
  --container-padding: var(--space-6);
}

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

html {
  scroll-behavior: smooth;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-4);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.logo-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-end;
}

@media (min-width: 640px) {
  .nav {
    gap: var(--space-6);
  }
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-audience {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-title {
  margin: 0 0 var(--space-5);
  font-size: var(--title-hero);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 var(--space-8);
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 36em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-light) 0%, transparent 50%);
  pointer-events: none;
}

/* ----- Sections (uniform) ----- */
.section {
  padding: var(--section-padding) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-title {
  margin: 0 0 var(--space-3);
  font-size: var(--title-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title--sub {
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
  font-size: var(--title-section);
}

.section-lead {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----- Steps ----- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
}

.step-content h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--title-md);
  font-weight: 600;
  color: var(--text);
}

.step-content p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.steps-tagline {
  margin: var(--space-8) 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

/* ----- Production-ready list ----- */
.production-list {
  margin: 0;
  padding: 0 0 0 var(--space-6);
  list-style: none;
  max-width: 28rem;
}

.production-list li {
  position: relative;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text);
}

.production-list li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-6));
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
  border-radius: 50%;
}

/* ----- FAQ ----- */
.faq-list {
  margin: 0;
  padding: 0;
}

.faq-list dt {
  margin: var(--space-6) 0 var(--space-2);
  font-size: var(--title-md);
  font-weight: 600;
  color: var(--text);
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 0 0 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----- Feature cards (uniform) ----- */
.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-card {
  padding: var(--space-6);
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
}

.features-grid--integration .feature-icon {
  font-size: 1.75rem;
  opacity: 0.9;
}

.feature-card h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--title-sm);
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

/* Use-case cards: no icon, compact height */
#use-cases .feature-card {
  min-height: auto;
}

/* ----- CTA / Contact (same section rhythm) ----- */
.section-cta {
  padding: var(--section-padding) 0;
  background: var(--bg-alt);
}

.cta-inner {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

.cta-inner .section-header {
  margin-bottom: var(--space-8);
}

.contact-form {
  margin: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 420px) {
  .form-row {
    flex-direction: row;
  }

  .form-row input {
    flex: 1;
    min-width: 0;
  }
}

.contact-form input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-message {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  min-height: 1.25em;
}

.form-message.success {
  color: #0d7d4c;
}

.form-message.error {
  color: #c23030;
}

/* ----- Footer ----- */
.footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
