/* Marketing site for Latido Hub - matching app look and feel */

/* Color variables from app_theme.dart */
:root {
  --color-midnight: #0D1B2A;
  --color-navy: #1B2D3F;
  --color-navy-light: #243447;
  --color-navy-border: #2E4057;
  --color-amber: #E8A838;
  --color-amber-light: #F5C46A;
  --color-amber-dim: rgba(232, 168, 56, 0.2);
  --color-text-primary: #F0EDE6;
  --color-text-secondary: #8FA3B1;
  --color-text-disabled: #4A6070;
  --color-success: #4CAF82;
  --color-warning: #E8A838;
  --color-danger: #E05C5C;
  --color-active: #4C9FE8;
  --color-intensity-low: #4CAF82;
  --color-intensity-medium: #E8A838;
  --color-intensity-high: #E05C5C;
  --color-intensity-unset: #4A6070;
}

/* Font faces */
@font-face {
  font-family: 'DMSerifDisplay';
  src: url('DMSerifDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DMSerifDisplay';
  src: url('DMSerifDisplay-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DMSans';
  src: url('DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DMSans';
  src: url('DMSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DMSans';
  src: url('DMSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: 'DMSans', sans-serif;
  background-color: var(--color-midnight);
  color: var(--color-text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DMSerifDisplay', serif;
  color: var(--color-text-primary);
  line-height: 1.2;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--color-amber);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--color-navy);
  border-bottom: 1px solid var(--color-navy-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header .logo img {
  height: 40px;
  width: auto;
}

.header .logo span {
  font-family: 'DMSerifDisplay', serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.header nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.header nav a {
  font-size: 1rem;
  color: var(--color-text-secondary);
  transition: color 0.3s;
}

.header nav a:hover,
.header nav a.active {
  color: var(--color-text-primary);
}

/* Hero section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background-color: var(--color-midnight);
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  flex: 1 1 400px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}

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

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-amber);
  color: var(--color-midnight);
}

.btn-primary:hover {
  background-color: var(--color-amber-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 168, 56, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-amber);
}

.btn-secondary:hover {
  background-color: rgba(232, 168, 56, 0.1);
  transform: translateY(-2px);
}

/* Hero image placeholder */
.hero-image {
  flex: 1 1 400px;
  min-width: 300px;
}

.hero-image img {
  max-width: 400px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Features section */
.features {
  padding: 4rem 0;
  background-color: var(--color-navy);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-midnight);
  border: 1px solid var(--color-navy-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-color: var(--color-amber);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-amber-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* How it works section */
.how-it-works {
  padding: 4rem 0;
  background-color: var(--color-midnight);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-navy);
  border-radius: 16px;
  border: 1px solid var(--color-navy-border);
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: var(--color-amber);
  color: var(--color-midnight);
  border-radius: 50%;
  font-family: 'DMSerifDisplay', serif;
  font-size: 1.5rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step p {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* Call to action section */
.cta {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-navy), var(--color-midnight));
}

.cta h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.cta p {
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  padding: 3rem 0 1.5rem;
  background-color: var(--color-navy);
  border-top: 1px solid var(--color-navy-border);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-family: 'DMSerifDisplay', serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-amber);
}

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

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--color-text-secondary);
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--color-text-primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-navy-border);
  text-align: center;
  color: var(--color-text-disabled);
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

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

  .header nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

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

  .btn {
    width: 100%;
    padding: 1rem;
  }

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