:root {
  --primary: #8B2332;
  --primary-dark: #6B1A26;
  --primary-light: #A83244;
  --accent: #C4A484;
  --cream: #FAF7F2;
  --white: #ffffff;
  --dark: #1A1A1A;
  --text-dark: #2D2D2D;
  --text-medium: #5A5A5A;
  --text-light: #8A8A8A;
  --border: #E8E4DE;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.btn-demo {
  background: var(--primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-demo:hover {
  background: var(--primary-dark);
  color: white !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 1rem 2rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, #FDF5F0 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: linear-gradient(180deg, 
    rgba(139, 35, 50, 0.03) 0%,
    rgba(139, 35, 50, 0.08) 30%,
    rgba(196, 164, 132, 0.1) 60%,
    rgba(139, 35, 50, 0.05) 100%
  );
  border-radius: 50%;
  transform: rotate(-15deg);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 560px;
}

.hero-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

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

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-weight: 700;
}

.hero-card-text h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.hero-card-text p {
  font-size: 0.9rem;
  color: var(--text-medium);
}

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
    letter-spacing: -1px;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(139, 35, 50, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 35, 50, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.section {
  padding: 7rem 0;
  position: relative;
}

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

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

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: none;
}

.card-number {
  display: inline-block;
  background: rgba(139, 35, 50, 0.08);
  border-radius: 4px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-points {
  list-style: none;
}

.card-points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-weight: 500;
}

.card-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  opacity: 0.2;
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before {
    display: none;
  }
}

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

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(139, 35, 50, 0.25);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto;
}

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

@media (max-width: 768px) {
  .mission-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.mission-text {
  font-size: 1.5rem;
  color: var(--dark);
  line-height: 1.6;
  font-weight: 500;
}

.mission-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mission-point {
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.mission-point:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.team-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.team-text {
  font-size: 1.25rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.required {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 35, 50, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 1.125rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(139, 35, 50, 0.3);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.honeypot {
  display: none !important;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 2rem;
  font-weight: 700;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.contact-item-icon {
  font-weight: 600;
  color: var(--primary);
}

.contact-note {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  color: var(--text-medium);
  font-size: 0.95rem;
}

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  opacity: 0.7;
  font-size: 0.95rem;
}

.footer-tagline {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--cream);
}

.login-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.login-card h1 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 700;
}

.login-card .btn-submit {
  margin-top: 0.5rem;
}

.inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.inbox-header h1 {
  font-size: 2rem;
  color: var(--dark);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  margin-left: 0.5rem;
}

.badge-new {
  background: var(--primary);
  color: var(--white);
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.message-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: transparent;
}

.message-item.unread {
  border-left: 4px solid var(--primary);
  background: var(--cream);
}

.message-item-content h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.message-item.unread h3 {
  font-weight: 700;
}

.message-item-content p {
  color: var(--text-medium);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.message-item-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
}

.message-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.message-detail-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.message-detail-header h2 {
  font-size: 1.75rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.message-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--text-medium);
  font-size: 0.95rem;
}

.message-detail-body {
  color: var(--text-dark);
  line-height: 1.8;
  white-space: pre-wrap;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

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

.btn-danger {
  background: #dc2626;
  color: var(--white);
}

.btn-danger:hover {
  background: #b91c1c;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.page-container {
  padding: 2rem 0;
  min-height: calc(100vh - 80px - 100px);
  padding-top: 100px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--primary);
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.error-page p {
  color: var(--text-medium);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
}

.modal-icon-circle {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.modal-icon-check {
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.modal-text {
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-btn {
  min-width: 140px;
}
