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

/* --- DESIGN TOKENS --- */
:root {
  --bg-color: #090B11;
  --bg-gradient: linear-gradient(135deg, #090B11 0%, #111422 100%);
  --card-bg: rgba(17, 20, 34, 0.65);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-glow: rgba(255, 59, 48, 0.15);
  
  --primary: #FF3B30; /* Electric Red */
  --primary-glow: rgba(255, 59, 48, 0.25);
  --secondary: #FF9500; /* Warm Amber */
  --secondary-glow: rgba(255, 149, 0, 0.25);
  
  --text: #F3F5F9; /* Ice White */
  --text-secondary: #8A94A6;
  --text-muted: #535E71;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 59, 48, 0.12);
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.2rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h2 {
  font-size: 2.2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.section {
  padding: 6rem 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 968px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(9, 11, 17, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
}

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

/* --- MOBILE NAVIGATION MEDIA QUERIES --- */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  z-index: 110;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  outline: none;
}

.mobile-drawer-cta {
  display: none;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1140px) {
  .logo-link, .logo {
    order: 1;
  }
  
  nav {
    order: 2;
  }
  
  .nav-container > *:not(.logo-link):not(nav):not(.mobile-nav-toggle) {
    margin-left: auto;
    order: 3;
  }

  .mobile-nav-toggle {
    display: flex;
    order: 4;
  }
  
  .mobile-drawer-cta {
    display: list-item;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(9, 11, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--card-border);
    flex-direction: column;
    padding: 7rem 2rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-container {
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .nav-container > *:not(.logo-link):not(nav):not(.mobile-nav-toggle) {
    display: none; /* Hide desktop header cta on small mobile to avoid crowding */
  }
  .mobile-nav-toggle {
    margin-left: auto;
  }
}


/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: #090B11;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow), 0 0 15px var(--primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
  border-color: var(--primary-glow);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* --- GLASSMORPHISM CARD --- */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-glow);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}

/* --- HERO SECTION --- */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  background-image: radial-gradient(circle at 80% 20%, rgba(9, 11, 17, 0.75) 0%, rgba(9, 11, 17, 0.96) 80%), url('../assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 968px) {
  .hero {
    background-image: radial-gradient(circle at 50% 50%, rgba(9, 11, 17, 0.88) 0%, rgba(9, 11, 17, 0.98) 100%), url('../assets/hero_bg.png');
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

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

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

@media (max-width: 968px) {
  .hero-ctas {
    justify-content: center;
  }
}

/* --- HERO PILLARS (FLOATING CARDS) --- */
.hero-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar-card {
  background: rgba(13, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 59, 48, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255, 59, 48, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.pillar-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 59, 48, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 59, 48, 0.25);
}

.pillar-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.pillar-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
}

.pillar-card:hover .pillar-icon {
  background: rgba(255, 59, 48, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 59, 48, 0.3);
}

.pillar-info {
  display: flex;
  flex-direction: column;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* --- SERVICES CARD --- */
.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-icon.green {
  background: rgba(255, 149, 0, 0.08);
  border: 1px solid rgba(255, 149, 0, 0.2);
  color: var(--secondary);
}

.service-title {
  margin-bottom: 1rem;
  color: var(--text);
}

.service-list {
  list-style: none;
  margin-top: 1.5rem;
}

.service-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* --- AI ADVANTAGES SECTION --- */
.ai-section {
  position: relative;
  background: linear-gradient(180deg, rgba(9, 11, 17, 0) 0%, rgba(17, 20, 34, 0.4) 50%, rgba(9, 11, 17, 0) 100%);
}

.feature-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.2);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* --- FAQ / COLLAPSIBLE ACCORDION --- */
.faq-grid {
  max-width: 800px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition-normal);
}

.faq-item.active {
  border-color: var(--card-border-glow);
}

.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 2rem;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* --- DIALOG & QUIZ STYLING --- */
dialog {
  margin: auto;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: #0d0f1a;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  width: 90%;
  max-width: 550px;
  padding: 2.5rem;
  color: var(--text);
  outline: none;
}

dialog::backdrop {
  background-color: rgba(5, 6, 11, 0.85);
  backdrop-filter: blur(8px);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 1rem;
}

.quiz-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quiz-close:hover {
  color: var(--primary);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transition: width var(--transition-normal);
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.quiz-option:hover {
  background: rgba(255, 59, 48, 0.04);
  border-color: rgba(255, 59, 48, 0.3);
}

.quiz-option.selected {
  background: rgba(255, 59, 48, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.1);
}

.quiz-option input[type="radio"] {
  accent-color: var(--primary);
  width: 1.2rem;
  height: 1.2rem;
}

.quiz-input-text {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-normal);
}

.quiz-input-text:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.1);
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2rem 0;
  background: rgba(5, 6, 11, 0.9);
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-about p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-title {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  color: var(--text);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- PARTNERS BAND --- */
.partners-band {
  background: rgba(5, 6, 11, 0.4);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 2.5rem 0;
  overflow: hidden;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.partner-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  cursor: default;
  height: 40px;
  padding: 0 0.5rem;
}

.partner-logo img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.55);
  transition: all 0.25s ease;
}

.partner-logo:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.08);
}

