@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent: #f1f5f9;
  --text-primary: #0f172a;
  --text-muted: #475569;
  --accent-green: #00c08b;
  --accent-green-hover: #00a87a;
  --accent-green-light: #e6f9f4;
  --accent-blue: #3b82f6;
  --border-color: rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating, animated background blobs (Grammarly style) */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
}

.blob-2 {
  bottom: -15%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  animation-duration: 30s;
}

.blob-3 {
  top: 35%;
  left: 25%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  animation-duration: 35s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(60px, 80px) scale(1.15);
  }
}

/* Header Navigation */
header {
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

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

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 9999px; /* Rounded pill style */
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 192, 139, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-green-hover);
  box-shadow: 0 6px 20px rgba(0, 192, 139, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-accent);
}

.btn-outlined {
  background-color: transparent;
  color: var(--accent-green);
  border: 2px solid var(--accent-green);
}

.btn-outlined:hover {
  background-color: var(--accent-green-light);
}

/* Hero Section */
.hero {
  padding: 120px 0 100px 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 56px auto;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

/* Swapping word swapper styled in forest green */
.swap-wrapper {
  display: inline-block;
  overflow: hidden;
  height: 74px;
  vertical-align: bottom;
  position: relative;
  color: #0e7452; /* Forest green */
  padding-left: 8px;
}

.swap-text {
  animation: swapAnim 10s infinite ease-in-out;
}

.swap-item {
  height: 74px;
  display: flex;
  align-items: center;
  font-weight: 800;
}

@keyframes swapAnim {
  0%, 15% { transform: translateY(0); }
  20%, 35% { transform: translateY(-74px); }
  40%, 55% { transform: translateY(-148px); }
  60%, 75% { transform: translateY(-222px); }
  80%, 95% { transform: translateY(-296px); }
  100% { transform: translateY(0); }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-visual {
  margin-top: 64px;
  display: inline-block;
  max-width: 900px;
  width: 100%;
}

.hero-visual img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: block;
  /* Gentle floating effect for hero mockup */
  animation: visualFloat 6s infinite ease-in-out;
}

@keyframes visualFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Logos list */
.partners {
  padding: 48px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(248, 250, 252, 0.5);
}

.partners-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  opacity: 0.5;
}

.partner-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Sections */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-head {
  max-width: 650px;
  margin-bottom: 64px;
}

.section-tag {
  color: var(--accent-green-hover);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 38px;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* Grammarly styled cards */
.tailored-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.tailored-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px; /* More rounded */
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.tailored-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 192, 139, 0.2);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: var(--accent-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.tailored-card h3 {
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 14px;
}

.tailored-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Statistics row */
.stats-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.stats-title {
  font-size: 38px;
  line-height: 1.2;
  color: #0f172a;
}

.stat-box {
  border-left: 3px solid var(--accent-green);
  padding-left: 28px;
}

.stat-number {
  font-size: 64px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #0e7452; /* Forest green */
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Feature comparison table */
.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f172a;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(0, 192, 139, 0.02);
}

td:nth-child(2), td:nth-child(3) {
  text-align: center;
  width: 140px;
}

/* Import Step */
.step-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-item h4 {
  font-size: 18px;
  color: #0f172a;
}

.step-item p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Pricing Grid */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 2px solid var(--accent-green);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0e7452;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.price {
  font-size: 56px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
}

.price span {
  font-size: 20px;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
}

.price-features li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.price-features li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: 800;
  font-size: 16px;
}

/* Accordion FAQs */
.faq-box {
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.faq-card h4 {
  font-size: 18px;
  color: #0f172a;
  margin-bottom: 8px;
}

.faq-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Cookie consent banner */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  display: none;
}

.cookie-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cookie-content p a {
  color: var(--accent-green);
  text-decoration: underline;
}

/* Footer layout */
footer {
  padding: 80px 0 40px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h5 {
  font-size: 12px;
  color: #0f172a;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #0f172a;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive queries */
@media (max-width: 992px) {
  .hero-title {
    font-size: 44px;
  }
  
  .swap-wrapper {
    height: 52px;
  }
  
  .swap-item {
    height: 52px;
  }
  
  @keyframes swapAnim {
    0%, 15% { transform: translateY(0); }
    20%, 35% { transform: translateY(-52px); }
    40%, 55% { transform: translateY(-104px); }
    60%, 75% { transform: translateY(-156px); }
    80%, 95% { transform: translateY(-208px); }
    100% { transform: translateY(0); }
  }

  .tailored-grid, .stats-grid, .step-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
