/* ══════════════════════════════════════════
   Quantum2Pi Homepage — style.css
   ══════════════════════════════════════════ */

:root {
  --primary: #CC5500;
  --primary-light: #EE932A;
  --primary-dark: #A04400;
  --accent: #F46824;
  --bg-dark: #090C0E;
  --bg-dark-2: #0F1318;
  --bg-dark-3: #161B22;
  --surface: #1B2129;
  --text: #E6EDF3;
  --text-secondary: #8B949E;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --quantum-blue: #4FC3F7;
  --quantum-purple: #B388FF;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */

.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(9, 12, 14, 0.95);
  backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo { height: 36px; }

.nav-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--white); }

/* ── BUTTONS ── */

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 85, 0, 0.35);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(204, 85, 0, 0.1);
}

.btn-nav {
  background: rgba(204, 85, 0, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(204, 85, 0, 0.3);
  padding: 8px 20px;
  border-radius: 6px;
}

.btn-nav:hover { background: rgba(204, 85, 0, 0.25); }

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* ── LANGUAGE SWITCH ── */

.lang-switch {
  display: flex; align-items: center; gap: 4px;
  margin-left: 12px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px 4px;
}

.lang-option {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.lang-option:hover { color: var(--text); }

.lang-option.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
}

.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── GRADIENT TEXT ── */

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-quantum {
  background: linear-gradient(135deg, var(--quantum-blue), var(--quantum-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HERO ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(204, 85, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(79, 195, 247, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(179, 136, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(28px, 4vw, 45px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}

.badge-flag {
  background: rgba(0, 140, 69, 0.15) !important;
  border-color: rgba(0, 140, 69, 0.4) !important;
  color: #4ade80 !important;
}

/* ── SECTIONS ── */

.section { padding: 100px 0; }
.section-dark { background: var(--bg-dark-2); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── AREAS GRID (services) ── */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.area-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(204, 85, 0, 0.2);
}

.area-card.highlight {
  border: 1px solid var(--primary);
  background: linear-gradient(135deg, rgba(204, 85, 0, 0.1) 0%, rgba(238, 147, 42, 0.04) 100%);
}

.area-card.highlight:hover {
  border-color: var(--primary-light);
  box-shadow: 0 8px 32px rgba(204, 85, 0, 0.2);
}

.area-icon { font-size: 36px; margin-bottom: 16px; }

.area-card h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 12px; color: var(--text);
}

.area-card p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}

.area-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}

.area-tag {
  background: rgba(204, 85, 0, 0.15);
  color: var(--primary-light);
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid rgba(204, 85, 0, 0.25);
}

/* ── PRODUCTS ── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.product-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}

.product-icon { font-size: 40px; }

.product-name { font-size: 24px; font-weight: 700; }
.product-tagline { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.product-card > p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 20px;
}

.product-features {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.product-feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px; color: var(--text-secondary);
}

.product-cta {
  margin-top: 20px;
}

/* ── WHY Q2PI ── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; gap: 16px;
  transition: var(--transition);
}

.why-card:hover {
  border-color: rgba(204, 85, 0, 0.25);
  background: rgba(204, 85, 0, 0.04);
}

.why-icon { font-size: 28px; flex-shrink: 0; }

.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.why-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── TEAM ── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.team-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 13px; color: var(--primary-light); font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── PARTNERS ── */

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.6; transition: var(--transition);
}

.partner-item:hover { opacity: 1; }

.partner-item span {
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
}

/* ── CONTACT ── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover { border-color: rgba(204, 85, 0, 0.3); }

.contact-icon { font-size: 32px; margin-bottom: 12px; }

.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }

.contact-card a {
  color: var(--primary-light); text-decoration: none;
  font-weight: 500; font-size: 14px;
}

.contact-card a:hover { text-decoration: underline; }

.contact-card p { font-size: 14px; color: var(--text-secondary); }

.contact-cta { text-align: center; }

/* ── FOOTER ── */

.footer {
  background: var(--bg-dark-3);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.footer-brand { text-align: center; }
.footer-logo { height: 40px; margin-bottom: 8px; }
.footer-tagline { font-size: 14px; color: var(--text-secondary); }

.footer-links {
  display: flex; gap: 32px;
}

.footer-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 13px; transition: var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}

.footer-bottom p { font-size: 12px; color: var(--text-secondary); }

/* ── ANIMATIONS ── */

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 12, 14, 0.98);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 24px; z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; color: var(--white); }

  .nav-toggle { display: flex; z-index: 1001; }

  .lang-switch { margin-left: auto; margin-right: 12px; }

  .section { padding: 60px 0; }

  .areas-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: 1fr; max-width: 360px; }

  .hero { padding: 100px 0 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
}
