/* RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #FFFFFF;
  min-height: 100vh;
}

@keyframes pageFadeIn { from { opacity: 0 } to { opacity: 1 } }

body {
  font-family: 'Inter', sans-serif;
  color: #111;
  animation: pageFadeIn 0.22s ease-out;
}

/* NAV */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 80px;
  padding: 0 48px;
  box-shadow: 0px 4px 4px 0px #00000040;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.nav-logo img {
  width: 75px;
  height: 74px;
  object-fit: contain;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-user-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 600;
  color: #145DA0;
}

.signin-btn,
.signup-btn {
  height: 40px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 12px;
  border: none;
  white-space: nowrap;
}

/* Sign In */
.signin-btn {
  background: #ffffff;
  color: #50D101;
  border: 1px solid #50D101;
}

.signin-btn:hover {
  background: #f5fff0;
}

/* Sign Up */
.signup-btn {
  background: #50D101;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.signup-btn:hover {
  background: #44b801;
}

/* HERO */
.hero {
  text-align: center;
  padding: 32px 48px 56px;
  background: #FFFFFF;
}

.hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: #111;
}

.hero-subtitle {
  font-size: 28px;
  color: #444;
  margin-top: 12px;
  white-space: nowrap;
}

.hero-logo {
  margin: 36px auto;
}

.hero-logo img {
  width: 260px;
  height: 260px;
  object-fit: contain;
}

/* SEARCH BAR */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 894px;
  margin: 0 auto;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #1FABCD;
  border-radius: 28px;
  height: 84px;
  padding: 0 16px;
  background: #fff;
}

.search-logo-btn img {
  height: 68px;
  width: 68px;
  object-fit: contain;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
  background: transparent;
}

.icon-btn {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.leaf-btn img {
  height: 30px;
  width: 30px;
  object-fit: contain;
}

.mic-btn img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.lang-pill {
  background: #145DA0;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arimo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* SAMPLE PROMPTS */
.prompts-section {
  padding: 56px 48px;
  text-align: center;
}

.prompts-section h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 28px;
  color: #111;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(3, 250px);
  column-gap: 48px;
  row-gap: 32px;
  margin: 0 auto;
  width: fit-content;
}

.prompt-card {
  width: 250px;
  border: 1px solid #1FABCD;
  border-radius: 20px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: #333;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.prompt-card:hover {
  border-color: #145DA0;
  box-shadow: 0 2px 10px rgba(20,93,160,0.15);
}

/* TRUSTED */
.trusted {
  padding: 56px 48px;
  text-align: center;
}

.section-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #111;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 36px;
  white-space: nowrap;
}

.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.logo-card {
  width: 195px;
  height: 95px;
  border: 1px solid #1FABCD;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.logo-card img {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
}

/* PURPOSE */
.purpose {
  padding: 48px 48px 64px;
  text-align: center;
}

.purpose .section-label {
  margin-bottom: 18px;
}

.purpose-box {
  border: 1.5px solid #1FABCD;
  border-radius: 20px;
  padding: 22px 48px;
  font-size: 16px;
  color: #444;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.6;
  white-space: nowrap;
}

/* FOOTER */
footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 24px 48px 14px;
  margin-bottom: 14px;
}

.footer-nav a {
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #145DA0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px -4px 4px 0px #0000001A;
  padding: 14px 48px;
  height: 47px;
}

.footer-logo {
  height: 40px;
  object-fit: contain;
}

.footer-address {
  text-align: right;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* SIGN IN / LOGIN MODALS
 * NOTE: These modal rules are duplicated here from dashboard.css because
 * index.html loads styles.css (not dashboard.css). If a shared base stylesheet
 * is introduced in future, these blocks should move there and be removed from
 * both files to avoid divergence. */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-card { background: #fff; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); padding: 24px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.signin-modal-card { width: 520px; padding: 36px 48px 32px; border-radius: 24px; text-align: center; gap: 26px; }
.signin-modal-title { font-size: 16px; font-weight: 700; color: #111; white-space: nowrap; }
.signin-type-row { display: flex; justify-content: center; gap: 56px; }
.signin-type-btn { display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; }
.signin-type-icon { width: 68px; height: 68px; border-radius: 50%; background: #145DA0; display: flex; align-items: center; justify-content: center; transition: box-shadow 0.15s; }
.signin-type-btn.selected .signin-type-icon { box-shadow: 0 0 0 4px #c0d5ed; }
.signin-type-label { font-size: 14px; font-weight: 600; color: #145DA0; }
.signin-continue-btn { align-self: center; background: #145DA0; color: #fff; border: none; border-radius: 20px; padding: 13px 44px; font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.signin-continue-btn:hover { background: #0f4a82; }

/* MODAL CLOSE BUTTON */
.modal-close { position: absolute; top: 14px; left: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: #555; line-height: 1; }

/* LOGIN MODAL */
.login-modal-card { width: 440px; padding: 36px 44px 32px; border-radius: 20px; gap: 18px; }
.login-modal-title { font-size: 20px; font-weight: 700; color: #111; text-align: center; margin: 0; }
.login-tabs { display: flex; border-bottom: 1.5px solid #e0e0e0; }
.login-tab { flex: 1; background: none; border: none; border-bottom: 2.5px solid transparent; padding: 10px 0; font-size: 14px; font-weight: 500; font-family: 'Inter', sans-serif; color: #888; cursor: pointer; margin-bottom: -1.5px; transition: color 0.15s, border-color 0.15s; }
.login-tab.active { color: #145DA0; border-bottom-color: #145DA0; font-weight: 600; }
.login-fields { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field label { font-size: 13px; font-weight: 500; color: #555; }
.login-field input { border: 1px solid #1FABCD; border-radius: 10px; padding: 11px 14px; font-size: 14px; font-family: 'Inter', sans-serif; color: #333; outline: none; transition: border-color 0.15s; }
.login-field input:focus { border-color: #145DA0; }
.login-forgot { font-size: 12px; color: #145DA0; text-decoration: none; align-self: flex-end; margin-top: -8px; }
.login-forgot:hover { text-decoration: underline; }
.login-error { font-size: 12px; color: #e03e3e; min-height: 16px; margin-top: -8px; }
.login-submit-btn { background: #145DA0; color: #fff; border: none; border-radius: 20px; padding: 13px; font-size: 14px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; transition: background 0.15s; }
.login-submit-btn:hover { background: #0f4a82; }
