/* ABOUTME: Landing page styles for PlotMyDoc. */
/* ABOUTME: Layout, hero section, feature cards, CTAs, and responsive breakpoints. */

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #fff;
  color: var(--slate-800);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
}

.logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--blue-950);
  letter-spacing: -0.03em;
}

.logo span {
  font-weight: 400;
  color: var(--blue-500);
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.15s;
}

nav a:hover { color: var(--blue-600); }

nav .nav-cta {
  background: var(--blue-600);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.15s;
}

nav .nav-cta:hover { background: var(--blue-700); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: center;
}

.hero-content {
  padding: 120px 48px 80px 80px;
  max-width: 620px;
  margin-left: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
}

h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--blue-950);
  margin-bottom: 20px;
}

h1 .accent {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  font-weight: 400;
  color: var(--slate-500);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 420px;
}

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

.cta-group-center {
  justify-content: center;
}

.btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--blue-50);
  color: var(--blue-700);
}

.btn-secondary:hover {
  background: var(--blue-100);
}

/* Hero image */

.hero-image {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255,255,255,0.6) 8%,
    rgba(239,246,255,0.15) 25%,
    transparent 50%
  );
}

.hero-image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, #fff);
  z-index: 1;
}

/* How it works */

.how {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 48px 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--slate-500);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: var(--blue-100);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 2px solid var(--blue-100);
  transition: all 0.2s;
}

.step-card:hover .step-num {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-950);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* Features */

.features {
  background: var(--slate-50);
  padding: 80px 48px;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feat {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--slate-100);
  transition: all 0.2s;
}

.feat:hover {
  border-color: var(--blue-200);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feat h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-950);
  margin-bottom: 6px;
}

.feat p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* Bottom CTA */

.cta-bottom {
  text-align: center;
  padding: 80px 48px;
}

.cta-bottom h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-950);
  margin-bottom: 12px;
}

.cta-bottom p {
  font-size: 16px;
  color: var(--slate-500);
  margin-bottom: 28px;
}

/* Footer */

footer {
  border-top: 1px solid var(--slate-100);
  padding: 24px 48px;
  text-align: center;
}

footer p {
  font-size: 13px;
  color: var(--slate-400);
}

/* Responsive: tablet */

@media (max-width: 768px) {
  header {
    padding: 20px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 120px 24px 48px;
    max-width: none;
    margin-left: 0;
  }

  .hero-image {
    height: 50vh;
  }

  .hero-image::after {
    background: linear-gradient(
      180deg,
      #fff 0%,
      rgba(255,255,255,0.4) 15%,
      transparent 40%
    );
  }

  .how {
    padding: 40px 24px 80px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps::before {
    display: none;
  }

  .features {
    padding: 60px 24px;
  }

  .features-inner {
    grid-template-columns: 1fr;
  }

  .cta-bottom {
    padding: 60px 24px;
  }

  footer {
    padding: 24px;
  }
}

/* Responsive: small phone */

@media (max-width: 480px) {
  header {
    padding: 16px;
  }

  nav {
    gap: 16px;
  }

  .hero-content {
    padding: 100px 16px 32px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .how {
    padding: 32px 16px 60px;
  }

  .features {
    padding: 48px 16px;
  }

  .cta-bottom {
    padding: 48px 16px;
  }

  footer {
    padding: 20px 16px;
  }
}
