/* ============================================================
   HumanSide Simulations — Shared Stylesheet
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #1B2A4A;
  --navy-light: #243660;
  --navy-dark:  #111D33;
  --amber:      #D4860A;
  --amber-light:#F0A020;
  --amber-pale: #FFF4E0;
  --teal:       #2A7A78;
  --teal-light: #3A9A98;
  --teal-pale:  #E6F4F4;
  --off-white:  #F8F6F1;
  --white:      #FFFFFF;
  --text-dark:  #1A1A2E;
  --text-mid:   #4A5568;
  --text-light: #718096;
  --border:     #E2E8F0;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(27,42,74,0.10);
  --shadow-lg:  0 8px 32px rgba(27,42,74,0.14);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --font-head:  'Outfit', sans-serif;
  --font-body:  'Inter', sans-serif;
  --max-width:  1160px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 680px;
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 120px 0; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}
.section-header p { margin-top: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(212,134,10,0.35);
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,134,10,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(42,122,120,0.30);
}
.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.transparent { background: transparent; }
.nav.scrolled    { background: var(--navy-dark); box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }

.nav-links .btn-nav {
  background: var(--amber);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: background 0.2s, transform 0.2s;
}
.nav-links .btn-nav:hover { background: var(--amber-light); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,29,51,0.92) 0%, rgba(27,42,74,0.80) 60%, rgba(42,122,120,0.40) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-height);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,134,10,0.18);
  border: 1px solid rgba(212,134,10,0.4);
  color: var(--amber-light);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; max-width: 780px; }
.hero h1 span { color: var(--amber-light); }
.hero .lead { color: rgba(255,255,255,0.78); margin-bottom: 2.25rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber-light);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.72); margin: 1rem auto 0; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-body { padding: 1.75rem; }
.card-img img { width: 100%; height: 220px; object-fit: cover; }

/* Simulation cards */
.sim-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.sim-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.sim-card-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.sim-card-body { padding: 1.5rem 1.75rem; flex: 1; }
.sim-card-footer { padding: 1rem 1.75rem 1.5rem; }

.sim-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.tag-available  { background: #E6F9EE; color: #1A7A3A; }
.tag-development{ background: #E6F4F4; color: var(--teal); }
.tag-coming     { background: #F0F4FF; color: var(--navy); }

.sim-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ── Grid Systems ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }

/* ── Feature / Icon Rows ── */
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.icon-navy  { background: rgba(27,42,74,0.08); }
.icon-amber { background: var(--amber-pale); }
.icon-teal  { background: var(--teal-pale); }

/* ── Badges / Pills ── */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}
.badge-amber { background: var(--amber-pale); color: var(--amber); }
.badge-teal  { background: var(--teal-pale);  color: var(--teal); }
.badge-navy  { background: rgba(27,42,74,0.08); color: var(--navy); }

/* ── Testimonial / Quote ── */
.quote-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
}
.quote-card::before {
  content: '"';
  font-family: var(--font-head);
  font-size: 5rem;
  color: var(--amber);
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 2rem;
  opacity: 0.5;
}
.quote-text { font-size: 1.1rem; line-height: 1.75; color: rgba(255,255,255,0.88); padding-top: 1.5rem; }
.quote-attr { margin-top: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ── Dividers ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.divider-amber {
  height: 3px;
  width: 60px;
  background: var(--amber);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── About / Founder Card ── */
.founder-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 4px solid var(--amber-pale);
}

.founder-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ── Process Steps ── */
.steps {
  display: flex;
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--navy);
}
.step-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* ── Screenshot Gallery ── */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.screenshot-gallery img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.screenshot-gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.screenshot-gallery img.featured {
  grid-column: 1 / -1;
  height: 380px;
}

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-label .required { color: var(--amber); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,122,120,0.12);
}

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A5568' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

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

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Background Variants ── */
.bg-off-white { background: var(--off-white); }
.bg-navy      { background: var(--navy); }
.bg-navy-dark { background: var(--navy-dark); }
.bg-teal-pale { background: var(--teal-pale); }
.bg-amber-pale{ background: var(--amber-pale); }

/* ── CTA Sections ── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,0.72); margin-bottom: 2rem; }

/* ── Footer ── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 36px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--amber-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--amber-light); }

/* ── Accordion ── */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.5rem;
  background: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.accordion-btn:hover { background: var(--off-white); }
.accordion-btn .acc-icon { transition: transform 0.3s; font-size: 1.1rem; color: var(--teal); }
.accordion-item.open .acc-icon { transform: rotate(45deg); }
.accordion-body {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.accordion-item.open .accordion-body { max-height: 500px; padding: 0 1.5rem 1.25rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--navy-dark);
    padding: 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { width: 100%; padding: 0.75rem 1rem; }
  .nav-links .btn-nav { margin-left: 0; text-align: center; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .steps { flex-direction: column; gap: 1.5rem; }
  .steps::before { display: none; }

  .founder-card { flex-direction: column; align-items: center; text-align: center; }
  .founder-credentials { justify-content: center; }

  .screenshot-gallery { grid-template-columns: 1fr; }
  .screenshot-gallery img.featured { height: 240px; }
  .screenshot-gallery img { height: 180px; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-stats { gap: 1.5rem; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; padding: 80px 0 60px; }
}
