/* Klasgemak — Landing Page Brand CSS
   Drop into your Firebase Hosting project.
   Add the Google Fonts <link> to your HTML <head> first:

   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,600;1,400&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap" rel="stylesheet">
*/

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --navy:         #0E1E2C;
  --teal:         #3DD6A3;
  --amber:        #F5A623;
  --steel:        #4A6FA5;
  --off-white:    #F4F6F8;
  --surface:      #FFFFFF;
  --text-primary: #0E1E2C;
  --text-muted:   #6B7A8D;
  --border:       rgba(14, 30, 44, 0.10);

  --font-display: 'Lora', Georgia, serif;
  --font-ui:      'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

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

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; font-family: var(--font-ui); font-weight: 600; }

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.5rem;
}

p { color: var(--text-muted); line-height: 1.7; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}

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

.nav-badge {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  background: rgba(61, 214, 163, 0.15);
  color: var(--teal);
  border: 0.5px solid rgba(61, 214, 163, 0.3);
  letter-spacing: 0.04em;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.05;
  top: -200px; right: -150px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.06;
  bottom: -100px; left: -80px;
  pointer-events: none;
}

.hero h1 { color: #fff; position: relative; }
.hero h1 span { color: var(--teal); }
.hero .tagline { position: relative; }

.hero p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 1.5rem auto;
  font-size: 1rem;
  position: relative;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:hover  { opacity: 0.9; }
.btn:active { transform: scale(0.98); }

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

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  margin-left: 0.75rem;
}

/* ── Feature cards ────────────────────────────────────────────────────────── */
.features {
  padding: 5rem 0;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 0.5px solid var(--border);
}

.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(61, 214, 163, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg { width: 20px; height: 20px; stroke: var(--teal); fill: none; }

.feature-card h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.9rem; }

/* ── Section headings ─────────────────────────────────────────────────────── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* ── Trust badges (hero) ──────────────────────────────────────────────────── */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 5px 12px;
}

.trust-badge svg { color: var(--teal); }

/* ── Trust section ────────────────────────────────────────────────────────── */
.trust {
  padding: 5rem 0;
  background: var(--navy);
  text-align: center;
}

.trust h2 { color: #fff; }

.trust-subtitle {
  color: rgba(255, 255, 255, 0.5);
  max-width: 580px;
  margin: 1rem auto 3rem;
  font-size: 0.9375rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.trust-card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.trust-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(61, 214, 163, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}

.trust-icon svg { width: 20px; height: 20px; stroke: var(--teal); fill: none; }

.trust-card h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1rem; }
.trust-card p  { font-size: 0.875rem; color: rgba(255, 255, 255, 0.45); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.875rem;
}

footer a { color: var(--teal); text-decoration: none; }

/* ── Language toggle ──────────────────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 3px;
}

.lang-toggle button {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.15s;
}

.lang-toggle button.active {
  background: var(--teal);
  color: var(--navy);
}

/* ── Login card ───────────────────────────────────────────────────────────── */
.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 400px;
  margin: 0 auto;
  border: 0.5px solid var(--border);
}

.login-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border);
  background: var(--off-white);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}

input:focus { border-color: var(--teal); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .btn-ghost { display: none; }
}
