/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #555;
  --color-accent: #4285f4;
  --color-accent-hover: #3367d6;
  --color-accent-light: #e8f0fe;
  --color-border: #e0e0e0;
  --color-green: #34a853;
  --color-orange: #fbbc04;
  --color-red: #ea4335;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --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);
  --radius: 12px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}
.nav-logo:hover {
  text-decoration: none;
}
.nav-logo svg {
  width: 28px;
  height: 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span {
  color: var(--color-accent);
}
.hero p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* ===== Features ===== */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.features-header {
  text-align: center;
  margin-bottom: 48px;
}
.features-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.features-header p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.feature-icon.blue   { background: #e8f0fe; }
.feature-icon.green  { background: #e6f4ea; }
.feature-icon.orange { background: #fef7e0; }
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.feature-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-free   { background: #e6f4ea; color: #137333; }
.tag-pro    { background: #e8f0fe; color: #1a73e8; }
.tag-team   { background: #fef7e0; color: #e37400; }

/* ===== How It Works ===== */
.how-it-works {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 80px 24px;
}
.how-it-works-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 48px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  counter-increment: step;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ===== Pricing ===== */
.pricing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}
.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}
.pricing-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.pricing-header p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.price-card:hover {
  box-shadow: var(--shadow-lg);
}
.price-card.popular {
  border-color: var(--color-accent);
  border-width: 2px;
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.price-card .price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 16px 0 4px;
}
.price-card .price-sub {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  flex: 1;
}
.price-card ul li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.price-card ul li::before {
  content: "✓";
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
}
.price-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 24px;
  background: var(--color-surface);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .nav-logo {
  margin-bottom: 12px;
}
.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
}

/* ===== Legal Pages ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.legal-page .last-updated {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-page p,
.legal-page li {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-page ul {
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-page ul li {
  margin-bottom: 6px;
}
.legal-page a {
  color: var(--color-accent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 48px 24px 40px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }

  .features-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

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