/* ===== CSS Variables ===== */
:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  --white: #ffffff;
  --bg: var(--stone-50);
  --text-primary: var(--stone-900);
  --text-secondary: var(--stone-600);
  --text-muted: var(--stone-400);
  --accent: var(--emerald-600);
  --accent-light: var(--emerald-50);
  --accent-hover: var(--emerald-700);
  --border: var(--stone-200);

  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;

  --max-width: 1140px;
  --section-padding: 6rem 1.5rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  color: var(--text-secondary);
  max-width: 620px;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header / Nav ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn-ghost svg,
.btn-ghost .arrow {
  transition: transform var(--transition);
}

.btn-ghost:hover .arrow {
  transform: translateX(4px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--emerald-100) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid var(--emerald-200);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-text h1 {
  margin-bottom: 1.25rem;
}

.hero-text h1 .accent {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
  position: relative;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-card-avatar {
  width: 48px;
  height: 48px;
  background: var(--emerald-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.hero-card-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.hero-card-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-card-line {
  height: 10px;
  background: var(--stone-100);
  border-radius: 100px;
}

.hero-card-line:nth-child(1) { width: 100%; }
.hero-card-line:nth-child(2) { width: 85%; }
.hero-card-line:nth-child(3) { width: 92%; }
.hero-card-line:nth-child(4) { width: 70%; }

.hero-card-line.accent-line {
  background: var(--emerald-100);
}

.hero-floating-tag {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-floating-tag.tag-ai {
  top: -10px;
  right: -10px;
  color: var(--accent);
}

.hero-floating-tag.tag-pdf {
  bottom: -10px;
  left: -10px;
  color: var(--stone-700);
}

.tag-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.tag-ai .tag-icon {
  background: var(--emerald-100);
  color: var(--accent);
}

.tag-pdf .tag-icon {
  background: var(--stone-100);
  color: var(--stone-700);
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

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

.section-header p {
  margin: 0.75rem auto 0;
  text-align: center;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--emerald-200);
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

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

.step-number {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
}

.step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.85rem;
  margin: 0 auto;
  text-align: center;
}

/* ===== Pricing Section ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(5, 150, 105, 0.12);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-card .price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

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

/* ===== Waitlist / CTA Section ===== */
.cta-section {
  background: var(--emerald-900);
  color: var(--white);
  text-align: center;
  border-radius: 24px;
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--emerald-700) 0%, transparent 70%);
  opacity: 0.4;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--emerald-200);
  margin: 0 auto 2rem;
  text-align: center;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.waitlist-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--emerald-700);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.waitlist-form input::placeholder {
  color: var(--emerald-300);
}

.waitlist-form input:focus {
  border-color: var(--emerald-400);
}

.waitlist-form .btn {
  background: var(--white);
  color: var(--emerald-900);
  white-space: nowrap;
}

.waitlist-form .btn:hover {
  background: var(--emerald-50);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.form-success {
  display: none;
  color: var(--emerald-200);
  font-weight: 500;
  margin-top: 1rem;
}

/* ===== Corporate Features ===== */
.corp-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.corp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  transition: all var(--transition);
}

.corp-card:hover {
  border-color: var(--emerald-200);
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.08);
}

.corp-card .feature-icon {
  margin-bottom: 1rem;
}

.corp-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.corp-card p {
  font-size: 0.9rem;
}

/* ===== Corporate Pricing ===== */
.corp-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Page Header (for inner pages) ===== */
.page-header {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--emerald-100) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}

.page-header p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    max-width: 400px;
    margin: 0 auto;
  }

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

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .steps-grid::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .corp-pricing {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transition: right var(--transition);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hamburger {
    display: block;
  }

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

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

  .waitlist-form {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    margin: 0 auto;
  }

  .hero::before {
    width: 300px;
    height: 300px;
    top: -60px;
    right: -60px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}
