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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--eepis-bg) 0%, #f8f4f7 100%);
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.02;
  background-image:
    repeating-linear-gradient(45deg, var(--eepis-primary) 0, var(--eepis-primary) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, var(--eepis-secondary) 0, var(--eepis-secondary) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--eepis-primary), var(--eepis-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--eepis-text-light);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 580px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.device-mockup {
  width: 300px;
  height: 600px;
  background: var(--eepis-white);
  border-radius: 40px;
  padding: 15px;
  box-shadow:
    0 2px 4px rgba(30, 11, 54, 0.04),
    0 8px 16px rgba(30, 11, 54, 0.08),
    0 16px 32px rgba(30, 11, 54, 0.12);
  position: relative;
  transition: transform 0.3s ease;
}

.device-mockup:hover {
  transform: translateY(-8px);
  box-shadow:
    0 4px 8px rgba(30, 11, 54, 0.06),
    0 12px 24px rgba(30, 11, 54, 0.1),
    0 24px 48px rgba(30, 11, 54, 0.14);
}

.device-mockup::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 25px;
  background: var(--eepis-primary);
  border-radius: 0 0 15px 15px;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f4f7, var(--eepis-bg));
  border-radius: 30px;
  padding: 40px 20px 20px;
  overflow: hidden;
}

.mockup-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mockup-header {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mockup-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eepis-primary), var(--eepis-secondary));
}

.mockup-text {
  flex: 1;
}

.mockup-line {
  height: 10px;
  background: rgba(30, 11, 54, 0.08);
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

.mockup-line.short {
  width: 60%;
}

.mockup-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-card {
  height: 120px;
  background: var(--eepis-white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(30, 11, 54, 0.06);
}

.features {
  padding: 8rem 0;
  background: var(--eepis-white);
}

.section-title {
  font-family: 'Libre Baskerville', serif;
  text-align: center;
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 4rem;
  color: var(--eepis-primary);
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 2.5rem 2rem;
  background: var(--eepis-white);
  border-radius: 12px;
  border: 1px solid rgba(30, 11, 54, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--eepis-secondary);
  border-radius: 12px 0 0 12px;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(30, 11, 54, 0.04),
    0 8px 16px rgba(30, 11, 54, 0.08),
    0 16px 32px rgba(30, 11, 54, 0.1);
  border-color: rgba(30, 11, 54, 0.12);
}

.feature-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: var(--eepis-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--eepis-text-light);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.security {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--eepis-primary) 0%, #2d1554 100%);
  color: var(--eepis-white);
}

.security-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.security-text {
  flex: 1;
}

.security-text h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.security-intro {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.75;
}

.security-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.security-features li {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.7;
}

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

.security-features strong {
  color: var(--eepis-secondary);
  font-weight: 600;
}

.security-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.security-diagram {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.diagram-node {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(202, 55, 130, 0.2);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.diagram-node:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(202, 55, 130, 0.4);
  transform: translateY(-2px);
}

.diagram-arrow {
  font-size: 1.5rem;
  color: var(--eepis-secondary);
  font-weight: 400;
}

.zero-knowledge {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--eepis-primary) 0%, #2d1554 100%);
}

.zero-knowledge-grid {
  display: flex;
  gap: 5rem;
  align-items: center;
}

.zero-knowledge-content {
  flex: 1;
}

.zero-knowledge-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--eepis-white);
}

.zero-knowledge-lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.principle-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.principle-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--eepis-secondary);
  flex-shrink: 0;
}

.principle-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--eepis-white);
}

.principle-content p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.zero-knowledge-cta {
  display: flex;
  gap: 1rem;
}

.zero-knowledge .btn-secondary {
  background: transparent;
  color: var(--eepis-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.zero-knowledge .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--eepis-white);
  transform: translateY(-1px);
}

.zero-knowledge-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.encryption-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(202, 55, 130, 0.2);
  backdrop-filter: blur(10px);
}

.flow-step {
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(202, 55, 130, 0.2);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.flow-step:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(202, 55, 130, 0.4);
  transform: scale(1.02);
}

.flow-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.flow-arrow {
  font-size: 1.5rem;
  text-align: center;
  color: var(--eepis-secondary);
  font-weight: 400;
}

.platforms {
  padding: 8rem 0;
  background: var(--eepis-bg);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.platform-card {
  padding: 3rem 2rem;
  background: var(--eepis-white);
  border-radius: 12px;
  border: 1px solid rgba(30, 11, 54, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eepis-secondary);
  border-radius: 12px 12px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-card:hover::before {
  transform: scaleX(1);
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(30, 11, 54, 0.04),
    0 8px 16px rgba(30, 11, 54, 0.08),
    0 16px 32px rgba(30, 11, 54, 0.1);
  border-color: rgba(30, 11, 54, 0.12);
}

.platform-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--eepis-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.platform-card p {
  color: var(--eepis-text-light);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.download {
  padding: 8rem 0;
  background: var(--eepis-white);
  text-align: center;
}

.download-box {
  max-width: 800px;
  margin: 0 auto;
}

.download-box h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--eepis-primary);
  letter-spacing: -0.02em;
}

.download-box p {
  font-size: 1.125rem;
  color: var(--eepis-text-light);
  margin-bottom: 3rem;
  line-height: 1.75;
}

.store-badges-large {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge-large {
  padding: 1.25rem 2.5rem;
  background: var(--eepis-primary);
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--eepis-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
  box-shadow:
    0 1px 2px rgba(30, 11, 54, 0.06),
    0 2px 4px rgba(30, 11, 54, 0.08);
}

.store-badge-large:hover {
  background: var(--eepis-secondary);
  border-color: var(--eepis-secondary);
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(30, 11, 54, 0.08),
    0 4px 8px rgba(30, 11, 54, 0.12),
    0 8px 16px rgba(30, 11, 54, 0.14);
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--eepis-white);
}

.badge-text span {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 400;
}

.badge-text strong {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

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

  .security-content {
    flex-direction: column;
  }

  .zero-knowledge-grid {
    flex-direction: column;
  }

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

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

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

  .zero-knowledge-cta {
    flex-direction: column;
    width: 100%;
  }

  .zero-knowledge-cta .btn {
    width: 100%;
  }

  .device-mockup {
    width: 250px;
    height: 500px;
  }

  .store-badges-large {
    flex-direction: column;
    align-items: center;
  }

  .store-badge-large {
    width: 100%;
    max-width: 300px;
  }

  .section-title {
    font-size: 2.25rem;
  }
}
