/* ===========================================
   HumGel - Stylesheet
   =========================================== */

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
  /* Colors */
  --bg: #FAF7F2;
  --bg-alt: #F0EBE3;
  --bg-dark: #1a2744;
  --bg-dark-2: #243454;
  --text: #1a2744;
  --text-light: #5a6580;
  --accent: #E8927C;
  --accent-hover: #d4805c;
  --teal: #00A896;
  --teal-light: #00C4AA;
  --white: #ffffff;
  --border: #e0dbd4;
  
  /* Shadows */
  --shadow: 0 4px 24px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 39, 68, 0.12);
  
  /* Gradients */
  --gradient-dark: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  --gradient-teal: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #f4a893 100%);
  
  /* Spacing */
  --section-padding: clamp(40px, 5vw, 80px);
  --container-padding: 24px;
}

/* ===========================================
   BASE STYLES
   =========================================== */
* { 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }

p { margin: 0.2rem 0 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { 
  color: var(--accent-hover); 
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ===========================================
   LAYOUT
   =========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.section {
  padding: var(--section-padding) 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Background variants */
.bg-alt {
  background: var(--bg-alt);
}

/* ===========================================
   NAVIGATION
   =========================================== */
nav {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-links .btn {
  font-size: 0.85rem;
  padding: 10px 20px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 146, 124, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.2);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--text);
}

.btn-light {
  background: var(--white);
  color: var(--text);
}

.btn-light:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(232, 146, 124, 0.35);
}

.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
  background: var(--gradient-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-visual {
  position: relative;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
}

.hero-shapes .shape-1 {
  width: 400px;
  height: 400px;
  background: var(--gradient-accent);
  top: -100px;
  right: -100px;
  opacity: 0.6;
}

.hero-shapes .shape-2 {
  width: 200px;
  height: 200px;
  background: var(--gradient-teal);
  bottom: 20%;
  right: 30%;
  opacity: 0.5;
}

.hero-shapes .shape-3 {
  width: 120px;
  height: 120px;
  background: var(--accent);
  top: 40%;
  right: 10%;
  opacity: 0.4;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* ===========================================
   CARDS & GRIDS
   =========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--text-light);
  margin: 0;
}

/* Key components grid (for the split section) */
.key-components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.key-components-grid .card {
  padding: 20px;
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-grid .card.featured {
  grid-column: span 2;
  background: var(--gradient-dark);
  color: var(--white);
  text-align: center;
  padding: 48px;
}

.bento-grid .card.featured h2 {
  color: var(--white);
}

.bento-grid .card.featured p {
  color: rgba(255, 255, 255, 0.8);
}

/* Card with background image */
.card-bg {
  background-size: cover;
  background-position: center;
}

.card-bg h3,
.card-bg p {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.card-bg p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Tables Grid */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.team-bio {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===========================================
   COMPARISON TABLE
   =========================================== */
.table-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, 
.table td {
  padding: 18px 20px;
  text-align: left;
}

.table thead th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.table thead th:first-child { 
  border-radius: 12px 0 0 12px; 
}

.table thead th:last-child { 
  border-radius: 0 12px 12px 0; 
}

.table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.table tbody tr:last-child { 
  border-bottom: none; 
}

.table tbody tr:hover { 
  background: var(--bg-alt); 
}

.table td { 
  color: var(--text-light); 
}

.table td:first-child { 
  font-weight: 500; 
  color: var(--text); 
}

/* ===========================================
   LISTS
   =========================================== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  color: var(--text-light);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.8;
}

.feature-list li strong {
  color: var(--text);
}

/* References List */
.references-list {
  columns: 3;
  column-gap: 35px;
  padding-left: 24px;
}

.references-list li {
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 0.95rem;
  break-inside: avoid;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
  background: var(--gradient-dark);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* ===========================================
   CONTACT SECTION
   =========================================== */
.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================================
   PARTNERS SECTION
   =========================================== */
.partners-section {
  padding: 50px 0;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.partners-logo {
  height: 50px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.partners-logo.tall {
  height: 80px;
  max-width: 150px;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===========================================
   UTILITIES
   =========================================== */
.note {
  color: var(--text-light);
  font-size: 0.95rem;
}

.text-center { 
  text-align: center; 
}

.text-accent {
  color: var(--accent);
}

.mb-0 { 
  margin-bottom: 0; 
}

.mt-16 {
  margin-top: 16px;
}

.mt-32 {
  margin-top: 32px;
}

/* ===========================================
   RESPONSIVE - Navigation (1200px)
   =========================================== */
@media (max-width: 1200px) {
  .nav-links { 
    gap: 14px; 
  }
  .nav-links a { 
    font-size: 0.8rem; 
  }
  .nav-links .btn { 
    font-size: 0.8rem; 
    padding: 8px 16px; 
  }
}

/* ===========================================
   RESPONSIVE - Mobile Navigation (1000px)
   =========================================== */
@media (max-width: 1000px) {
  nav .container.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
  }
  
  .brand {
    justify-self: start;
  }
  
  .menu-toggle { 
    display: block;
    justify-self: end;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 8px;
  }
  
  .nav-links.active { 
    display: flex; 
  }
  
  .nav-links a { 
    font-size: 1rem;
    padding: 12px 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .nav-links .btn { 
    font-size: 1rem; 
    padding: 14px 28px;
    min-height: 48px;
    justify-content: center;
  }
}

/* ===========================================
   RESPONSIVE - Tablets (900px)
   =========================================== */
@media (max-width: 900px) {
  .hero-inner { 
    grid-template-columns: 1fr;
    padding: 80px 24px;
  }
  
  .hero-visual { 
    display: none; 
  }
  
  .features-grid { 
    grid-template-columns: 1fr; 
  }
  
  .split { 
    grid-template-columns: 1fr; 
    gap: 40px; 
  }
  
  .tables-grid { 
    grid-template-columns: 1fr; 
  }
  
  .team-grid { 
    grid-template-columns: 1fr; 
    max-width: 400px; 
    margin: 0 auto; 
  }
}

/* ===========================================
   RESPONSIVE - Small Tablets (768px)
   =========================================== */
@media (max-width: 768px) {
  .section {
    padding: 32px 0;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .hero-inner {
    padding: 60px 20px;
  }
  
  .split h2 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }
  
  .features-grid,
  .bento-grid,
  .team-grid,
  .tables-grid {
    gap: 16px;
  }
  
  .card,
  .team-card {
    padding: 20px;
  }
  
  .references-list { 
    columns: 2;
    column-gap: 24px;
  }
  
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
    width: calc(100% + 40px);
  }
  
  .table {
    min-width: 480px;
  }
  
  .partners-logo {
    height: 40px;
    max-width: 100px;
  }
  
  .partners-logo.tall {
    height: 60px;
    max-width: 120px;
  }
}

/* ===========================================
   RESPONSIVE - Phones (600px)
   =========================================== */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  h2 {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  h4 {
    font-size: 1rem;
  }
  
  .split h2 {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
  }
  
  .section {
    padding: 24px 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section-header {
    margin-bottom: 24px;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .features-grid,
  .bento-grid,
  .team-grid,
  .tables-grid,
  .key-components-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .bento-grid .card.featured { 
    grid-column: span 1;
    padding: 32px 20px;
  }
  
  .card,
  .team-card {
    padding: 16px;
  }
  
  .team-avatar {
    width: 100px;
    height: 100px;
  }
  
  .hero-inner {
    padding: 40px 16px;
  }
  
  .hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .pill {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .btn, 
  .btn-light, 
  .btn-outline {
    padding: 12px 20px;
    font-size: 0.95rem;
    min-height: 48px;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .footer-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .references-list { 
    columns: 1; 
  }
  
  .table-wrapper {
    margin: 0 -16px;
    padding: 0 16px;
    width: calc(100% + 32px);
  }
  
  .table {
    min-width: 320px;
    font-size: 0.9rem;
  }
  
  .table th, 
  .table td {
    padding: 12px 10px;
  }
  
  .partners-logo {
    height: 35px;
    max-width: 80px;
  }
  
  .partners-logo.tall {
    height: 50px;
    max-width: 100px;
  }
}

/* ===========================================
   RESPONSIVE - Small Phones (400px)
   =========================================== */
@media (max-width: 400px) {
  body {
    font-size: 15px;
  }
  
  .container {
    padding: 0 12px;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  h4 {
    font-size: 0.95rem;
  }
  
  .split h2 {
    font-size: 1.2rem;
  }
  
  .hero-inner {
    padding: 32px 12px;
  }
  
  .hero h1 {
    font-size: 1.3rem;
  }
  
  .pill {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  .card,
  .team-card {
    padding: 12px;
  }
  
  .team-avatar {
    width: 80px;
    height: 80px;
  }
  
  .btn, 
  .btn-light, 
  .btn-outline {
    padding: 10px 16px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  
  .table-wrapper {
    margin: 0 -12px;
    padding: 0 12px;
    width: calc(100% + 24px);
  }
  
  .table {
    min-width: 280px;
    font-size: 0.85rem;
  }
  
  .table th, 
  .table td {
    padding: 10px 8px;
  }
  
  .partners-logo {
    height: 30px;
    max-width: 70px;
  }
  
  .partners-logo.tall {
    height: 40px;
    max-width: 80px;
  }
}

/* ===========================================
   ACCESSIBILITY - Reduced Motion
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
