/* =============================================
   MyCrawlBot — Swiss Style Design System
   Color Palette:
   - Near-black  #0A0A0A  (authority, premium)
   - Electric blue #2563EB (trust, AI)
   - Emerald     #10B981  (growth, digital)
   - Off-white   #F8F8F8  (Swiss breathing room)
   - Mid-grey    #6B7280  (secondary text)
   - Border      #E5E7EB
   Font: Inter (Helvetica alternative)
   ============================================= */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #0A0A0A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── TOKENS ── */
:root {
  --black:   #0A0A0A;
  --blue:    #2563EB;
  --blue-dk: #1D4ED8;
  --green:   #10B981;
  --orange:  #F59E0B;
  --white:   #ffffff;
  --off:     #F8F8F8;
  --grey:    #6B7280;
  --border:  #E5E7EB;
  --radius:  4px;

  --container: 1160px;
  --gap: 24px;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }
h5 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); }
p  { color: var(--grey); font-size: 1rem; line-height: 1.7; }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.accent { color: var(--blue); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--black);
  background: var(--off);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.875rem;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
}
.btn-sm:hover { background: #1a1a1a; }

.btn-full { width: 100%; justify-content: center; }

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 64px;
}
.section-header p {
  max-width: 480px;
  margin-top: 16px;
}

/* ── NAV ── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}
.logo-dot { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--grey);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--black); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.2s;
}

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 72px;
}

.hero-content { max-width: 540px; }

.hero-title {
  margin: 8px 0 24px;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--grey);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  border-radius: 8px;
}

.hero-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  z-index: 2;
}

.hero-card span {
  font-size: 0.75rem;
  color: var(--grey);
  font-weight: 400;
}
.hero-card strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 4px;
}
.card-dot.green  { background: var(--green); }
.card-dot.blue   { background: var(--blue); }
.card-dot.orange { background: var(--orange); }

.card-1 { top: 40px;  left: 20px;  }
.card-2 { top: 160px; right: 30px; }
.card-3 { bottom: 60px; left: 60px; }

/* Stat Bar */
.stat-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  gap: 4px;
}
.stat strong {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}
.stat span {
  font-size: 0.8125rem;
  color: var(--grey);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── SERVICES ── */
.services {
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.service-card {
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: #c8d0dc;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.service-card.featured {
  grid-column: span 1;
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured ul li {
  color: rgba(255,255,255,0.85);
}
.service-card.featured h3 { color: var(--white); }
.service-card.featured .service-icon { color: #60a5fa; }
.service-card.featured .service-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
}

.service-icon {
  color: var(--blue);
  margin-bottom: 20px;
}

.service-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #EFF6FF;
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.service-card h3 { margin-bottom: 12px; }
.service-card p  { font-size: 0.9375rem; }

.service-card ul {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card ul li {
  font-size: 0.875rem;
  color: var(--grey);
  padding-left: 16px;
  position: relative;
}
.service-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.75rem;
}
.service-card.featured ul li::before { color: #60a5fa; }

/* ── PROCESS ── */
.process {
  padding: 96px 0;
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 0;
}

.step {
  flex: 1;
  padding: 0 32px 0 0;
}
.step:last-child { padding-right: 0; }

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.step h4 { margin-bottom: 10px; font-size: 1.0625rem; }
.step p  { font-size: 0.9rem; }

.step-arrow {
  font-size: 1.25rem;
  color: var(--border);
  padding: 0 8px;
  margin-top: 36px;
  flex-shrink: 0;
}

/* ── WORK ── */
.work {
  padding: 120px 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--gap);
}

.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.work-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,0.08); }

.work-card--large {
  grid-column: span 2;
}

.work-card-img {
  height: 220px;
  background: var(--off);
}

.work-img-1 {
  background: linear-gradient(135deg, #0A0A0A 0%, #1e3a5f 100%);
}
.work-img-2 {
  background: linear-gradient(135deg, #1D4ED8 0%, #7c3aed 100%);
}
.work-img-3 {
  background: linear-gradient(135deg, #065f46 0%, #0891b2 100%);
}

.work-card--large .work-card-img { height: 260px; }

.work-card-body {
  padding: 28px;
}

.work-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}

.work-card h3 { margin-bottom: 10px; }
.work-card p  { font-size: 0.9rem; margin-bottom: 20px; }

.work-metrics {
  display: flex;
  gap: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.work-metrics div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.work-metrics strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}
.work-metrics span {
  font-size: 0.75rem;
  color: var(--grey);
}

/* ── ABOUT ── */
.about {
  padding: 120px 0;
  background: var(--black);
  color: var(--white);
}

.about .label { color: #60a5fa; }
.about h2 { color: var(--white); }
.about p  { color: rgba(255,255,255,0.6); margin-bottom: 20px; }

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

.about-content .btn-primary {
  background: var(--white);
  color: var(--black);
  margin-top: 12px;
}
.about-content .btn-primary:hover { background: #f0f0f0; }

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-block {
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-block strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.about-block span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.about-block.a3 {
  grid-column: span 2;
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.3);
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.testimonial {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.testimonial > p {
  font-size: 1rem;
  color: var(--black);
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}
.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--grey);
}

/* ── CONTACT ── */
.contact {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-content h2 { margin-bottom: 20px; }
.contact-content > p { margin-bottom: 40px; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  width: 56px;
  flex-shrink: 0;
}

.contact-item a {
  font-size: 0.9375rem;
  color: var(--blue);
  font-weight: 500;
}
.contact-item a:hover { text-decoration: underline; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #adb5bd; }

.form-field 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='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

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

.form-note {
  font-size: 0.875rem;
  color: var(--green);
  min-height: 20px;
}

/* ── FOOTER ── */
.footer {
  background: var(--off);
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--grey);
  margin-top: 12px;
  max-width: 220px;
}

.footer-col h5 { margin-bottom: 16px; }

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

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--grey);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--black); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span {
  font-size: 0.8125rem;
  color: var(--grey);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }

  .hero-grid    { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual  { height: 280px; }
  .hero-content { max-width: 100%; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured { grid-column: span 2; }

  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card--large { grid-column: span 2; }

  .about-grid   { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero { padding: 72px 0 56px; }

  .services-grid    { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }

  .process-steps {
    flex-direction: column;
    gap: 36px;
  }
  .step-arrow { display: none; }
  .step { padding: 0; }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--large { grid-column: span 1; }

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

  .stat-bar {
    flex-wrap: wrap;
  }
  .stat { flex: 0 0 50%; }
  .stat-divider { display: none; }

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

  .about-visual {
    grid-template-columns: 1fr;
  }
  .about-block.a3 { grid-column: span 1; }

  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Mobile Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li    { width: 100%; }
  .nav-links a     { display: block; padding: 14px 24px; font-size: 1rem; }
  .nav-links .btn-sm {
    display: inline-flex;
    margin: 8px 24px;
    width: auto;
  }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn-ghost { order: 2; }
  .contact-info { gap: 12px; }
}
