/* ========================================
   IONEOSYS Technologies — Global Stylesheet
   Dark theme, orange/amber logo palette
   ======================================== */

:root {
  --bg-0: #000000;
  --bg-1: #0a0a0c;
  --bg-2: #111114;
  --bg-3: #16161a;
  --bg-elev: #1c1c22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #ececee;
  --text-dim: #b9b9bf;
  --text-mute: #8a8a92;

  --brand-orange: #F58220;
  --brand-amber:  #FFB627;
  --brand-orange-deep: #E26C0A;
  --brand-amber-soft: rgba(255, 182, 39, 0.12);
  --brand-orange-soft: rgba(245, 130, 32, 0.12);

  --grad-brand: linear-gradient(135deg, #FFB627 0%, #F58220 55%, #E26C0A 100%);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-brand: 0 18px 45px -20px rgba(245, 130, 32, 0.55);
  --shadow-card: 0 10px 32px rgba(0, 0, 0, 0.45);

  --font-head: 'Chivo', 'Work Sans', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

p { color: var(--text-dim); }

a { color: var(--brand-amber); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-orange); }

.text-brand { color: var(--brand-amber); }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { section { padding: 64px 0; } }

.container-x { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAVBAR ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 8, 10, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-nav .navbar-brand { display: flex; align-items: center; gap: 10px; }
.site-nav .brand-logo { height: 34px; width: auto; }
.site-nav .brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: #fff;
}
.site-nav .brand-text .accent { color: var(--brand-orange); }

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  position: relative;
  transition: color .2s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active { color: #fff; }
.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.1rem;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}
.navbar-dark .dropdown-menu {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .6rem;
  box-shadow: var(--shadow-card);
}
.navbar-dark .dropdown-item {
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
  transition: all .15s ease;
}
.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
  background: var(--brand-orange-soft);
  color: #fff;
}
.navbar-toggler {
  border: 1px solid var(--line-strong);
  padding: .4rem .6rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--brand-orange-soft); }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.6rem;
  border-radius: 999px;
  transition: all .25s ease;
  font-size: 0.95rem;
}
.btn-brand {
  background: var(--grad-brand);
  border: none;
  color: #1a0d00;
}
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  color: #1a0d00;
}
.btn-outline-brand {
  border: 1px solid var(--line-strong);
  color: #fff;
  background: transparent;
}
.btn-outline-brand:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: var(--brand-orange-soft);
}
.btn-ghost {
  color: var(--text-dim);
  background: transparent;
}
.btn-ghost:hover { color: #fff; }

.btn-arrow::after {
  content: "→";
  margin-left: 8px;
  display: inline-block;
  transition: transform .25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 380px at 12% 8%, rgba(255, 182, 39, 0.12), transparent 65%),
    radial-gradient(700px 420px at 92% 90%, rgba(245, 130, 32, 0.10), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero > .container-x { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: 0 0 10px var(--brand-orange);
}

.hero h1 { margin: 22px 0 18px; }
.hero .lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 640px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 182, 39, 0.25), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(245, 130, 32, 0.22), transparent 55%),
    #0d0d11;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.8;
}
.hero-visual .badge-float {
  position: absolute;
  padding: 10px 14px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 0.82rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-visual .badge-float.b1 { top: 6%; left: 6%; }
.hero-visual .badge-float.b2 { bottom: 8%; right: 6%; }
.hero-visual .badge-float i { color: var(--brand-amber); }

/* Stats strip */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.stats-strip .stat {
  padding: 32px 10px;
  text-align: center;
}
.stats-strip .stat-num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats-strip .stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}

/* Section intro */
.section-intro { max-width: 720px; margin-bottom: 56px; }
.section-intro .eyebrow { margin-bottom: 18px; }
.section-intro p { font-size: 1.05rem; margin-top: 16px; }

/* ---------- SERVICE CARD ---------- */
.svc-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  height: 100%;
  transition: all .3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.svc-card > * { position: relative; z-index: 1; }
.svc-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.svc-card:hover .svc-icon {
  background: var(--grad-brand);
  color: #1a0d00;
}
.svc-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--brand-amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all .3s ease;
}
.svc-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.svc-card p { margin: 0 0 20px; font-size: 0.95rem; flex-grow: 1; }
.svc-card .svc-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-amber);
  letter-spacing: 0.02em;
}
.svc-card .svc-link::after { content: " →"; transition: margin .25s ease; display: inline-block; }
.svc-card:hover .svc-link::after { margin-left: 4px; }

/* ---------- FEATURE (alternating) ---------- */
.feature-row { align-items: center; gap: 40px 0; }
.feature-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy h2 { margin-bottom: 18px; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text-dim);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 10px;
  width: 20px; height: 20px;
  background: var(--brand-orange-soft);
  color: var(--brand-amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- INDUSTRY CARD ---------- */
.ind-card {
  padding: 28px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
  height: 100%;
}
.ind-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-orange);
  background: var(--bg-3);
}
.ind-card .ind-num {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--brand-amber);
  margin-bottom: 14px;
  display: block;
}
.ind-card h4 { font-size: 1.1rem; margin: 0 0 8px; }
.ind-card p { font-size: 0.88rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-panel {
  padding: 68px 48px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 380px at 15% 20%, rgba(255,182,39,0.18), transparent 60%),
    radial-gradient(500px 300px at 90% 80%, rgba(245,130,32,0.14), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.cta-panel h2 { margin: 0 0 16px; }
.cta-panel p { max-width: 620px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  padding: 72px 0 28px;
  margin-top: 40px;
}
.footer-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.site-footer li a:hover { color: var(--brand-amber); }
.footer-about p { font-size: 0.92rem; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-mute);
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.social-links a:hover {
  border-color: var(--brand-orange);
  color: var(--brand-amber);
}

/* ---------- PAGE HEADER (non-home) ---------- */
.page-hero {
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 90% 10%, rgba(245, 130, 32, 0.12), transparent 60%),
    radial-gradient(500px 300px at 5% 90%, rgba(255, 182, 39, 0.08), transparent 60%);
  pointer-events: none;
}
.page-hero .container-x { position: relative; z-index: 1; }
.page-hero h1 { margin-top: 16px; max-width: 880px; }
.page-hero p.lead { color: var(--text-dim); max-width: 720px; font-size: 1.1rem; margin-top: 16px; }

.breadcrumb-bar {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.breadcrumb-bar a { color: var(--text-dim); }
.breadcrumb-bar .sep { margin: 0 10px; color: var(--text-mute); }

/* ---------- FORM ---------- */
.form-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.form-control, .form-select {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.form-control::placeholder { color: var(--text-mute); }
.form-control:focus, .form-select:focus {
  background: var(--bg-1);
  color: #fff;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.2);
}
.form-select option { background: var(--bg-1); color: #fff; }

.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  margin-top: 18px;
  display: none;
}
.form-alert.success {
  display: block;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

/* ---------- INFO CARDS ---------- */
.info-card {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
/* Stretch to full column height only when it is the single card in its column (grid usage) */
[class*="col-"] > .info-card:only-child,
[class*="col-"] > a:only-child > .info-card {
  height: 100%;
}
.info-card i {
  font-size: 1.6rem;
  color: var(--brand-amber);
  margin-bottom: 14px;
}
.info-card h4 { font-size: 1.05rem; margin: 0 0 6px; }
.info-card p { margin: 0; font-size: 0.92rem; }

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
  margin: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-amber), transparent);
}
.timeline li {
  position: relative;
  padding: 8px 0 32px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -33px; top: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.15);
}
.timeline h4 { margin: 0 0 4px; font-size: 1.05rem; color: #fff; }
.timeline .year {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--brand-amber);
  display: block;
  margin-bottom: 6px;
}
.timeline p { margin: 0; font-size: 0.92rem; }

/* ---------- ACCORDION (FAQ) ---------- */
.accordion-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.accordion-button {
  background: var(--bg-2);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 18px 22px;
}
.accordion-button:not(.collapsed) {
  background: var(--bg-3);
  color: var(--brand-amber);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-button::after { filter: invert(1) opacity(0.6); }
.accordion-body { background: var(--bg-2); color: var(--text-dim); padding: 4px 22px 20px; }

/* ---------- PRICING / PLAN (case studies) ---------- */
.insight-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.insight-card .ic-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-3);
}
.insight-card .ic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.insight-card:hover .ic-img img { transform: scale(1.05); }
.insight-card .ic-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.insight-card .tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--brand-amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.insight-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.insight-card p { font-size: 0.9rem; margin: 0; flex-grow: 1; }
.insight-card .ic-link {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--brand-amber);
}

/* ---------- LOGO CLOUD ---------- */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.logo-cloud .lc-item {
  padding: 28px 20px;
  text-align: center;
  color: var(--text-mute);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  transition: color .2s ease;
}
.logo-cloud .lc-item:hover { color: var(--text); }

/* ---------- UTILITIES ---------- */
.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0;
  border: none;
}
.bg-panel { background: var(--bg-1); }
.bg-elev { background: var(--bg-2); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive tweaks */
@media (max-width: 991px) {
  .hero { padding: 80px 0 60px; }
  .hero-visual { margin: 40px auto 0; }
  .cta-panel { padding: 44px 28px; }
  .form-panel { padding: 28px; }
  .feature-row > div:first-child { order: 2; }
  .feature-row.reverse > div:first-child { order: 0; }
}
