/* ========================================
   Sathi Landing Page — Styles
   ======================================== */

/* --- Design Tokens --- */
:root {
  --primary: #065f46;
  --primary-light: #047857;
  --accent: #10b981;
  --bg: #fafdf7;
  --card: #ffffff;
  --border: #e2e8e0;
  --text-primary: #1a2e1a;
  --text-secondary: #64748b;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --radius: 14px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: white;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
  color: white;
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.88;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-outline:hover {
  border-color: white;
}

/* --- Section Shared --- */
.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0;
}

.steps-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.steps-tab {
  padding: 10px 28px;
  border-radius: 24px;
  border: 2px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  background: transparent;
  color: var(--text-primary);
  user-select: none;
}

.steps-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.steps-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.step-number {
  width: 52px;
  height: 52px;
  background: #ecfdf5;
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 18px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- About --- */
.about {
  padding: 100px 0;
  background: var(--card);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.about-stat h3 {
  font-size: 1.75rem;
  color: var(--primary);
  font-weight: 800;
}

.about-stat p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.about-illustration {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 24px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
}

.contact-form {
  max-width: 540px;
  margin: 0 auto;
  background: var(--card);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
}

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

.form-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.form-success {
  background: #ecfdf5;
  color: var(--primary);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  display: none;
  margin-bottom: 20px;
}

.form-general-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  display: none;
  margin-bottom: 20px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: white;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

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

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

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- i18n: hide the inline English copy until translations are applied.
       Only set for non-English visitors, and always cleared by a timeout. --- */
.i18n-loading body {
  visibility: hidden;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.lang-trigger:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-trigger:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.lang-globe {
  font-size: 0.95rem;
}

.lang-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.lang-switcher.open .lang-caret {
  transform: rotate(180deg);
}

.lang-list {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}

.lang-switcher.open .lang-list {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.lang-option:hover {
  background: var(--bg);
}

.lang-option.active {
  color: var(--primary);
  font-weight: 700;
  background: #ecfdf5;
}

/* --- Coming Soon --- */
.coming-soon-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
  color: white;
}

.cs-lang {
  display: flex;
  justify-content: flex-end;
  padding: 20px 24px 0;
}

/* On the dark gradient the dropdown panel stays light for contrast. */
.cs-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 64px;
}

.cs-card {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

.cs-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.cs-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cs-heading {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.cs-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

.cs-form {
  max-width: 420px;
  margin: 0 auto;
}

.cs-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.cs-field {
  display: flex;
  gap: 10px;
}

.cs-field input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), background var(--transition);
}

.cs-field input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.cs-field input:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

.cs-field input.error {
  border-color: #fecaca;
  background: rgba(220, 38, 38, 0.2);
}

.cs-field .btn-primary {
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.cs-field .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cs-error {
  display: none;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fecaca;
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .steps-grid {
    gap: 24px;
  }

  .about-inner {
    gap: 40px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

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

  /* In the collapsed menu the switcher stacks with the links, and its
     dropdown opens left-aligned under the trigger rather than off-screen. */
  .nav-links .lang-switcher {
    align-self: flex-start;
    margin-top: 4px;
  }

  .nav-links .lang-list {
    right: auto;
    left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 120px 0 70px;
  }

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

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

  .hero-buttons a {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .how-it-works {
    padding: 60px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .about {
    padding: 60px 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-illustration {
    height: 220px;
    order: -1;
  }

  .about-stats {
    gap: 24px;
  }

  .contact {
    padding: 60px 0;
  }

  .contact-form {
    padding: 24px;
  }

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

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

  .footer-links {
    gap: 20px;
  }
}

/* --- Responsive: Small Mobile --- */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons a {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
  }

  .steps-tabs {
    flex-direction: column;
    align-items: center;
  }

  .steps-tab {
    width: 200px;
    text-align: center;
  }

  .cs-heading {
    font-size: 1.9rem;
  }

  .cs-field {
    flex-direction: column;
  }

  .cs-field .btn-primary {
    width: 100%;
  }
}
