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

:root {
  --teal-dark: #003d3d;
  --teal-mid: #005050;
  --teal-light: #005f5f;
  --teal-card: rgba(0, 60, 60, 0.7);
  --purple: #6a0dad;
  --purple-light: #8b1dd8;
  --white: #ffffff;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Navbar ===== */
.navbar {
  background: #004d4d;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { height: 28px; width: auto; }

.search {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.search input::placeholder { color: rgba(255,255,255,0.6); }
.search input:focus {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.lang-btn .chevron { width: 16px; height: 16px; }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  min-width: 180px;
  z-index: 50;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: block;
  padding: 10px 16px;
  color: #333;
  font-size: 14px;
  transition: background 0.15s;
}
.lang-menu a:hover { background: #f0f0f0; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 32px;
  background: linear-gradient(135deg, #003d3d 0%, #005f5f 40%, #006655 70%, #004d4d 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-text { max-width: 460px; }
.hero-text h1 {
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}
.hero-visual { flex-shrink: 0; }
.hero-visual img {
  width: 420px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ===== Main Section ===== */
.main-section {
  flex: 1;
  padding: 40px 24px;
  background: linear-gradient(180deg, #005050 0%, #003d3d 100%);
}
.cards-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Info Cards (left & right) */
.info-card {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--teal-card);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
}
.info-card p { margin-bottom: 12px; }

.card-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.logo-icon { width: 40px; height: 40px; }
.logo-eyebrow {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.logo-title {
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.yc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}
.yc-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
}
.yc-name {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}
.yc-name sup { font-size: 11px; color: rgba(255,255,255,0.7); }
.yc-sub {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
}
.yc-list {
  list-style: none;
  margin-top: 8px;
}
.yc-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}
.yc-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
}

.card-action { margin-top: 24px; }
.btn-outline {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Login Card (center) */
.login-card {
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}
.login-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}
.login-sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}
.login-form { display: flex; flex-direction: column; }
.login-form label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
}
.login-form input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font);
  margin-bottom: 16px;
  outline: none;
  transition: box-shadow 0.2s;
}
.login-form input:focus { box-shadow: 0 0 0 2px var(--purple); border-color: var(--purple); }
.btn-primary {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.signup-text {
  font-size: 14px;
  color: #777;
  text-align: center;
  margin-top: 16px;
}
.signup-text a {
  color: #0d9488;
  font-weight: 500;
}
.signup-text a:hover { text-decoration: underline; }
.help-link {
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}
.help-link a {
  font-size: 14px;
  color: #888;
}
.help-link a:hover { color: #555; text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  background: #003333;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--white); }
.footer .sep { color: rgba(255,255,255,0.3); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 480px; }
  .hero-content { flex-direction: column; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-text h1 { font-size: 26px; }
  .hero-visual img { width: 100%; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .navbar { flex-wrap: wrap; }
  .search { order: 3; max-width: 100%; flex-basis: 100%; }
  .hero { padding: 36px 20px; }
  .main-section { padding: 28px 16px; }
}