/* landing/static/landing/css/style.css */

/* Color palette from colorhunt.co */
:root {
  --color-primary: #355872;
  --color-secondary: #7aaace;
  --color-accent: #e9cd5f;
  --color-bg: #fff7f8;
  --color-card-bg: #f8f0f0;
  --color-text: #355872;
  --color-text-muted: #7aaace;
  --color-border: #e9cd5f;
  --color-white: #ffffff;
  --color-black: #000000;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

/* Spacing */
:root {
  --spacing-section: 4rem;
  --spacing-element: 2rem;
  --spacing-card: 1.5rem;
}

/* Typography sizing */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Language switcher (inline in navbar) */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.9rem;
}

.language-switcher a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.language-switcher a.active {
  color: var(--color-primary);
  font-weight: 700;
}

.language-switcher span {
  color: var(--color-text-muted);
  margin: 0 8px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 20px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  opacity: 0.85;
}

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

.nav-login-btn {
  background: var(--color-accent);
  color: var(--color-text);
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(233, 205, 95, 0.35);
}

/* Hero section */
.hero {
  padding: var(--spacing-section) 0;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* CTA buttons */
.cta-primary {
  background: var(--color-accent);
  color: var(--color-text);
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 205, 95, 0.3);
}

.cta-secondary {
  background: transparent;
  color: var(--color-text);
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.cta-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Sections */
section {
  padding: var(--spacing-section) 0;
}

/* Problem section */
.problem {
  background: var(--color-white);
}

/* Solution section */
.solution {
  background: var(--color-bg);
}

/* Features section */
.features {
  background: var(--color-white);
}

.features-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.features-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

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

.features-list li:before {
  content: "✓";
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 12px;
  font-size: 1.2rem;
}

/* How it works section */
.how-it-works {
  background: var(--color-bg);
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.flow-step .icon {
  font-size: 3rem;
}

.flow-step .arrow {
  font-size: 2rem;
  color: var(--color-text-muted);
}

/* For who section */
.for-who {
  background: var(--color-white);
}

/* CTA section */
.cta {
  background: var(--color-bg);
  text-align: center;
}

.cta h2 {
  margin-bottom: 1rem;
}

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

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

/* Footer */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin-bottom: 1rem;
}

footer nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.8;
}

/* Messages */
.messages {
  max-width: 600px;
  margin: 20px auto;
}

.message {
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-weight: 500;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--color-white);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: var(--color-text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover,
.close:focus {
  color: var(--color-text);
  text-decoration: none;
}

/* Form styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

/* Cards */
.card {
  background: var(--color-white);
  padding: var(--spacing-card);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--color-primary);
}

/* Responsive cards - tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .cards-2,
  .cards-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .card {
    width: 100%;
  }
}

/* Responsive cards - desktop */
@media (min-width: 1025px) {
  .cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

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

  .card {
    width: 100%;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1rem;
    --spacing-section: 3rem;
    --spacing-element: 1.5rem;
  }

  .container {
    padding: 0 12px;
  }

  .navbar-inner {
    padding: 0.6rem 12px;
  }

  .nav-brand {
    font-size: 1.1rem;
  }

  .nav-actions {
    gap: 0.75rem;
  }

  .nav-login-btn {
    padding: 7px 14px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 3rem 0;
  }

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

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

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

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 300px;
  }

  footer nav {
    flex-direction: column;
    gap: 1rem;
  }

  .cards-2,
  .cards-3 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .card {
    width: 100%;
  }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

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

  .hero p {
    font-size: 1.1rem;
  }
}
