/* ============================================================
   NUCORE SYSTEMS LLC — MAIN STYLESHEET v4.0
   Background #080d1a | Card #101828 | Accent #00c896
   Text #e8f0ff | Muted #8da2b5 | Fonts: Calibri (system)
   Domain: www.nucoresys.com
   ============================================================ */

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

/* ── DESIGN TOKENS ── */
:root {
  --navy:           #080d1a;
  --navy-light:     #101828;
  --bg-section:     #0b1220;
  --bg-section-alt: #0e1a2e;
  --card-bg:        #101828;
  --border:         #1e2d42;

  --accent:         #00c896;
  --accent-hover:   #00e8ac;
  --accent-glow:    rgba(0,200,150,0.22);
  --accent-subtle:  rgba(0,200,150,0.08);

  --white:          #e8f0ff;
  --muted:          #8da2b5;
  --gray-100:       #131f30;
  --gray-200:       #1e2d42;
  --gray-300:       #2c3e56;
  --gray-400:       #8da2b5;
  --gray-600:       #b0c4d8;
  --red:            #ff6b6b;
  --green:          #00c896;

  --font-display:   'Calibri Light', Calibri, 'Gill Sans', 'Century Gothic', Candara, sans-serif;
  --font-body:      Calibri, 'Gill Sans', 'Century Gothic', Candara, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --shadow-sm:  0 1px 3px rgba(0,200,150,.06), 0 1px 2px rgba(8,13,26,.30);
  --shadow-md:  0 4px 16px rgba(0,200,150,.08), 0 2px 8px rgba(8,13,26,.40);
  --shadow-lg:  0 12px 40px rgba(8,13,26,.60);
  --shadow-xl:  0 24px 64px rgba(8,13,26,.75);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --max-width:  1240px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--white); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead   { font-size: 1.2rem; color: var(--muted); line-height: 1.75; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.text-white  { color: var(--white); }

/* ── LAYOUT ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }
.section-alt { background: var(--bg-section-alt); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700; cursor: pointer; border: none;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--navy);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,200,150,.35); }
.btn-secondary {
  background: transparent; color: var(--accent); border: 1.5px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-subtle); color: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); color: var(--white); }
.btn-sm  { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg  { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-xl  { padding: 1.1rem 3rem; font-size: 1.1rem; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 70px;
  background: rgba(8,13,26,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(8,13,26,0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.navbar__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.navbar__logo-img { height: 48px; width: auto; object-fit: contain; }
.navbar__nav { display: flex; align-items: center; gap: 0.25rem; }
.navbar__nav a {
  color: var(--muted); font-size: 0.9rem; font-weight: 600; padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm); transition: all var(--transition); text-decoration: none;
}
.navbar__nav a:hover, .navbar__nav a.active { color: var(--white); background: rgba(255,255,255,0.06); }
.navbar__cta { display: flex; align-items: center; gap: 0.75rem; }
.navbar__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.navbar__toggle span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: all var(--transition); }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(160deg, #080d1a 0%, #0a1628 60%, #0d1f3a 100%);
  position: relative; overflow: hidden; padding-top: 70px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,200,150,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; text-align: center; padding: 4rem 0; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,200,150,0.1); border: 1px solid rgba(0,200,150,0.25);
  border-radius: 100px; padding: 0.35rem 1rem; font-size: 0.8rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2rem;
}
.hero__title { margin-bottom: 1.5rem; }
.hero__title span { color: var(--accent); }
.hero__subtitle { max-width: 650px; margin: 0 auto 2.5rem; font-size: 1.15rem; color: var(--muted); }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.hero__stat { text-align: center; }
.hero__stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); font-family: var(--font-display); }
.hero__stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-tag {
  display: inline-block; background: var(--accent-subtle); color: var(--accent);
  border: 1px solid var(--accent-glow); border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem; margin-bottom: 1rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { color: var(--muted); line-height: 1.75; }

/* ── CARDS ── */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 2rem;
  transition: all var(--transition);
}
.card:hover { border-color: rgba(0,200,150,0.3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.card p  { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

/* ── METRIC CARDS ── */
.metric-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem 1.75rem; text-align: center;
}
.metric-card__value { font-size: 2.2rem; font-weight: 700; color: var(--white); font-family: var(--font-display); }
.metric-card__label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }
.metric-card__sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; max-width: 860px; margin: 0 auto; }
.pricing-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem; position: relative;
  display: flex; flex-direction: column;
  transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--accent); background: linear-gradient(160deg,rgba(0,200,150,0.06) 0%,var(--card-bg) 100%);
}
.pricing-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--navy); font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 1rem; border-radius: 100px;
}
.pricing-card__tier { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.75rem; }
.pricing-card__price { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 0.5rem; }
.pricing-card__amount { font-size: 3rem; font-weight: 700; color: var(--white); font-family: var(--font-display); }
.pricing-card__currency { font-size: 1.4rem; color: var(--muted); align-self: flex-start; margin-top: 0.8rem; }
.pricing-card__period { font-size: 0.9rem; color: var(--muted); }
.pricing-card__desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.pricing-card__features { list-style: none; margin-bottom: 2rem; flex: 1; }
.pricing-card__features li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(30,45,66,0.5);
  font-size: 0.9rem; color: var(--gray-600);
}
.pricing-card__features li:last-child { border-bottom: none; }
.pricing-card__features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--gray-600);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }

/* ── ACCORDION ── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.accordion + .accordion { margin-top: 0.75rem; }
.accordion-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; background: var(--card-bg); border: none; cursor: pointer;
  color: var(--white); font-size: 1rem; font-weight: 600; font-family: var(--font-body);
  text-align: left; transition: background var(--transition);
}
.accordion-btn:hover { background: rgba(0,200,150,0.05); }
.accordion-btn[aria-expanded="true"] { color: var(--accent); }
.accordion-btn[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-icon { flex-shrink: 0; transition: transform var(--transition); color: var(--muted); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; background: rgba(8,13,26,0.4); }
.accordion-body.open { max-height: 600px; }
.accordion-body__inner { padding: 1.25rem 1.5rem 1.5rem; color: var(--muted); font-size: 0.93rem; line-height: 1.8; }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.compare-table th {
  background: var(--card-bg); color: var(--muted); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 1rem; border-bottom: 2px solid var(--border); text-align: center;
}
.compare-table th:first-child { text-align: left; }
.compare-table th.nucore-col { background: rgba(0,200,150,0.1); color: var(--accent); }
.compare-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--gray-600); text-align: center; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--white); }
.compare-table td.nucore-col { background: rgba(0,200,150,0.04); font-weight: 700; color: var(--accent); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table tr:hover td.nucore-col { background: rgba(0,200,150,0.07); }
.check { color: var(--accent); font-weight: 700; }
.dash  { color: var(--muted); opacity: 0.5; }
.part  { color: #f6ad55; }

/* ── DOCS LAYOUT ── */
.docs-layout { display: flex; min-height: calc(100vh - 70px); }
.docs-sidebar {
  width: 260px; flex-shrink: 0; background: var(--card-bg); border-right: 1px solid var(--border);
  position: sticky; top: 70px; height: calc(100vh - 70px); overflow-y: auto; padding-bottom: 2rem;
}
.docs-sidebar__section-title {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); padding: 1.25rem 1.5rem 0.5rem; margin-top: 0.5rem;
}
.docs-sidebar__link {
  display: block; padding: 0.55rem 1.5rem; font-size: 0.88rem; color: var(--muted);
  text-decoration: none; border-left: 2px solid transparent; transition: all var(--transition);
}
.docs-sidebar__link:hover { color: var(--white); background: rgba(255,255,255,0.04); border-left-color: var(--border); }
.docs-sidebar__link.active { color: var(--accent); background: var(--accent-subtle); border-left-color: var(--accent); font-weight: 600; }
.docs-content { flex: 1; padding: 3rem 3.5rem; max-width: 820px; }
.docs-content h1 { margin-bottom: 1rem; }
.docs-content h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.docs-content h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; color: var(--accent); }
.docs-content p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
.docs-content ul, .docs-content ol { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1rem; }
.docs-content li { padding: 0.2rem 0; line-height: 1.7; }
.docs-content code {
  font-family: var(--font-mono); font-size: 0.85em; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 4px; padding: 0.15em 0.4em; color: var(--accent);
}
.docs-content pre {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1.25rem 0;
}
.docs-content pre code { background: none; border: none; padding: 0; color: var(--gray-600); font-size: 0.88rem; }

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.blog-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; transition: all var(--transition);
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0,200,150,0.25); }
.blog-card__img { height: 180px; background: linear-gradient(135deg, #0e1a2e, #162035); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.6rem; }
.blog-card__title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.6rem; line-height: 1.4; }
.blog-card__excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.7; flex: 1; }
.blog-card__footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.blog-card__date { font-size: 0.78rem; color: var(--muted); }
.blog-card__read { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* ── FOOTER ── */
.footer {
  background: var(--card-bg); border-top: 1px solid var(--border); padding: 4rem 0 2rem;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand-logo { height: 44px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer__brand-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }
.footer__col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 1rem; }
.footer__col a { display: block; font-size: 0.88rem; color: var(--muted); text-decoration: none; margin-bottom: 0.5rem; transition: color var(--transition); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__copy { font-size: 0.82rem; color: var(--muted); }
.footer__legal { font-size: 0.78rem; color: var(--muted); max-width: 700px; line-height: 1.6; }

/* ── DISCLAIMER BANNER ── */
.disclaimer-bar {
  background: rgba(255,107,107,0.08); border-bottom: 1px solid rgba(255,107,107,0.2);
  padding: 0.6rem 0; text-align: center;
}
.disclaimer-bar p { font-size: 0.78rem; color: #ffb3b3; margin: 0; }

/* ── BADGES & TAGS ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem; border-radius: 100px;
}
.badge-accent { background: var(--accent-subtle); color: var(--accent); border: 1px solid var(--accent-glow); }
.badge-warn   { background: rgba(246,173,85,0.1); color: #f6ad55; border: 1px solid rgba(246,173,85,0.25); }
.badge-red    { background: rgba(255,107,107,0.1); color: var(--red); border: 1px solid rgba(255,107,107,0.25); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem; }
.form-control {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.92rem;
  color: var(--white); background: var(--card-bg); transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--card-bg); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ── LAPSE NOTICE ── */
.lapse-notice {
  background: rgba(0,200,150,0.06); border: 1px solid rgba(0,200,150,0.22);
  border-radius: var(--radius-md); padding: 1.5rem 2rem; display: flex; gap: 1rem;
  align-items: flex-start; margin: 2.5rem 0;
}
.lapse-notice p { color: var(--gray-600); font-size: 0.92rem; line-height: 1.8; margin: 0; }
.lapse-notice__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .docs-content { padding: 2rem 2rem; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .hero__stats { gap: 1.5rem; }
}
@media (max-width: 768px) {
  .navbar__nav { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(8,13,26,0.98); padding: 1rem; border-bottom: 1px solid var(--border); }
  .navbar__nav.open { display: flex; }
  .navbar__cta { display: none; }
  .navbar__cta.open { display: flex; flex-direction: column; position: fixed; top: auto; bottom: 0; left: 0; right: 0; padding: 1rem; background: rgba(8,13,26,0.98); border-top: 1px solid var(--border); }
  .navbar__toggle { display: flex; }
  .docs-layout { flex-direction: column; }
  .docs-sidebar { width: 100%; position: static; height: auto; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__stats { flex-direction: column; gap: 1.25rem; }
  .hero__cta { flex-direction: column; align-items: center; }
  .navbar { padding: 0 1rem; }
}


