/* 
 * Style for Orquestra Labs Landing Page
 * Premium Dark Theme based on slate-950/slate-900/blue-600 palette
 */

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

:root {
  /* Colors */
  --bg-color: #020618;
  --card-bg: #0f172b;
  --card-border: #1d293d;
  --text-primary: #ffffff;
  --text-secondary: #f1f5f9;
  --text-muted: #90a1b9;
  --text-footer: #62748e;
  --accent-color: #155dfc;
  --accent-hover: #124ecb;
  --accent-glow: rgba(21, 93, 252, 0.4);
  
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  font-family: var(--font-body);
  color: var(--text-secondary);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Glowing Radial Gradients */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(21, 93, 252, 0.15) 0%, rgba(2, 6, 24, 0) 70%);
  filter: blur(80px);
}

.glow-bg::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(21, 93, 252, 0.1) 0%, rgba(2, 6, 24, 0) 70%);
  filter: blur(100px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(2, 6, 24, 0.75);
  border-bottom: 1px solid rgba(29, 41, 61, 0.6);
  transition: var(--transition-normal);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  transition: transform var(--transition-fast);
}

.logo-link:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Picker Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--accent-color);
  background-color: rgba(29, 41, 61, 0.4);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 23, 43, 0.95);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 140px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: var(--transition-normal);
}

.lang-selector.active .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.lang-option:hover {
  background: rgba(29, 41, 61, 0.6);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--accent-color);
  background: rgba(21, 93, 252, 0.1);
  font-weight: 600;
}

/* Buttons */
.btn {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-secondary {
  background-color: transparent;
  border-color: rgba(49, 65, 88, 0.8);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: rgba(29, 41, 61, 0.8);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(21, 93, 252, 0.1);
  border: 1px solid rgba(21, 93, 252, 0.2);
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  color: var(--text-primary);
}

.hero h1 span {
  background: linear-gradient(135deg, #60a5fa 0%, #155dfc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

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

/* Ecosystem Showcase Grid */
.ecosystem {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* App Cards */
.app-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: var(--transition-normal);
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: rgba(21, 93, 252, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(21, 93, 252, 0.05);
}

.app-card.active:hover::before {
  background: var(--accent-color);
}

.app-card.coming-soon::before {
  background: #334155;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
}

.app-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.app-tag.active-tag {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.app-tag.soon-tag {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.app-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.app-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
}

.card-footer .btn {
  width: 100%;
}

/* Features Spotlight Section */
.features-spotlight {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(2, 6, 24, 0) 0%, rgba(15, 23, 43, 0.4) 50%, rgba(2, 6, 24, 0) 100%);
  border-top: 1px solid rgba(29, 41, 61, 0.4);
  border-bottom: 1px solid rgba(29, 41, 61, 0.4);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  background: rgba(15, 23, 43, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition-normal);
}

.feature-item:hover {
  border-color: rgba(21, 93, 252, 0.3);
  background: rgba(15, 23, 43, 0.9);
}

.feature-icon-wrapper {
  background: rgba(21, 93, 252, 0.1);
  color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* FAQ Accordion Section */
.faq {
  padding: 5rem 0;
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), opacity var(--transition-normal);
  opacity: 0;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-top: 1rem;
  line-height: 1.6;
}

.faq-answer a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.faq-answer a:hover {
  color: var(--text-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  stroke: var(--accent-color);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* arbitrary height to slide down */
  opacity: 1;
}

/* CTA Final */
.cta-final {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cta-final .cta-final-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.cta-contact {
  margin-bottom: 2.5rem;
}

.cta-contact-label {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 auto 0.4rem;
}

.cta-contact-phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: #60a5fa;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cta-contact-phone:hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
  background-color: #010410;
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

@media(min-width: 768px) {
  .footer-container {
    flex-row: row;
    flex-direction: row;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-footer);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-footer);
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media(max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }
}

@media(max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-ctas {
    flex-direction: column;
    max-width: 320px;
    margin: 0 auto;
  }
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .section-header h2 {
    font-size: 1.85rem;
  }
  .header-container {
    height: 70px;
  }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: calc(100% - 3rem);
  max-width: 800px;
  background: rgba(15, 23, 43, 0.92);
  border: 1px solid rgba(29, 41, 61, 0.9);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(21, 93, 252, 0.08);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.cookie-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.cookie-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cookie-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-desc a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.cookie-desc a:hover {
  color: var(--text-primary);
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

@media(max-width: 640px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(120%);
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }

  .cookie-banner.visible {
    transform: translateY(0);
  }

  .cookie-banner-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: box-shadow var(--transition-fast);
  }

  .whatsapp-float:hover {
    transform: none;
  }
}
