/* ============================================
   Lectora — Variables & Reset
   ============================================ */

:root {
  --orange: #E06A2C;
  --orange-dark: #C6541F;
  --anthracite: #1E1E1E;
  --bg-light: #F6F3EF;
  --gray: #6B6B6B;
  --white: #FFFFFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --container: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

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

ul {
  list-style: none;
}

/* ============================================
   Layout
   ============================================ */

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

.section {
  padding: 6rem 0;
}

.section-light {
  background: var(--bg-light);
}

.page-top {
  padding-top: 10rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-outline {
  background: transparent;
  color: var(--anthracite);
  border-color: var(--anthracite);
}

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

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.nav .container {
  display: flex;
  align-items: center;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 3rem;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
  margin-right: auto;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--anthracite);
}

.nav-link.active {
  background: rgba(0, 0, 0, 0.04);
}

.nav-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gray);
  transition: all var(--transition);
  margin-right: 0.75rem;
}

.nav-login:hover {
  color: var(--anthracite);
  background: rgba(0, 0, 0, 0.05);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--anthracite);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 10rem 0 6rem;
  background: var(--bg-light);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  background: rgba(224, 106, 44, 0.1);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--orange);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

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

/* Diff Demo Card */
.diff-demo {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.diff-demo-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  font-weight: 500;
}

.diff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.diff-dot.green {
  background: #4CAF50;
}

.diff-demo-body {
  padding: 1.5rem;
}

.diff-line {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--anthracite);
  font-weight: 400;
  font-style: italic;
}

.diff-del {
  background: #FECACA;
  color: #991B1B;
  text-decoration: line-through;
  padding: 0.0625rem 0.1875rem;
  border-radius: 2px;
  margin-right: 2px;
}

.diff-add {
  background: #BBF7D0;
  color: #14532D;
  padding: 0.0625rem 0.1875rem;
  border-radius: 2px;
}

.diff-demo-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8125rem;
  color: var(--gray);
}

.diff-reviewer {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
}

.diff-reviewer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.diff-count {
  margin-left: auto;
  font-weight: 600;
  color: var(--orange);
}

/* ============================================
   Features Grid
   ============================================ */

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

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(224, 106, 44, 0.1);
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================
   Steps
   ============================================ */

.steps {
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.step-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================
   Security
   ============================================ */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.security-main {
  grid-column: 1 / -1;
}

.security-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

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

.security-main {
  padding: 2.5rem;
  text-align: center;
  border: 2px solid var(--anthracite);
}

.security-main:hover {
  transform: none;
}

.security-icon-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--anthracite);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.security-main h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.security-main p {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.security-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.security-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--anthracite);
  min-width: 140px;
}

.flow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(224, 106, 44, 0.1);
  color: var(--orange);
}

.security-flow-arrow {
  font-size: 1.25rem;
  color: var(--gray);
  margin-top: -1.25rem;
}

.encrypted-demo {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.encrypted-demo-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.5rem;
  text-align: left;
}

.encrypted-demo-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--anthracite);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.encrypted-demo-arrow {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
  color: var(--orange);
}

.encrypted-demo-block {
  background: var(--anthracite);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}

.encrypted-demo-block code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
  word-break: break-all;
  white-space: pre-wrap;
}

.security-comparison {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.comparison-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-col {
  padding: 2rem;
}

.comparison-bad {
  background: #FEF2F2;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-good {
  background: #F0FDF4;
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.comparison-bad .comparison-header {
  color: #B91C1C;
}

.comparison-good .comparison-header {
  color: #15803D;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comparison-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--anthracite);
}

.comparison-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.comparison-bad .comparison-list li::before {
  content: '\2717';
  color: #B91C1C;
}

.comparison-good .comparison-list li::before {
  content: '\2713';
  color: #15803D;
}

.security-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(30, 30, 30, 0.06);
  color: var(--anthracite);
  margin-bottom: 1.25rem;
}

.security-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.security-card p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================
   Pricing
   ============================================ */

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

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pricing-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--grey-500);
  font-size: 0.9375rem;
}

.pricing-card {
  position: relative;
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all var(--transition);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-featured {
  border-color: var(--orange);
  border-width: 2px;
  transform: scale(1.04);
}

.pricing-featured:hover {
  transform: scale(1.06);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 100px;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.pricing-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--anthracite);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--anthracite);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  text-align: center;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .features-grid,
  .pricing-grid,
  .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-featured {
    transform: scale(1);
  }

  .pricing-featured:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }

  .nav-login {
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile menu open */
  .nav.menu-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
  }

  .nav.menu-open .nav-cta {
    display: flex;
    position: absolute;
    top: calc(72px + 100%);
    left: 1.5rem;
    right: 1.5rem;
  }

  .nav-toggle span:nth-child(1) {
    transition: all 0.3s ease;
  }

  .nav-toggle span:nth-child(2) {
    transition: all 0.3s ease;
  }

  .nav-toggle span:nth-child(3) {
    transition: all 0.3s ease;
  }

  .nav.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .security-flow-arrow {
    display: none;
  }

  .security-flow {
    gap: 1.5rem;
  }

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

  .comparison-bad {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .step {
    flex-direction: column;
    gap: 1rem;
  }
}
