/* ============================================================
   Quantrex (Ganga Instrument Company) — global stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg: #090c11;
  --bg-soft: #0d1118;
  --navy: #0a2647;
  --navy-deep: #061a33;
  --blue: #0ea5e9;
  --blue-deep: #0b6fb8;
  --green: #5cb82f;
  --green-deep: #3d8a1c;
  --white: #ffffff;
  --line: rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --shadow-glow: 0 20px 60px rgba(14,165,233,0.12);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{
  font-family:'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing:antialiased;
  background:var(--bg);
  color:var(--white);
  margin:0;
}
::selection{ background: rgba(14,165,233,0.3); }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

/* ---------- background ambience ---------- */
.bg-fx{
  position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(14,165,233,0.16), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(92,184,47,0.10), transparent 55%),
    radial-gradient(1000px 600px at 50% 120%, rgba(11,111,184,0.10), transparent 60%);
}
.grid-line{
  display:none;
}
@media (min-width:1024px){
  .grid-line{
    display:block; position:fixed; inset-block:0; width:1px; background:var(--line-soft); z-index:1; pointer-events:none;
  }
  .grid-line.left{ left:50%; transform:translateX(calc(-50% - 34rem)); }
  .grid-line.right{ left:50%; transform:translateX(calc(-50% + 34rem)); }
}

/* ---------- noise filter host ---------- */
.noise-defs{ position:absolute; width:0; height:0; overflow:hidden; }

/* ---------- typography ---------- */
h1,h2,h3,h4{ margin:0; font-weight:700; letter-spacing:-0.02em; }
p{ margin:0; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.78rem; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
  color:rgba(255,255,255,0.55);
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--blue); box-shadow:0 0 12px var(--blue); }

.shiny{
  background-image:linear-gradient(to right,
    var(--navy-deep) 0%, var(--navy) 15%, var(--blue) 40%, #a4f4fd 50%, var(--blue) 60%, var(--navy) 85%, var(--navy-deep) 100%);
  background-size:220% auto;
  -webkit-background-clip:text; background-clip:text;
  color:transparent; -webkit-text-fill-color:transparent;
  animation:shiny 7s linear infinite;
}
@keyframes shiny{ 0%{ background-position:0% center; } 100%{ background-position:-220% center; } }

.text-grad-bg{
  background:linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:0.92rem; font-weight:600; padding:13px 26px; border-radius:100px;
  border:1px solid transparent; transition:all .25s cubic-bezier(.22,1,.36,1); white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
  color:#04121c;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(14,165,233,0.35); }
.btn-outline{
  background:rgba(255,255,255,0.03); color:var(--white); border-color:var(--line);
}
.btn-outline:hover{ background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.25); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:0.6; cursor:not-allowed; transform:none !important; }
.btn .arrow{ transition:transform .2s ease; }
.btn:hover .arrow{ transform:translateX(3px); }

/* ---------- liquid glass ---------- */
.glass{
  background:rgba(255,255,255,0.025);
  backdrop-filter:blur(10px);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  position:relative;
}
.glass-sm{ border-radius:var(--radius-md); }

/* ---------- navbar ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(9,12,17,0.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.nav-inner{
  max-width:var(--container); margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand .logo-badge{
  display:inline-flex; align-items:center;
  background:#ffffff; border-radius:12px; padding:9px 16px;
  box-shadow:0 2px 10px rgba(0,0,0,0.25);
}
.brand img{ height:38px; width:auto; display:block; }
.nav-links{ display:none; align-items:center; gap:30px; }
.nav-links a{
  font-size:0.92rem; font-weight:500; color:rgba(255,255,255,0.7); transition:color .2s ease;
  position:relative;
}
.nav-links a:hover{ color:#fff; }
.nav-links a.active{ color:#fff; }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-8px; height:2px;
  background:linear-gradient(90deg,var(--blue),var(--green));
  border-radius:2px;
}
.nav-cta{ display:none; }
.nav-toggle{
  display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center;
  border-radius:12px; border:1px solid var(--line); background:rgba(255,255,255,0.04);
}
.nav-toggle svg{ width:20px; height:20px; }
@media (min-width:900px){
  .nav-links{ display:flex; }
  .nav-cta{ display:inline-flex; }
  .nav-toggle{ display:none; }
}
.mobile-menu{
  display:none; flex-direction:column; gap:2px; padding:10px 24px 20px;
  border-top:1px solid var(--line-soft);
  background:rgba(9,12,17,0.96);
}
.mobile-menu.open{ display:flex; }
.mobile-menu a{
  padding:14px 6px; font-size:1rem; font-weight:500; color:rgba(255,255,255,0.8);
  border-bottom:1px solid var(--line-soft);
}
.mobile-menu a.active{ color:var(--blue); }
.mobile-menu .btn{ margin-top:14px; }

/* ---------- top info bar ---------- */
.topbar{
  background:var(--navy-deep); border-bottom:1px solid var(--line-soft);
  font-size:0.78rem; color:rgba(255,255,255,0.6);
}
.topbar .container{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:8px; padding-bottom:8px; flex-wrap:wrap; }
.topbar a{ color:rgba(255,255,255,0.75); }
.topbar a:hover{ color:#fff; }
.topbar-links{ display:flex; gap:18px; flex-wrap:wrap; }
.topbar-links span{ display:inline-flex; align-items:center; gap:6px; }

/* ---------- hero ---------- */
.hero{
  position:relative; z-index:2;
  padding:76px 0 60px;
  text-align:center;
}
.hero h1{
  font-size:clamp(2.1rem, 5vw, 3.6rem);
  line-height:1.08;
}
.hero p.lead{
  margin:22px auto 0; max-width:640px;
  color:rgba(255,255,255,0.62); font-size:1.05rem; line-height:1.6;
}
.hero-actions{ margin-top:32px; display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.hero-photo{ overflow:hidden; }
.hero-bg{ position:absolute; inset:0; z-index:-1; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; object-position:center 62%; }
.hero-bg-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(9,12,17,0.35) 0%, rgba(9,12,17,0.72) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9,12,17,0.55) 0%, rgba(9,12,17,0.15) 40%, rgba(9,12,17,0.15) 60%, rgba(9,12,17,0.55) 100%);
}
.page-hero{ padding:56px 0 44px; text-align:left; }
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero h1{ font-size:clamp(2rem, 4.4vw, 3rem); }
.page-hero p.lead{ margin-left:0; }

.breadcrumb{
  display:flex; gap:8px; align-items:center; font-size:0.82rem; color:rgba(255,255,255,0.45);
  padding-top:22px;
}
.breadcrumb a:hover{ color:#fff; }

/* ---------- sections ---------- */
section{ position:relative; z-index:2; }
.section{ padding:64px 0; }
.section-head{ max-width:640px; margin-bottom:40px; }
.section-head h2{ margin-top:14px; font-size:clamp(1.7rem,3.2vw,2.4rem); line-height:1.15; }
.section-head p{ margin-top:14px; color:rgba(255,255,255,0.6); line-height:1.6; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.divider-top{ border-top:1px solid var(--line-soft); }

/* ---------- grids ---------- */
.grid{ display:grid; gap:22px; }
.grid-2{ grid-template-columns:repeat(1,1fr); }
.grid-3{ grid-template-columns:repeat(1,1fr); }
.grid-4{ grid-template-columns:repeat(2,1fr); }
@media (min-width:720px){
  .grid-2{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:980px){
  .grid-3{ grid-template-columns:repeat(3,1fr); }
  .grid-4{ grid-template-columns:repeat(4,1fr); }
}

/* ---------- cards ---------- */
.card{
  padding:28px;
  transition:transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, background .3s ease;
}
.card:hover{ transform:translateY(-4px); border-color:rgba(14,165,233,0.35); background:rgba(255,255,255,0.045); }
.card .icon{
  width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(14,165,233,0.18), rgba(92,184,47,0.18));
  border:1px solid var(--line);
  margin-bottom:18px;
}
.card .icon svg{ width:22px; height:22px; stroke:#fff; }
.card h3{ font-size:1.1rem; margin-bottom:10px; }
.card p{ color:rgba(255,255,255,0.58); font-size:0.92rem; line-height:1.6; }
.card a.card-link{ margin-top:16px; display:inline-flex; align-items:center; gap:6px; font-size:0.86rem; font-weight:600; color:var(--blue); }

.category-card{ text-align:left; }

/* ---------- stat strip ---------- */
.stats{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
@media (min-width:800px){ .stats{ grid-template-columns:repeat(4,1fr); } }
.stat{ padding:24px; text-align:center; }
.stat .num{ font-size:1.9rem; font-weight:800; }
.stat .label{ margin-top:6px; font-size:0.82rem; color:rgba(255,255,255,0.55); }

/* ---------- product cards ---------- */
.product-card{
  display:grid; grid-template-columns:1fr; gap:0; overflow:hidden;
}
@media (min-width:860px){ .product-card{ grid-template-columns:0.85fr 1.15fr; } }
.product-media{
  display:flex; align-items:center; justify-content:center;
  padding:36px; background:radial-gradient(circle at 50% 40%, rgba(255,255,255,0.06), transparent 70%);
  border-bottom:1px solid var(--line-soft);
}
@media (min-width:860px){ .product-media{ border-bottom:none; border-right:1px solid var(--line-soft); } }
.product-media img{ max-height:280px; width:auto; margin:0 auto; filter:drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
.product-body{ padding:36px; }
.product-tag{
  display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  padding:5px 12px; border-radius:100px; color:var(--blue);
  background:rgba(14,165,233,0.12); border:1px solid rgba(14,165,233,0.3); margin-bottom:14px;
}
.product-body h3{ font-size:1.5rem; }
.product-body .sub{ margin-top:4px; color:rgba(255,255,255,0.55); font-size:0.95rem; }
.product-body .desc{ margin-top:16px; color:rgba(255,255,255,0.65); line-height:1.65; font-size:0.95rem; }
.chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.chip{
  font-size:0.78rem; padding:7px 13px; border-radius:100px; border:1px solid var(--line);
  background:rgba(255,255,255,0.03); color:rgba(255,255,255,0.7);
}
.product-actions{ margin-top:26px; display:flex; gap:12px; flex-wrap:wrap; }

/* spec table */
.spec-table{ width:100%; border-collapse:collapse; margin-top:18px; font-size:0.86rem; }
.spec-table tr{ border-bottom:1px solid var(--line-soft); }
.spec-table tr:last-child{ border-bottom:none; }
.spec-table td{ padding:11px 4px; vertical-align:top; }
.spec-table td:first-child{ color:rgba(255,255,255,0.5); width:42%; font-weight:500; }
.spec-table td:last-child{ color:rgba(255,255,255,0.85); }
details.spec-toggle{ margin-top:20px; border-top:1px solid var(--line-soft); padding-top:16px; }
details.spec-toggle summary{
  cursor:pointer; font-size:0.88rem; font-weight:600; color:var(--blue); list-style:none;
  display:flex; align-items:center; gap:8px;
}
details.spec-toggle summary::-webkit-details-marker{ display:none; }
details.spec-toggle summary .chev{ transition:transform .2s ease; }
details.spec-toggle[open] summary .chev{ transform:rotate(90deg); }

/* ---------- category simple cards (no image) ---------- */
.mini-card{ padding:26px; }
.mini-card h4{ font-size:1.02rem; margin-bottom:8px; }
.mini-card p{ font-size:0.88rem; color:rgba(255,255,255,0.55); line-height:1.6; }

/* ---------- solutions ---------- */
.solution-card{ padding:30px; }
.solution-card .num{ font-size:0.78rem; font-weight:700; color:var(--green); letter-spacing:0.08em; }
.solution-card h3{ margin-top:10px; font-size:1.2rem; }
.solution-card p{ margin-top:12px; color:rgba(255,255,255,0.6); font-size:0.92rem; line-height:1.65; }

/* ---------- support grid ---------- */
.support-item{ display:flex; gap:16px; padding:22px; align-items:flex-start; }
.support-item .icon{ margin-bottom:0; flex-shrink:0; }
.support-item h4{ font-size:1rem; margin-bottom:6px; }
.support-item p{ font-size:0.86rem; color:rgba(255,255,255,0.55); line-height:1.55; }

/* ---------- CTA banner ---------- */
.cta-banner{
  padding:56px 32px; text-align:center; position:relative; overflow:hidden;
}
.cta-banner::before{
  content:''; position:absolute; inset:0;
  background:radial-gradient(600px circle at 50% 0%, rgba(14,165,233,0.18), transparent 70%);
  pointer-events:none;
}
.cta-banner h2{ font-size:clamp(1.6rem,3vw,2.2rem); position:relative; }
.cta-banner p{ margin-top:14px; color:rgba(255,255,255,0.6); max-width:520px; margin-left:auto; margin-right:auto; position:relative; }
.cta-banner .hero-actions{ position:relative; }

/* ---------- about page ---------- */
.about-block{ padding:30px; }
.about-block h3{ font-size:1.25rem; margin-bottom:14px; }
.about-block p{ color:rgba(255,255,255,0.65); line-height:1.7; font-size:0.96rem; }
.about-block p + p{ margin-top:14px; }
.mission-list li{
  display:flex; gap:12px; align-items:flex-start; padding:12px 0; border-bottom:1px solid var(--line-soft); font-size:0.94rem; color:rgba(255,255,255,0.75);
}
.mission-list li:last-child{ border-bottom:none; }
.mission-list .check{
  flex-shrink:0; width:22px; height:22px; border-radius:50%; background:rgba(92,184,47,0.18); border:1px solid rgba(92,184,47,0.4);
  display:flex; align-items:center; justify-content:center;
}
.mission-list .check svg{ width:12px; height:12px; }

/* ---------- contact page ---------- */
.contact-grid{ display:grid; gap:26px; grid-template-columns:1fr; }
@media (min-width:960px){ .contact-grid{ grid-template-columns:1.15fr 0.85fr; } }
.form-card{ padding:34px; }
.form-row{ display:grid; gap:16px; grid-template-columns:1fr; margin-bottom:16px; }
@media (min-width:600px){ .form-row.two{ grid-template-columns:1fr 1fr; } }
.field label{ display:block; font-size:0.82rem; font-weight:600; color:rgba(255,255,255,0.6); margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; background:rgba(255,255,255,0.04); border:1px solid var(--line); border-radius:12px;
  padding:13px 15px; color:#fff; font-family:inherit; font-size:0.92rem; transition:border-color .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--blue); background:rgba(255,255,255,0.06);
}
.field textarea{ resize:vertical; min-height:130px; }
.field select{ appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='white' stroke-width='2'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat:no-repeat; background-position:right 14px center; padding-right:38px; }
.field select option{ background:#0d1118; color:#fff; }
.form-note{ font-size:0.78rem; color:rgba(255,255,255,0.4); margin-top:14px; line-height:1.5; }
.form-status{
  margin-top:16px; padding:13px 16px; border-radius:12px; font-size:0.88rem; display:none;
}
.form-status.show{ display:block; }
.form-status.ok{ background:rgba(92,184,47,0.14); border:1px solid rgba(92,184,47,0.4); color:#bdf0a0; }
.form-status.err{ background:rgba(230,70,70,0.14); border:1px solid rgba(230,70,70,0.4); color:#ffb3b3; }

.info-card{ padding:30px; }
.info-row{ display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line-soft); }
.info-row:last-child{ border-bottom:none; }
.info-row .icon{ margin-bottom:0; width:42px; height:42px; flex-shrink:0; }
.info-row .icon svg{ width:19px; height:19px; }
.info-row h4{ font-size:0.86rem; color:rgba(255,255,255,0.5); font-weight:600; margin-bottom:4px; text-transform:uppercase; letter-spacing:0.04em; }
.info-row p, .info-row a{ font-size:0.95rem; color:rgba(255,255,255,0.9); line-height:1.5; }
.info-row a:hover{ color:var(--blue); }
.map-wrap{ margin-top:22px; border-radius:16px; overflow:hidden; border:1px solid var(--line); }
.map-wrap iframe{ width:100%; height:220px; border:0; filter:grayscale(0.3) invert(0.92) contrast(0.9); display:block; }

/* ---------- footer ---------- */
.footer{ border-top:1px solid var(--line-soft); padding:56px 0 26px; position:relative; z-index:2; background:rgba(6,8,12,0.6); }
.footer-grid{ display:grid; gap:36px; grid-template-columns:1fr; }
@media (min-width:800px){ .footer-grid{ grid-template-columns:1.4fr 1fr 1fr 1.2fr; } }
.footer-brand .logo-badge{
  display:inline-flex; align-items:center;
  background:#ffffff; border-radius:12px; padding:10px 16px;
  margin-bottom:16px;
}
.footer-brand img{ height:36px; margin-bottom:0; display:block; }
.footer-brand p{ color:rgba(255,255,255,0.5); font-size:0.88rem; line-height:1.65; max-width:320px; }
.footer h5{ font-size:0.82rem; text-transform:uppercase; letter-spacing:0.06em; color:rgba(255,255,255,0.45); margin-bottom:16px; }
.footer ul li{ margin-bottom:10px; }
.footer ul a{ font-size:0.9rem; color:rgba(255,255,255,0.68); }
.footer ul a:hover{ color:#fff; }
.footer-bottom{
  margin-top:44px; padding-top:22px; border-top:1px solid var(--line-soft);
  display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center;
  font-size:0.8rem; color:rgba(255,255,255,0.4);
}

/* ---------- reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- utilities ---------- */
.mt-0{ margin-top:0 !important; }
.text-center{ text-align:center; }
.w-100{ width:100%; }
