/*
  LinkedIn-inspired landing styles - Index Page
  Color refs: LinkedIn blue #0A66C2, light bg #F3F2EF
*/

:root {
  --li-blue: #0a66c2;
  --li-blue-600: #0955a2;
  --li-blue-400: #2d9bf0;
  --li-bg: #f3f2ef;
  --li-surface: #ffffff;
  --ink-900: #1f2328;
  --ink-700: #3d3d3d;
  --ink-500: #6b6f76;
  --muted: #5f6368;
  --shadow: 0 16px 48px rgba(2, 34, 71, 0.24), 0 8px 24px rgba(2, 34, 71, 0.16);
  --radius-lg: 16px;
  --radius-md: 12px;
  /* Feature card brand colors - Darker for better contrast with white text */
  --feature-pink: #e91e63;
  --feature-green: #009688;
  --feature-purple: #5e35b1;
  --feature-teal: #00695c;
  --feature-blue: #3949ab;
  --feature-yellow: #ffd24d;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, #fff, var(--li-bg));
}

/* Global typography */
p {
  font-size: 1.1rem;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text {
  font-weight: 700;
  color: var(--ink-900);
}

.nav-links {
  display: none;
  gap: 22px;
}
.nav-links a {
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 600;
}
.nav-links a:hover {
  color: var(--li-blue);
}

@media (min-width: 840px) {
  .nav-links {
    display: inline-flex;
  }
}

.button {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.button.primary {
  background: linear-gradient(135deg, var(--li-blue-400), var(--li-blue));
  color: #fff;
  box-shadow: var(--shadow);
}
.button.primary:hover {
  background: linear-gradient(135deg, var(--li-blue-400), var(--li-blue-600));
}
.button.large {
  padding: 14px 22px;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 12px;
}
.lead {
  color: var(--ink-900);
  margin: 0 0 18px;
}
.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-video {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e6e6e6;
  box-shadow: var(--shadow);
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* Section headers */
.section-header h2 {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.section-header p {
  text-align: center;
  margin: 0 0 28px;
  font-size: 1.2rem;
  color: var(--ink-700);
}

/* Features */
.features {
  padding: 60px 0;
  background: #fff;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 32px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px; /* mobile default */
  justify-self: center;
  overflow: hidden;
}

/* Title label */
.feature-label {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  z-index: 1;
}

/* Big emoji to mimic 3D object placeholder */
.feature-emoji {
  font-size: 64px;
  line-height: 1;
  align-self: flex-end;
  z-index: 1;
}

/* Use existing content structure: icon, h3, p */
.feature h3 {
  margin: 4px 0 8px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  z-index: 1;
}
.feature p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 72%;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  z-index: 1;
}
.feature .icon {
  position: absolute;
  right: 18px;
  bottom: 20px;
  font-size: 64px;
  line-height: 1;
  z-index: 1;
}

/* Soft rounded card background colors */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22),
    rgba(0, 0, 0, 0.04)
  );
}

/* Keep earlier utility colors (unused now) and assign by order */
.feature-pink {
  background: var(--feature-pink);
}
.feature-green {
  background: var(--feature-green);
}
.feature-purple {
  background: var(--feature-purple);
}
.feature-teal {
  background: var(--feature-teal);
}
.feature-blue {
  background: var(--feature-blue);
}

/* Assign colors to current five features */
.feature-grid .feature:nth-child(1) {
  background: var(--feature-pink);
}
.feature-grid .feature:nth-child(2) {
  background: var(--feature-green);
}
.feature-grid .feature:nth-child(3) {
  background: var(--feature-purple);
}
.feature-grid .feature:nth-child(4) {
  background: var(--feature-teal);
}
.feature-grid .feature:nth-child(5) {
  background: var(--feature-blue);
}

/* Features Help */

.features-help {
  padding: 60px 0;
  background: #fff;
}

.feature-help-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.feature-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-items: center;
  background: #fff;
  border: 0;
  padding: 18px;
  max-width: 700px;
}

/* How It Works Section */
.how-section {
  width: 100%;
  padding: 3rem 0;
  background-color: var(--li-bg);
}

@media (min-width: 768px) {
  .how-section {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .how-section {
    padding: 8rem 0;
  }
}

.steps-grid {
  display: grid;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1.5rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.step-icon-container {
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--li-surface);
  color: var(--li-blue);
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(black);
}

.step-description {
  color: var(--ink-700);
}

/* CTA */
.cta {
  padding: 64px 0 80px;
  background: linear-gradient(135deg, #eaf3fe, #f8f4ff);
}
.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  gap: 12px;
}
.cta-box h2 {
  margin: 0 0 6px;
}
.cta-box p {
  margin: 0 0 16px;
  color: var(--ink-900);
}

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

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 32px;
}

@media (min-width: 640px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .faq-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.faq article {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 300px;
  justify-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.faq h3 {
  margin: 0 0 8px;
}
.faq p {
  margin: 0;
  color: var(--ink-900);
}

/* Breakpoints for square size */
@media (min-width: 640px) {
  .feature {
    max-width: 320px; /* tablet */
  }
}

@media (min-width: 980px) {
  .feature {
    max-width: 320px; /* desktop */
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid #e6e6e6;
  background: #fff;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.muted {
  color: var(--ink-700);
}
.foot a {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.foot a:hover {
  color: var(--li-blue);
  text-decoration-thickness: 2px;
}
