/* ==========================================================================
   Branding Portal Stylesheet - rodrigo.aguilar.page
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette - Premium Space Obsidian & Electric Accents */
  --bg-dark: #07090e;
  --bg-deep: #0b0f19;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Brand Identifiers */
  --sani-cyan: #38bdf8;
  --sani-cyan-glow: rgba(56, 189, 248, 0.15);
  
  --elevation-purple: #c084fc;
  --elevation-purple-glow: rgba(192, 132, 252, 0.15);
  
  --book-gold: #fbbf24;
  --book-gold-glow: rgba(251, 191, 36, 0.15);
  
  /* Typography */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 20%, rgba(56, 189, 248, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(192, 132, 252, 0.05) 0px, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
}

/* Base Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphic Header Navigation */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo span {
  color: var(--sani-cyan);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.btn-lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 180px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--sani-cyan);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--sani-cyan);
  font-weight: 600;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 620px;
}

/* Credentials / License Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.license-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.license-badge:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--sani-cyan);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.1);
}

.license-badge.lead-safe:hover {
  border-color: var(--elevation-purple);
  box-shadow: 0 8px 20px rgba(192, 132, 252, 0.1);
}

.badge-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sani-cyan);
}

.license-badge.lead-safe .badge-icon {
  color: var(--elevation-purple);
}

.badge-details h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Hero Portrait Wrapper */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portrait-glow-ring {
  position: absolute;
  width: 105%;
  height: 105%;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--sani-cyan) 0%, var(--elevation-purple) 100%);
  opacity: 0.15;
  filter: blur(25px);
  z-index: 0;
  pointer-events: none;
}

.portrait-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: var(--bg-deep);
  z-index: 1;
}

.portrait-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-card:hover img {
  transform: scale(1.03);
}

/* Corporate Ventures Section */
.ventures-section {
  padding: 80px 0;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-tag {
  text-align: center;
  color: var(--sani-cyan);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 4rem;
  letter-spacing: -1px;
}

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

.venture-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.venture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--sani-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.venture-card.elevation::before {
  background: var(--elevation-purple);
}

.venture-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.venture-card:hover::before {
  opacity: 1;
}

.venture-card.sani-effect:hover {
  box-shadow: 0 20px 40px -15px rgba(56, 189, 248, 0.05);
}

.venture-card.elevation:hover {
  box-shadow: 0 20px 40px -15px rgba(192, 132, 252, 0.05);
}

.venture-icon {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.venture-card.sani-effect .venture-icon {
  color: var(--sani-cyan);
}

.venture-card.elevation .venture-icon {
  color: var(--elevation-purple);
}

.venture-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.venture-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sani-cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.venture-card.elevation .venture-role {
  color: var(--elevation-purple);
}

.venture-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Sani System Spotlight */
.sani-system-box {
  background: rgba(56, 189, 248, 0.03);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sani-system-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sani-cyan);
  margin-bottom: 0.5rem;
}

.sani-system-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.venture-features {
  list-style: none;
}

.venture-features li {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.venture-features li::before {
  content: '✦';
  color: var(--sani-cyan);
  font-weight: bold;
}

.venture-card.elevation .venture-features li::before {
  color: var(--elevation-purple);
}

.venture-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  margin-top: 2rem;
  transition: all 0.3s ease;
}

.venture-card.sani-effect .venture-link-btn {
  background: rgba(56, 189, 248, 0.1);
  color: var(--sani-cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.venture-card.sani-effect .venture-link-btn:hover {
  background: var(--sani-cyan);
  color: var(--bg-dark);
}

.venture-card.elevation .venture-link-btn {
  background: rgba(192, 132, 252, 0.1);
  color: var(--elevation-purple);
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.venture-card.elevation .venture-link-btn:hover {
  background: var(--elevation-purple);
  color: var(--bg-dark);
}

/* Book Spotlight Section */
.book-section {
  padding: 100px 0;
  position: relative;
}

.book-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 50%;
  background: var(--book-gold-glow);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

.book-card-spotlight {
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.05), transparent), rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(251, 191, 36, 0.1);
  border-radius: 32px;
  padding: 4rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.book-artwork {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-shadow {
  position: absolute;
  bottom: -15px;
  width: 80%;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(15px);
  z-index: 0;
}

.book-mockup {
  position: relative;
  width: 100%;
  max-width: 280px;
  border-radius: 8px 16px 16px 8px;
  overflow: hidden;
  box-shadow: 5px 15px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.book-mockup:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.book-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

.book-info-panel {
  display: flex;
  flex-direction: column;
}

.book-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--book-gold);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 1.5rem;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--book-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.book-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.book-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.book-summary strong {
  color: var(--text-primary);
}

/* Action Trigger Cards */
.book-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.read-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.book-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.book-cta-btn.gold-primary {
  background: var(--book-gold);
  color: var(--bg-dark);
  border: 1px solid var(--book-gold);
  box-shadow: 0 10px 20px rgba(251, 191, 36, 0.15);
}

.book-cta-btn.gold-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(251, 191, 36, 0.25);
  background: #f43f5e; /* Premium shift */
  border-color: #f43f5e;
  color: white;
}

.book-cta-btn.gold-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.book-cta-btn.gold-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* eReader Download Segment */
.epub-download-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.epub-title-box h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.epub-title-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.epub-links {
  display: flex;
  gap: 1rem;
}

.epub-dl-link {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--book-gold);
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.epub-dl-link:hover {
  background: var(--book-gold);
  color: var(--bg-dark);
}

/* Footer Section */
.footer-portal {
  background: #030509;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
}

.footer-portal p {
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3.25rem;
  }
  
  .badge-row {
    justify-content: center;
  }
  
  .ventures-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .book-card-spotlight {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem;
  }
  
  .book-artwork {
    order: -1;
  }
  
  .book-tag {
    align-self: center;
  }
  
  .book-info-panel {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .read-btn-group {
    grid-template-columns: 1fr;
  }
  
  .epub-download-box {
    justify-content: center;
    text-align: center;
  }
  
  .epub-links {
    width: 100%;
    justify-content: center;
  }
}
