/* Light theme: warm cream paper, deep ink, copper accent.
   The token NAMES come from the old dark theme and are kept so every page re-themes at once:
   --black = page background (cream), --silver = text (ink), --copper-lite = the readable copper for text/links. */
:root {
  --black: #F4F8F5;
  --black-soft: #E6EFEB;
  --panel: #FFFFFF;
  --panel-line: #D2DFDA;
  --silver: #0B3A41;
  --silver-dim: #3C6065;
  --silver-faint: #5F8083;
  --copper: #C8642B;
  --copper-lite: #A6511F;
  --copper-deep: #8A3F12;
  --copper-glow: #E8A56F;
  --font-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper-lite);
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
}

h2 {
  font-size: clamp(34px, 5.5vw, 64px);
  background: linear-gradient(180deg, var(--silver) 0%, var(--silver-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { line-height: 1.6; color: var(--silver-dim); margin: 0; }

.copper-text {
  background: linear-gradient(135deg, var(--copper-lite), var(--copper) 55%, var(--copper-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  backdrop-filter: blur(14px);
  background: rgba(244,248,245,0.86);
  border-bottom: 1px solid rgba(11,58,65,0.09);
}
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 38px; width: auto; }
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--silver);
  white-space: nowrap;
}
.nav-wordmark small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--copper-lite); margin-top: 2px; }
@media (max-width: 420px) { .nav-wordmark small { display: none; } }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.nav-links a:hover { color: var(--copper-lite); }
.nav-cta {
  border: 1px solid var(--copper);
  color: var(--copper-lite);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-cta:hover { background: var(--silver); border-color: var(--silver); color: var(--black); }
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--silver); transition: transform .25s ease, opacity .25s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 67px; left: 0; right: 0;
  background: rgba(244,248,245,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,58,65,0.1);
  flex-direction: column;
  padding: 6px 24px 20px;
  z-index: 99;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a {
  padding: 15px 0;
  border-bottom: 1px solid rgba(11,58,65,0.08);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--silver-dim);
}
.nav-mobile-panel a:last-child { border-bottom: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;   /* headline first, the stats row underneath (they used to squeeze in beside it) */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 60% 55% at 50% 46%, rgba(244,248,245,0.78) 0%, rgba(244,248,245,0.3) 55%, transparent 78%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-content .eyebrow { display: block; margin-bottom: 18px; }
.hero-content h1 {
  font-size: clamp(44px, 9vw, 108px);
  color: var(--silver);
}
.hero-content h1 .accent {
  background: linear-gradient(135deg, var(--copper-lite), var(--copper) 55%, var(--copper-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: clamp(15px, 1.6vw, 18px);
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-body);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn-primary {
  background: var(--silver);
  color: var(--black);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--copper-lite); box-shadow: 0 14px 30px -12px rgba(138,63,18,0.55); }
.btn-ghost {
  border: 1px solid rgba(11,58,65,0.28);
  color: var(--silver);
}
.btn-ghost:hover { border-color: var(--copper-lite); color: var(--copper-lite); transform: translateY(-2px); }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-faint);
  margin-top: 4px;
}

/* ---------- sections ---------- */
.section { padding: 130px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head p { margin-top: 18px; font-size: 17px; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.about-copy p + p { margin-top: 18px; }
.about-card {
  background: linear-gradient(155deg, var(--panel), var(--black-soft));
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  padding: 34px;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.about-card:hover { border-color: rgba(217,122,61,0.4); }
.about-card h3 { font-size: 22px; margin-bottom: 14px; }
.about-card .founder-role { color: var(--copper-lite); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; display: block; }

/* ---------- tilt cards (3D) ---------- */
.tilt-card {
  background: linear-gradient(155deg, var(--panel), var(--black-soft));
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  padding: 28px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .15s ease-out, border-color .3s ease, box-shadow .3s ease;
  position: relative;
}
.tilt-card:hover {
  border-color: rgba(200,100,43,0.55);
  box-shadow: 0 24px 50px -22px rgba(60,40,20,0.35);
}
.tilt-card-inner { transform: translateZ(30px); }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--copper-glow), var(--copper));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
  color: #0B3A41;
}
.service-card h3 { font-size: 18px; text-transform: none; letter-spacing: 0; margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; }
.service-card p { font-size: 14px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.service-tag {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silver-faint);
  border: 1px solid var(--panel-line);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---------- freelancers ---------- */
.freelancers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.freelancer-card { cursor: pointer; }
.f-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-glow), var(--copper));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: #0B3A41;
  margin-bottom: 16px;
  overflow: hidden;
}
.f-avatar img { width: 100%; height: 100%; object-fit: cover; }
.f-name { font-size: 19px; font-weight: 700; }
.f-platform {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-lite);
  border: 1px solid rgba(217,122,61,0.35);
  padding: 3px 10px;
  border-radius: 999px;
}
.f-bio { margin-top: 14px; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.f-skills { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.f-skills span {
  font-size: 10px;
  color: var(--silver-faint);
  border: 1px solid var(--panel-line);
  padding: 3px 8px;
  border-radius: 999px;
}
.empty-note { color: var(--silver-faint); font-size: 14px; padding: 40px 0; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color .25s ease, transform .25s ease;
}
.contact-method:hover { border-color: rgba(217,122,61,0.4); transform: translateX(4px); }
.contact-method .cm-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--copper-glow), var(--copper));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: #0B3A41;
}
.cm-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--silver-faint); }
.cm-value { font-size: 15px; font-weight: 600; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver-faint);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--silver);
  padding: 13px 15px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--copper);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* checkbox option grid — the `.form-field input` rule above stretches every input to full
   width, which is what wrecked the old inline checkboxes; these selectors are more specific
   on purpose so they win without !important */
.check-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .check-group { grid-template-columns: 1fr; } }
.form-field .check-option {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 13px 15px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px;
  font-size: 13.5px; line-height: 1.35; color: var(--silver-dim);
  text-transform: none; letter-spacing: 0; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.form-field .check-option:hover { border-color: rgba(217,122,61,0.45); }
.form-field .check-option:has(input:checked) { border-color: var(--copper); background: rgba(217,122,61,0.08); color: var(--copper-lite); }
.form-field .check-option input[type="checkbox"] {
  width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0;
  accent-color: var(--copper); cursor: pointer;
}

.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--silver-faint);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: color .2s ease;
}
.password-toggle:hover { color: var(--copper-lite); }
.password-toggle svg { width: 19px; height: 19px; }
.form-status { margin-top: 14px; font-size: 13px; }
.form-status.ok { color: #1F8A4C; }
.form-status.err { color: #B4432B; }

/* ---------- page hero (non-home pages) ---------- */
.page-hero {
  padding: 150px 0 70px;
  background: radial-gradient(ellipse at 20% 0%, rgba(200,100,43,0.13) 0%, transparent 62%);
  border-bottom: 1px solid var(--panel-line);
}
.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin-top: 14px;
  color: var(--silver);
}
.page-hero p { margin-top: 20px; max-width: 620px; font-size: 16px; }

/* ---------- values / process ---------- */
.value-grid, .process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.process-step .step-num {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--copper); color: var(--copper-lite);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 16px; text-transform: none; font-family: var(--font-body); font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--panel-line); padding: 22px 0; }
.faq-item h3 { font-size: 16px; text-transform: none; font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; color: var(--silver); }
.faq-item p { font-size: 14px; }

/* ---------- checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { padding-left: 26px; position: relative; font-size: 14.5px; color: var(--silver-dim); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--copper-lite); font-weight: 700;
}

/* ---------- cta band ---------- */
.cta-band {
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  padding: 54px 40px;
  text-align: center;
  background: linear-gradient(155deg, var(--panel), var(--black-soft));
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band .hero-ctas { justify-content: center; margin-top: 26px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--panel-line);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-logo { height: 30px; margin: 0 auto 14px; opacity: .85; }
.footer-tag { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--silver-faint); }
.footer-copy { margin-top: 18px; font-size: 12px; color: var(--silver-faint); }

/* ---------- "Continue with Google / LinkedIn" ---------- */
.social-block { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 6px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; padding: 13px 18px; border-radius: 12px; border: 1px solid var(--panel-line); background: var(--panel); color: var(--silver); font-family: var(--font-body); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.social-btn:hover { border-color: var(--copper); transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(60,40,20,0.5); }
.social-btn svg { width: 20px; height: 20px; flex: none; }
.social-or { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--silver-faint); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.social-or::before, .social-or::after { content: ''; flex: 1; height: 1px; background: var(--panel-line); }
.social-err { color: #B4432B; font-size: 13px; }
.social-err:empty { display: none; }

/* ---------- "Install app" button (top bar) + the iPhone guide ---------- */
.nav-install { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 12px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--copper); background: rgba(200,100,43,0.09); color: var(--copper-lite); font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease; white-space: nowrap; }
.nav-install[hidden] { display: none; }
.nav-install svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.nav-install:hover { background: var(--copper); color: #fff; }
.nav-links + .nav-install { margin-left: 18px; }
@media (max-width: 860px) { .nav-install { margin-left: auto; } }
@media (max-width: 520px) { .nav-install { padding: 9px 11px; margin-right: 8px; } .nav-install span { display: none; } }
.pwa-sheet { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(11,58,65,0.55); backdrop-filter: blur(3px); }
.pwa-card { width: min(440px, 100%); background: #FFFFFF; color: #0B3A41; border-radius: 22px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(11,58,65,0.6); }
.pwa-card h3 { font-size: 20px; margin-bottom: 12px; }
.pwa-card ol { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; font-size: 14.5px; }
.pwa-card p { font-size: 13px; margin-bottom: 18px; }
.pwa-share { display: inline-flex; vertical-align: middle; }
.pwa-share svg { width: 18px; height: 18px; fill: var(--copper-lite); }
.pwa-close { width: 100%; padding: 13px; border-radius: 999px; border: none; background: #0B3A41; color: #F4F8F5; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; cursor: pointer; }

/* ---------- badges used on profiles, cards, inbox and admin ---------- */
.verified-badge { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; color: #1B7F54; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.verified-badge svg { width: 18px; height: 18px; flex: none; }
.verified-badge.big { background: rgba(27,127,84,0.1); border: 1px solid rgba(27,127,84,0.35); padding: 3px 10px 3px 6px; border-radius: 999px; font-size: 12px; margin-left: 8px; }
.verified-badge.big svg { width: 16px; height: 16px; }
.verified-badge.lg { margin-right: 9px; filter: drop-shadow(0 2px 4px rgba(27,127,84,0.28)); }
.verified-badge.lg svg { width: 28px; height: 28px; }
.f-name { display: flex; align-items: center; }
.profile-name { display: flex; align-items: center; flex-wrap: wrap; }
.profile-name .verified-badge.lg svg { width: 38px; height: 38px; }
.thread-name { display: flex; align-items: center; }
.thread-name .verified-badge.lg { margin-right: 7px; }
.thread-name .verified-badge.lg svg { width: 22px; height: 22px; }
.dash-name-row { display: flex; align-items: center; }
.dash-name-row .verified-badge.lg svg { width: 32px; height: 32px; }
.country-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--silver-dim); letter-spacing: 0.02em; }
.country-badge .flag { width: 18px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11,58,65,0.15); object-fit: cover; display: inline-block; }
.thread-sub .country-badge { margin-top: 0; font-size: 12px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-stats { gap: 30px; }
}
