/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --terracotta: #c1440e;
  --terracotta-dark: #a03a0c;
  --orange: #e07b39;
  --orange-light: #f4a261;
  --teal: #2a9d8f;
  --teal-dark: #1f7a6f;
  --gold: #e9c46a;
  --cream: #fef9f0;
  --warm-gray: #f7f2ec;
  --text: #2b2523;
  --text-light: #5e534d;
  --text-muted: #9a8f88;
  --white: #ffffff;
  --border: #e5ddd5;
  --red: #c0392b;
  --shadow: 0 2px 8px rgba(43,37,35,0.08);
  --shadow-lg: 0 4px 20px rgba(43,37,35,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1140px;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--terracotta-dark);
}

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

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--warm-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* === Navigation === */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--terracotta);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.lang-switch {
  background: var(--warm-gray);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.lang-switch:hover {
  background: var(--border);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--orange) 60%, var(--teal) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.hero h2 {
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  background: var(--white);
  color: var(--terracotta);
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.18);
  color: var(--terracotta-dark);
}

/* === Cards Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card h3 {
  margin-bottom: 0.5rem;
}

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

.card h3 a:hover {
  color: var(--terracotta);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta);
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

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

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

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === Page Content === */
.page-hero {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--orange) 70%, var(--teal) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.page-content {
  padding: 3rem 0;
}

.page-content .container {
  max-width: 780px;
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--terracotta-dark);
}

.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.4rem;
  color: var(--text-light);
}

/* === CTA Box === */
.cta-box {
  background: var(--cream);
  border: 2px solid var(--terracotta);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h3 {
  margin-bottom: 0.5rem;
  color: var(--terracotta-dark);
}

.cta-box p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: background var(--transition);
}

.btn:hover {
  background: var(--terracotta-dark);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-dark);
  color: var(--white);
}

/* === Signup Bar (Sticky Bottom) === */
.signup-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 2px solid var(--terracotta);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.signup-bar.visible {
  transform: translateY(0);
}

.signup-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.signup-bar h3 {
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--terracotta);
  font-size: 1.1rem;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}

.form-field {
  flex: 1;
  min-width: 140px;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-light);
}

.form-field .required {
  color: var(--red);
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--terracotta);
}

.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 2px;
  flex-shrink: 0;
}

.photo-upload .photo-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.photo-upload .photo-hint {
  font-size: 0.55rem;
  color: var(--terracotta);
  font-weight: 600;
  white-space: nowrap;
}

.photo-upload svg {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 50%;
  background: var(--warm-gray);
  border: 2px dashed var(--border);
  color: var(--text-muted);
}

.photo-upload:hover svg {
  border-color: var(--terracotta);
}

.photo-upload img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.signup-submit {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.signup-submit:hover {
  background: var(--terracotta-dark);
}

.signup-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup-message {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.signup-message.success {
  color: #27ae60;
}

.signup-message.error {
  color: var(--red);
}

.signup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

/* === Footer === */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

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

.footer h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

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

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

.footer-bottom a {
  color: rgba(255,255,255,0.7);
}

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

/* === Responsive === */
@media (max-width: 768px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero h2 { font-size: 1.15rem; }

  .section { padding: 2.5rem 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: block;
  }

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

  .signup-form {
    flex-direction: column;
  }

  .form-field {
    min-width: 100%;
  }

  .signup-bar-inner {
    padding: 0.75rem 1rem;
  }

  body {
    padding-bottom: 80px;
  }

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

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