/* ═══════════════════════════════════════════════════════════════
   Specira AI — Global Stylesheet
   Shared design tokens, navigation, footer, layout primitives,
   animations, accessibility, and responsive breakpoints.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Self-hosted fonts (variable, woff2) ─── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── Design Tokens ─── */
:root {
  --midnight: #0D1B2A; --deep-navy: #1B2D45;
  --blue: #3B82F6; --blue-bright: #60A5FA; --blue-ice: #DBEAFE;
  --violet: #7C3AED; --violet-soft: #A78BFA; --lavender: #EDE9FE;
  --emerald: #10B981; --coral: #F97066; --amber: #F59E0B;
  --white: #FFFFFF; --off-white: #F8FAFC;
  --gray-light: #E2E8F0; --gray-mid: #94A3B8; --gray-dark: #475569; --charcoal: #1E293B;
  --text-secondary: #64748B; --text-link: #2563EB;
}

/* ─── Reset ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--charcoal); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* ─── Skip Link (Accessibility) ─── */
.skip-link { position: absolute; top: -40px; left: 0; background: #3B82F6; color: #fff; padding: 8px 16px; z-index: 9999; text-decoration: none; font-size: 14px; border-radius: 0 0 4px 0; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ─── Navigation ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 12px 40px; padding-top: calc(12px + env(safe-area-inset-top)); padding-left: calc(40px + env(safe-area-inset-left)); padding-right: calc(40px + env(safe-area-inset-right)); display: flex; align-items: center; justify-content: space-between; background: rgba(13,27,42,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-left { display: flex; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.nav-logo svg { width: 72px; height: 72px; }
.nav-logo span { font-family: 'Manrope', sans-serif; font-size: 31px; font-weight: 800; color: white; letter-spacing: -0.5px; }
.nav-logo .ira { background: linear-gradient(90deg, var(--blue-bright), var(--violet-soft)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 8px; margin-left: 32px; }
.nav-link { color: var(--gray-mid); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: color 0.2s, background-color 0.2s; min-height: 44px; display: flex; align-items: center; }
.nav-link:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-link.active { color: white; background: rgba(59,130,246,0.15); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-toggle { display: flex; align-items: center; gap: 4px; }
.lang-btn { background: none; border: none; color: var(--gray-mid); font-size: 12px; font-weight: 600; cursor: pointer; letter-spacing: 0.5px; transition: color 0.2s, background-color 0.2s; padding: 8px 10px; border-radius: 6px; min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.lang-btn:hover { color: rgba(255,255,255,0.8); }
.lang-btn.active { color: white; }
.lang-sep { color: rgba(255,255,255,0.2); font-weight: 300; }
.nav-cta { padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; min-height: 44px; display: inline-flex; align-items: center; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,0.35); }

/* ─── Hamburger Menu ─── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--gray-mid); border-radius: 2px; transition: background-color 0.3s, transform 0.3s; position: relative; }
.nav-hamburger span::before, .nav-hamburger span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--gray-mid); border-radius: 2px; transition: background-color 0.3s, transform 0.3s, top 0.3s; }
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }
.nav-hamburger.open span { background: transparent; }
.nav-hamburger.open span::before { top: 0; transform: rotate(45deg); background: white; }
.nav-hamburger.open span::after { top: 0; transform: rotate(-45deg); background: white; }

/* ─── Mobile Menu ─── */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99; background: rgba(13,27,42,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 100px 32px 40px; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(-10px); transition: opacity 0.3s, transform 0.3s; }
.mobile-menu.open { display: flex; opacity: 1; transform: translateY(0); }
.mobile-menu a { color: white; text-decoration: none; font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--blue-bright); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta,
.mobile-menu .mobile-menu-cta { margin-top: 24px; padding: 16px 32px; border-radius: 10px; font-size: 16px; font-weight: 600; color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); text-align: center; border-bottom: none; }

/* ─── Page Hero (shared by about, FAQ, blog index, use-cases index, privacy) ─── */
.page-hero { padding: 140px 40px 80px; background: linear-gradient(160deg, var(--midnight) 0%, var(--deep-navy) 45%, #1a1a3e 100%); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 800px 600px at 25% 40%, rgba(59,130,246,0.08) 0%, transparent 70%), radial-gradient(ellipse 600px 500px at 75% 30%, rgba(124,58,237,0.06) 0%, transparent 70%); pointer-events: none; }
.page-hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.page-hero .section-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--blue-bright); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.page-hero h1 { font-family: 'Manrope', sans-serif; font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: white; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px; }
.page-hero h1 .gradient { background: linear-gradient(135deg, var(--blue), var(--violet-soft)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { font-size: 17px; color: var(--gray-mid); line-height: 1.7; max-width: 620px; margin: 0 auto; }

/* ─── Sections ─── */
.section { padding: 100px 40px; max-width: 1100px; margin: 0 auto; }
.section-dark { padding: 100px 40px; background: var(--midnight); }
.section-dark .inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #2563EB; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Manrope', sans-serif; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; line-height: 1.15; }
.section-dark .section-title { color: white; }
.section-desc { font-size: 17px; color: var(--gray-dark); line-height: 1.8; max-width: 700px; margin-bottom: 48px; }
.section-dark .section-desc { color: var(--gray-mid); }
.section-dark .section-label { color: #FFFFFF; }

/* ─── CTA Bar ─── */
.cta-bar { padding: 80px 40px; background: linear-gradient(160deg, var(--midnight) 0%, var(--deep-navy) 50%, #1a1a3e 100%); text-align: center; position: relative; overflow: hidden; }
.cta-bar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 600px 400px at 50% 40%, rgba(59,130,246,0.1) 0%, transparent 70%); pointer-events: none; }
.cta-bar-inner { position: relative; max-width: 600px; margin: 0 auto; }
.cta-bar h2 { font-family: 'Manrope', sans-serif; font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: white; letter-spacing: -0.5px; margin-bottom: 16px; }
.cta-bar p { font-size: 16px; color: var(--gray-mid); margin-bottom: 32px; }

/* ─── FAQ Accordion ─── */
.faq-section { padding: 48px 40px 100px; max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-light); border-radius: 12px; margin-bottom: 16px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; background: var(--white); }
.faq-item:hover { border-color: rgba(59,130,246,0.3); }
.faq-item.open { border-color: var(--blue); box-shadow: 0 4px 20px rgba(59,130,246,0.08); }
.faq-question { width: 100%; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; cursor: pointer; text-align: left; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; color: var(--charcoal); line-height: 1.4; transition: color 0.2s; }
.faq-question:hover { color: var(--blue); }
.faq-item.open .faq-question { color: var(--blue); }
.faq-icon { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: var(--off-white); display: flex; align-items: center; justify-content: center; transition: background-color 0.3s, transform 0.3s, color 0.3s; font-size: 18px; color: var(--gray-mid); }
.faq-item.open .faq-icon { background: linear-gradient(135deg, var(--blue), var(--violet)); color: white; transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner { padding: 0 28px 28px; font-size: 16px; color: var(--gray-dark); line-height: 1.8; }
.faq-answer-inner strong { color: var(--charcoal); font-weight: 600; }

/* ─── Buttons ─── */
.btn-primary { padding: 14px 32px; border-radius: 10px; font-size: 16px; font-weight: 600; color: white; background: linear-gradient(135deg, var(--blue), var(--violet)); border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: inline-flex; align-items: center; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.4); }

/* ─── Footer ─── */
.footer { padding: 40px; background: var(--midnight); text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--gray-mid); text-decoration: none; font-size: 14px; transition: color 0.2s; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--blue-bright); }
.footer p { font-size: 13px; color: #94A3B8; }
.footer a { color: var(--blue-bright); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.footer a:hover { text-decoration: underline; }

/* ─── Animations ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.3s ease both; }

/* ─── Accessibility ─── */
a:not(.nav a):not(.btn-primary):not(.btn-secondary):not(.cta-btn):not(.logo):not(.skip-link):not(.lang-btn):not(.nav-cta):not(.nav-logo):not(.footer-links a):not(.blog-card a):not(.blog-card-link):not(.mobile-menu a):not(.article-back):not(.related-card) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — Shared components only
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tablet (769px - 1024px) ─── */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav { padding: 14px 24px; }
  .section { padding: 80px 32px; }
  .section-dark { padding: 80px 32px; }
  .page-hero { padding: 120px 32px 60px; }
  .cta-bar { padding: 60px 32px; }
  .faq-section { padding: 40px 32px 80px; }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  .nav { padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); gap: 8px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(13,27,42,0.97); }
  .nav-left { flex: 1; min-width: 0; }
  .nav-logo { gap: 8px; }
  .nav-logo svg { width: 48px; height: 48px; }
  .nav-logo span { font-size: 22px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right { gap: 8px; }
  .lang-btn { font-size: 11px; padding: 6px 10px; min-height: 44px; min-width: 44px; }
  .lang-sep { font-size: 10px; }
  .nav-cta { display: none; }
  .page-hero { padding: 100px 20px 60px; }
  .page-hero h1 { font-size: clamp(26px, 6vw, 38px); }
  .section { padding: 60px 20px; }
  .section-dark { padding: 60px 20px; }
  .section-title { font-size: clamp(24px, 5.5vw, 32px); }
  .cta-bar { padding: 60px 20px; }
  .faq-section { padding: 32px 20px 60px; }
  .faq-question { padding: 20px; font-size: 16px; }
  .faq-answer-inner { padding: 0 20px 24px; font-size: 15px; }
  .footer { padding: 24px 16px; }
  .footer-links { gap: 12px; }
  .footer-links a { padding: 4px 8px; min-height: 48px; }
}

/* ─── Small Mobile (≤390px) ─── */
@media (max-width: 390px) {
  .nav { padding: 8px 12px; }
  .nav-logo svg { width: 40px; height: 40px; }
  .nav-logo span { font-size: 18px; }
  .page-hero { padding: 80px 16px 40px; }
  .section { padding: 48px 16px; }
  .section-dark { padding: 48px 16px; }
  .faq-section { padding: 24px 16px 48px; }
  .faq-question { font-size: 15px; padding: 16px; }
}
