/* ============================================
   EXTROID TECHNOLOGY — SHARED STYLESHEET
   style.css — Used by all pages
   ============================================ */

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

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg:           #060810;
  --bg2:          #0A0E18;
  --bg3:          #0F1420;
  --card:         #0D1422;
  --card2:        #111928;
  --border:       #182033;
  --border2:      #1E2D45;
  --primary:      #4F8EF7;
  --primary-dim:  rgba(79,142,247,0.08);
  --primary-mid:  rgba(79,142,247,0.22);
  --primary-glow: rgba(79,142,247,0.12);
  --cyan:         #22D3EE;
  --accent:       #818CF8;
  --text:         #EFF3FC;
  --text2:        #8A9BBB;
  --text3:        #506080;
  --green:        #34D399;
  --radius:       16px;
  --radius-sm:    9px;
  --nav-h:        68px;
  --max-w:        1080px;
  --transition:   0.2s ease;
  --font:         'Outfit', sans-serif;
  --font2:        'Mulish', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font2);
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.12;
  color: var(--text);
}

.section-tag {
  display: inline-block;
  font-family: var(--font2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.13;
}

.section-sub {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 540px;
  line-height: 1.85;
}

/* ============================================
   LAYOUT
   ============================================ */
.section-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }
section { padding: 6rem 5%; }
.divider { height: 1px; background: var(--border); max-width: var(--max-w); margin: 0 auto; }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  padding: 0 5%;
  background: rgba(6,8,16,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

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

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

.nav-links a {
  color: var(--text2);
  font-family: var(--font2);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--transition);
  white-space: nowrap;
}

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

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font2);
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font2);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(79,142,247,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font2);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-family: var(--font2);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: gap var(--transition);
}

.btn-ghost:hover { gap: 0.65rem; }

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-dim);
  border: 1px solid var(--primary-mid);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: var(--font2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition);
}

.card:hover { border-color: var(--border2); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--primary-dim);
  border: 1px solid var(--primary-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 5% 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,142,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.08rem;
  color: var(--text2);
  max-width: 540px;
  line-height: 1.85;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--primary-mid);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-tag {
  font-family: var(--font2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.blog-card-title {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.blog-card-excerpt {
  color: var(--text2);
  font-size: 0.875rem;
  line-height: 1.78;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: auto;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { display: flex; flex-direction: column; gap: 0.875rem; }

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

.faq-item.open { border-color: var(--primary-mid); }

.faq-q {
  padding: 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
  user-select: none;
}

.faq-q:hover { color: var(--primary); }

.faq-arrow {
  color: var(--text3);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s ease, color 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(45deg); color: var(--primary); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.85;
  padding: 0 1.5rem;
}

.faq-item.open .faq-a { max-height: 400px; padding: 0 1.5rem 1.5rem; }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font2);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }

.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--bg2); }

/* ============================================
   LEGAL
   ============================================ */
.legal-tabs { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }

.legal-tab {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font2);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  transition: all var(--transition);
}

.legal-tab.active,
.legal-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.legal-content h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.legal-content .updated { font-size: 0.8rem; color: var(--text3); margin-bottom: 2rem; display: block; }
.legal-content h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 2rem 0 0.75rem; }
.legal-content p { color: var(--text2); font-size: 0.9rem; line-height: 1.9; margin-bottom: 1rem; }
.legal-content ul { color: var(--text2); font-size: 0.9rem; line-height: 1.9; margin-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: 0.4rem; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 5% 2rem;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

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

.footer-brand .nav-logo { display: inline-block; margin-bottom: 1rem; }

.footer-brand p {
  color: var(--text2);
  font-size: 0.875rem;
  line-height: 1.85;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: var(--text2); font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p,
.footer-bottom span { color: var(--text3); font-size: 0.8rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up { opacity: 0; animation: fadeUp 0.65s ease forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.22s; }
.anim-delay-3 { animation-delay: 0.34s; }
.anim-delay-4 { animation-delay: 0.46s; }
.anim-delay-5 { animation-delay: 0.58s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 4rem 5%; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 5%; font-size: 0.95rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
}
