/* ==========================================================================
   AxonFlow AI — Master Enterprise & Modal CSS
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-raised: #0d0f13;
  --surface: #111318;
  --surface-hover: #16191f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f1;
  --text-dim: #9aa0ab;
  --text-faint: #5c6270;
  --accent: #5457ff;
  --accent-soft: rgba(84, 87, 255, 0.12);
  --accent-2: #35d07f;
  --accent-2-soft: rgba(53, 208, 127, 0.12);
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
  background: var(--bg);
}

body.ef-body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  line-height: 1.6;
}

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

.ef-display { font-family: var(--font-display); font-optical-sizing: auto; }
.ef-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---- Container Wrap ---- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ---- Master Layout Grids & Spacing ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.section { padding: 5rem 0; width: 100%; }
.section-alt { padding: 5rem 0; background: var(--bg-raised); width: 100%; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 54ch;
}

/* ---- Page Hero Section ---- */
.page-hero {
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 60% 0%, rgba(84,87,255,.14) 0%, transparent 65%),
              radial-gradient(ellipse 40% 40% at 10% 60%, rgba(53,208,127,.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .inner { position: relative; z-index: 1; }

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero-p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.accent { color: var(--accent); font-style: italic; }
.accent-green { color: var(--accent-2); }

.pill {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: inline-block;
}
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.check-list li { display: flex; gap: .75rem; font-size: .95rem; align-items: flex-start; color: var(--text-dim); }
.check-list li::before { content: '✓'; color: var(--accent-2); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.stat-big { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; line-height: 1; color: var(--accent-2); }
.stat-label { font-size: .875rem; color: var(--text-dim); margin-top: .4rem; }

/* ---- Sleek Desktop Header & Nav ---- */
.ef-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 8, 10, 0.90);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  width: 100%;
  height: 4rem;
}

.ef-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  width: 100%;
}

.ef-nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ef-nav a.ef-navlink {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color .2s ease;
  white-space: nowrap;
}
.ef-nav a.ef-navlink:hover { color: var(--text); }

.ef-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  font-size: .8rem;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ef-cta:hover {
  background: #6e70ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(84, 87, 255, 0.3);
}

.ef-menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: .4rem .6rem;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  outline: none;
}
.ef-menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; }

/* ---- System Rail ---- */
.ef-rail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 1.75rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
.ef-rail::-webkit-scrollbar { display: none; }
.ef-rail .dot-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(53,208,127,.6);
  animation: ef-pulse 2s infinite;
  display: inline-block; margin-right: .5rem; flex-shrink: 0;
}
@keyframes ef-pulse {
  0% { box-shadow: 0 0 0 0 rgba(53,208,127,.5); }
  70% { box-shadow: 0 0 0 6px rgba(53,208,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,208,127,0); }
}

.ef-eyebrow {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .5rem;
}
.ef-eyebrow::before { content: ''; width: 14px; height: 1px; background: var(--accent); flex-shrink: 0; }

.ef-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
  word-wrap: break-word;
  overflow: hidden;
  max-width: 100%;
}
.ef-card:hover, .card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.card-h { font-size: 1.2rem; font-weight: 700; margin-bottom: .75rem; color: var(--text); }
.card-p { font-size: .95rem; color: var(--text-dim); line-height: 1.65; }

.tag {
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .25rem .7rem; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); display: inline-block;
}
.tag-green { background: var(--accent-2-soft); color: var(--accent-2); }

.price-tag { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 .5rem; }
.price-sub { font-size: .85rem; color: var(--text-dim); margin-bottom: 2rem; }

.cta-block {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5rem 3rem;
  text-align: center;
}

.faq-item { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; font-size: 1.05rem; margin-bottom: .75rem; color: var(--text); }
.faq-a { color: var(--text-dim); font-size: .95rem; line-height: 1.7; }

.ef-btn-primary {
  background: var(--text); color: var(--bg); font-weight: 600;
  padding: .875rem 1.75rem; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; gap: .5rem; transition: transform .2s ease, box-shadow .2s ease;
  white-space: nowrap; font-size: .95rem; max-width: 100%;
}
.ef-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.ef-btn-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border-strong);
  padding: .875rem 1.75rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: border-color .2s ease, background .2s ease; white-space: nowrap; font-size: .95rem; max-width: 100%;
}
.ef-btn-secondary:hover { border-color: var(--accent); background: var(--accent-soft); }

.ef-footer { background: var(--bg-raised); border-top: 1px solid var(--border); width: 100%; }
.ef-social-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: all .2s ease; flex-shrink: 0;
}
.ef-social-btn:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* ==========================================================================
   Portfolio Live-Preview Modal Component Styles
   ========================================================================== */
.ef-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 7, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.ef-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.ef-modal-box {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  width: min(1140px, 100%);
  height: min(740px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(.96) translateY(12px);
  transition: transform .25s ease;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.ef-modal-overlay.open .ef-modal-box {
  transform: scale(1) translateY(0);
}
.ef-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ef-modal-bar .url {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}
.ef-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all .2s ease;
}
.ef-modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ef-modal-frame-wrap {
  flex: 1;
  position: relative;
  background: #040507;
}
.ef-modal-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.ef-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .85rem;
  gap: .75rem;
  z-index: 2;
}
.ef-modal-loading .spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  animation: ef-spin .7s linear infinite;
}
@keyframes ef-spin { to { transform: rotate(360deg); } }
.ef-modal-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg-raised);
  color: var(--text-dim);
  font-size: .95rem;
  text-align: center;
  padding: 2rem;
  z-index: 3;
}
.ef-modal-fallback.show { display: flex; }

/* ---- Browser Mockup Cards ---- */
.browser-mockup {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  position: relative;
}
.browser-mockup .bar {
  background: rgba(255,255,255,0.03);
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 1px solid var(--border);
}
.browser-mockup .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.browser-mockup .url-bar {
  font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); margin-left: .5rem;
  background: rgba(0,0,0,0.3); padding: .15rem .6rem; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-mockup .screen {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #040507;
  display: flex;
  align-items: center;
  justify-content: center;
}
.browser-mockup .screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .4s ease;
}
.ef-card:hover .browser-mockup .screen img { transform: scale(1.04); }
.preview-tag {
  position: absolute; top: .75rem; right: .75rem;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: .65rem; font-weight: 600;
  padding: .35rem .75rem; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex; align-items: center; gap: .35rem;
}

/* ==========================================================================
   Mobile & Tablet Responsive Drawer Styles (< 1080px)
   ========================================================================== */
@media (max-width: 1080px) {
  .ef-menu-toggle { display: flex; }
  .ef-nav-menu {
    display: none;
    position: fixed;
    top: 4rem; left: 0; right: 0;
    background: #0d0f13;
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 0 !important;
    box-shadow: 0 24px 48px rgba(0,0,0,0.95);
    width: 100%;
    z-index: 99;
  }
  .ef-nav-menu.open { display: flex; }
  .ef-nav-menu a.ef-navlink {
    font-size: 1rem;
    padding: .85rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text);
  }
  .ef-nav-menu a.ef-cta {
    width: 100%;
    padding: .85rem;
    font-size: 1rem;
    margin-top: 1.25rem;
    text-align: center;
  }
  .ef-modal-overlay { padding: 1rem; }
  .ef-modal-box { height: 85vh; }
  
  .page-hero { padding: 7rem 0 3.5rem !important; }
  .hero-h1 { font-size: clamp(2.2rem, 7vw, 3.6rem) !important; line-height: 1.08 !important; word-break: break-word; }
  .hero-p { font-size: 1.05rem !important; margin-bottom: 2rem !important; max-width: 100% !important; }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    gap: .875rem !important;
  }
  .cta-row a {
    width: 100%;
    justify-content: center;
  }
  
  .cta-block {
    padding: 3rem 1.5rem !important;
    border-radius: 16px !important;
  }
  
  footer .wrap > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 600px) {
  .wrap { padding: 0 1.25rem !important; }
  .page-hero { padding: 6rem 0 2.5rem !important; }
  .hero-h1 { font-size: 2rem !important; }
  .section, .section-alt { padding: 3rem 0 !important; }
  .card, .ef-card { padding: 1.5rem !important; }
  
  .article-content { font-size: 1rem !important; line-height: 1.7 !important; }
  .article-content pre { padding: 1rem !important; font-size: .8rem !important; overflow-x: auto; }
  .price-tag { font-size: 2.3rem !important; }
  .stat-big { font-size: 2.8rem !important; }
  .ef-display { font-size: .95rem !important; }
}

/* Fix "MOST POPULAR" pricing badge visibility and smooth responsive scaling */
.pricing-card-wrap {
  position: relative !important;
  overflow: visible !important;
  margin-top: 1rem !important;
}
.popular-badge {
  position: absolute !important;
  top: -14px !important;
  right: 20px !important;
  background: linear-gradient(135deg, var(--accent), #7f81ff) !important;
  color: #ffffff !important;
  font-size: .68rem !important;
  font-family: var(--font-mono) !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  padding: .35rem .85rem !important;
  border-radius: 20px !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 14px rgba(84, 87, 255, 0.4) !important;
  z-index: 10 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

/* Futuristic Brand Video Typography Mask Styling */
@media (max-width: 900px) {
  .futuristic-brand-vertical-container {
    height: 180px !important;
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
    padding-left: 0 !important;
    padding-top: 1rem !important;
    margin-top: 2rem !important;
  }
}


