@charset "utf-8";

/* HumanPlanet Media 2026 Master Stylesheet 
   Version: 1.09 - Final Refinement & Footer Fix
*/

/* --- 1. VARIABLES & RESET --- */
:root {
  --bg-dark: #0a0a0a;
  --bg-panel: #111111;
  --text-light: #e5e5e5;
  --text-muted: #a3a3a3;
  --purple: #7b5cff;
  --purple-hover: #8e75ff;
  --purple-soft: rgba(123, 92, 255, 0.15);
  --border: #262626;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* --- 2. LAYOUT UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
}

section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -0.02em;
}

section p {
  max-width: 760px;
  color: var(--text-muted);
}

/* --- 3. HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

header .container nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 101;
}

.logo a { color: var(--white) !important; }
.logo span { color: var(--purple); }

/* Desktop Navigation */
@media (min-width: 769px) {
  .menu-icon, .menu-toggle { display: none; }
  .nav-links { display: flex; gap: 28px; }
  .nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
  }
  .nav-links a:hover { color: var(--purple); }
  .nav-links a.active { color: var(--white); }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  header .container { position: static; }
  .menu-icon { display: block; cursor: pointer; padding: 10px; z-index: 101; }
  .menu-toggle { display: none; }
  
  .navicon {
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
  }
  .navicon:before, .navicon:after {
    background: var(--white);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    width: 100%;
    transition: all 0.2s ease-out;
  }
  .navicon:before { top: 7px; }
  .navicon:after { top: -7px; }

  .nav-links {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--bg-dark);
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    z-index: 100;
    border-top: 1px solid var(--border);
  }
  .nav-links a {
    display: block;
    text-align: right;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
  }
  .nav-links a:hover, .nav-links a:active {
    color: var(--purple);
    background-color: #111;
  }
  .menu-toggle:checked ~ .nav-links { max-height: 500px; }
  .menu-toggle:checked ~ .menu-icon .navicon { background: transparent; }
  .menu-toggle:checked ~ .menu-icon .navicon:before { transform: rotate(-45deg); top: 0; }
  .menu-toggle:checked ~ .menu-icon .navicon:after { transform: rotate(45deg); top: 0; }
}

/* --- 4. HERO COMPONENTS --- */
.hero h1, .hero-system h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

/* Homepage Hero (Image + Gradient) */
.hero {
  padding: 140px 0 100px;
  border-bottom: 1px solid var(--border);
  background-image: 
    linear-gradient(135deg, rgba(15, 15, 20, 0.9), rgba(15, 15, 20, 0.6)),
    url("hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Internal Page Hero (Radial Gradient System) */
.hero-system {
  padding: 140px 0 110px;
  border-bottom: 1px solid var(--border);
background: linear-gradient(135deg, rgba(123, 92, 255, 0.1), var(--bg-dark));
}

.hero-system .hero-eyebrow {
  margin-bottom: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.hero-system h1 { max-width: 900px; }
.hero-system p, .hero p {
  max-width: 680px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 42px;
}

/* --- 5. BUTTONS --- */
.buttons { margin-top: 32px; }
.buttons a {
  display: inline-block;
  margin-right: 16px;
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
}
.btn-primary { background: var(--purple); color: var(--white) !important; border: 1px solid var(--purple); }
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--border); color: var(--text-light); background: transparent; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); }

@media (max-width: 768px) {
  .buttons a { display: block; margin-right: 0; margin-bottom: 12px; text-align: center; }
}

/* --- 6. GENERAL GRIDS & CARDS --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color 0.3s ease;
}
.card:hover { border-color: var(--purple-soft); }
.card h3 { margin-bottom: 12px; font-size: 1.25rem; color: var(--white); }

/* --- 7. PORTFOLIO GRID & CARDS --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem 2rem; /* Vertical breathing room */
  margin-top: 3rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Hard Sales Anchor */
  border-bottom: 8px solid var(--purple);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(123, 92, 255, 0.2);
}

.card-image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: top center;
  border-bottom: 1px solid #eee;
}

.card-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-tags {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #666;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
  margin-bottom: 1rem;
  display: block;
}
.project-card h3 { color: #111; margin-bottom: 0.75rem; font-size: 1.4rem; }
.project-card p { color: #555; font-size: 1rem; margin-bottom: 2rem; }
.card-link {
  color: var(--purple);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
}

/* --- 8. TECHNOLOGY & TOOLS --- */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.tool {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.tool:hover { border-color: var(--purple-soft); color: var(--white); }

/* --- 9. CTA SECTIONS --- */
.cta {
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.1), var(--bg-dark));
  text-align: center;
}
.center-cta { text-align: center; padding: 100px 0; }
.cta h2, .center-cta h2 { margin-bottom: 16px; }
.cta p, .center-cta p { margin: 0 auto 32px; }

/* --- 10. MINI SHOWCASE STRIP --- */
.mini-showcase { padding: 60px 0; border-bottom: 1px solid var(--border); background: var(--bg-dark); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.showcase-item {
  display: block;
  aspect-ratio: 16/9;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: top center;
  border-radius: 8px;
  border: 1px solid var(--border);
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.showcase-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  border-color: var(--purple);
  box-shadow: 0 8px 20px rgba(123, 92, 255, 0.15);
}
.placeholder-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1a1a1a;
  color: #555;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  border: 2px dashed #333;
  text-decoration: none;
}
.placeholder-item:hover { color: var(--purple); border-color: var(--purple); background-color: rgba(123, 92, 255, 0.05); }

/* --- 11. SOLUTIONS PAGE SPECIFICS --- */
.narrow { text-align: center; margin-bottom: 60px; }
.narrow p { margin: 0 auto; }
.use-case {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.use-case h3 { font-size: 1.6rem; color: var(--white); margin-bottom: 16px; }
.use-case ul { list-style: none; margin: 24px 0; }
.use-case li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  color: var(--text-light);
}
.use-case li::before { content: "→"; color: var(--purple); margin-right: 15px; font-weight: 700; }
.highlight { color: var(--purple); font-weight: 600; margin-top: 20px; font-size: 1.1rem; }

/* --- 12. FORMS --- */
.instruction-box { margin-bottom: 48px; padding-left: 24px; border-left: 2px solid var(--purple); }
.instruction-box h2 { font-size: 1.8rem; margin-bottom: 8px; }
.problem-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.form-group { margin-bottom: 32px; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple);
  margin-bottom: 12px;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
textarea { min-height: 200px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--purple); }
.btn-submit {
  background: var(--purple);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}
.btn-submit:hover {
  background: var(--purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(123, 92, 255, 0.15);
}

/* --- 13. FOOTER (RESTORED & FIXED) --- */
footer {
  padding: 80px 0 60px;
  /* UPDATED: Vertical gradient, Purple Tint (Top) -> Deep Dark (Bottom) */
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.08), var(--bg-dark));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--purple);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 400px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}