/* =========================================
   MailOps Studio — Main Stylesheet
   ========================================= */

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

:root {
  --navy: #0f1b2d;
  --navy-mid: #162236;
  --navy-light: #1e3050;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-hover: #1d4ed8;
  --teal: #0ea5e9;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --text: #1e293b;
  --text-muted: #64748b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
  font-size: 18px;
}

.logo-icon {
  font-size: 22px;
}

.logo-text {
  font-weight: 400;
  letter-spacing: -0.3px;
}

.logo-text strong {
  font-weight: 700;
}

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

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

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

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

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

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

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--gray-50);
}

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

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 96px 0 80px;
}

.hero-inner {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-sub {
  font-size: 18px;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-proof {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

/* ---- SECTIONS ---- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

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

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---- STEPS ---- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-arrow {
  font-size: 28px;
  color: var(--gray-400);
  align-self: center;
  padding-top: 8px;
}

/* ---- DOCUMENTS GRID ---- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.doc-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.doc-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.doc-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- PRICING ---- */
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.15);
}

.pricing-top {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 40px 40px 32px;
  text-align: center;
}

.pricing-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #93c5fd;
  margin-bottom: 16px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.price-currency {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.price-number {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  letter-spacing: -2px;
}

.price-period {
  font-size: 20px;
  color: #94a3b8;
  font-weight: 500;
}

.pricing-vat {
  font-size: 13px;
  color: #64748b;
}

.pricing-features {
  list-style: none;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features li {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.pricing-trial {
  padding: 0 40px 40px;
  text-align: center;
}

.trial-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- TRUST GRID ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trust-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.trust-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.trust-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

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

/* ---- CTA BLOCK ---- */
.cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-block p {
  font-size: 17px;
  color: #94a3b8;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-email {
  margin-top: 20px;
  font-size: 15px;
  color: #64748b;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--gray-800);
  color: var(--gray-400);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer .logo-text {
  color: var(--white);
}

.footer-info p {
  font-size: 13px;
  line-height: 1.8;
}

.footer-info a {
  color: var(--gray-400);
  text-decoration: none;
}

.footer-info a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

/* ---- LEGAL PAGES ---- */
.legal-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 48px;
}

.legal-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.legal-hero .subtitle {
  color: #94a3b8;
  font-size: 15px;
}

.legal-content {
  padding: 64px 0 80px;
}

.legal-content .container {
  max-width: 760px;
}

.lang-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.lang-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.legal-text {
  display: none;
}

.legal-text.active {
  display: block;
}

.legal-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-text h2:first-child {
  margin-top: 0;
}

.legal-text p, .legal-text li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-text ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-text strong {
  font-weight: 600;
  color: var(--navy);
}

.legal-meta {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  .pricing-top {
    padding: 32px 24px;
  }

  .pricing-features {
    padding: 24px;
  }

  .pricing-trial {
    padding: 0 24px 32px;
  }
}
