/* ==========================================================================
   Fiberoptik.az — Design tokens
   Palette: ink navy ground, signal-cyan pulse, fiber-amber warmth
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (data/eyebrow)
   Signature: the OTDR trace — a traveling light-pulse line that recurs
   as the hero graphic, section dividers and hover states.
   ========================================================================== */

:root{
  --ink:        #118C4F;
  --ink-2:      #101a3d;
  --panel:      #6f8f91;
  --cyan:       #22d3ee;
  --cyan-dim:   #22d3ee55;
  --amber:      #ff9f43;
  --mist:       #f4f7fb;
  --mist-dim:   #c7d0e6;
  --slate:      #8593b0;
  --line:       #223163;
  --success:    #4ade80;

  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--display);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}
p{ margin: 0 0 1em; color: var(--mist-dim); }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content:"";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .02em;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--amber);
  color: #1a0e00;
  font-weight: 600;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px -8px #ff9f4370; }
.btn-ghost{
  border-color: var(--line);
  color: var(--mist);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--cyan); color: var(--cyan); }
.btn-wp{
  background: #17281f;
  border-color: #2c4a38;
  color: #6fe8a0;
}
.btn-wp:hover{ border-color: #4ade80; transform: translateY(-2px); }
.btn-block{ width: 100%; justify-content:center; }

/* ---------- topbar ---------- */
.topbar{
  background: #060a1a;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
}
.topbar .container{
  display:flex; justify-content: space-between; align-items:center;
  height: 38px; gap: 16px; flex-wrap: wrap;
}
.topbar a{ color: var(--slate); transition: color .15s; }
.topbar a:hover{ color: var(--cyan); }
.topbar-links{ display:flex; gap:20px; }
.topbar-addr{ color: var(--slate); }

/* ---------- header / nav ---------- */
header.site{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,17,40,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px; gap: 24px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family: var(--display); font-weight:700; font-size:20px; color:#fff;
}
.logo .dot{ color: var(--cyan); }
.navlinks{ display:flex; gap: 30px; font-size: 15px; }
.navlinks a{ color: var(--mist-dim); position:relative; padding: 6px 0; transition:color .15s;}
.navlinks a:hover, .navlinks a.active{ color: #fff; }
.navlinks a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: var(--cyan); border-radius: 2px;
}
.nav-cta{ display:flex; align-items:center; gap:12px; }
.nav-phone{ font-family: var(--mono); font-size:14px; color:#fff; }
.nav-toggle{ display:none; }

@media (max-width: 900px){
  .navlinks{ display:none; }
  .nav-phone{ display:none; }
}

/* ---------- OTDR trace (signature element) ---------- */
.otdr{
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}
.otdr svg{ width:100%; height:100%; display:block; }
.otdr .trace-line{
  fill:none; stroke: var(--line); stroke-width: 1.5;
}
.otdr .trace-glow{
  fill:none; stroke: var(--cyan); stroke-width: 2;
  stroke-dasharray: 12 900;
  animation: pulse-travel 3.6s linear infinite;
  filter: drop-shadow(0 0 6px var(--cyan));
}
@keyframes pulse-travel{
  0%{ stroke-dashoffset: 0; }
  100%{ stroke-dashoffset: -900; }
}
.otdr .splice-mark{ fill: var(--amber); }
.otdr .splice-label{ font-family: var(--mono); font-size: 9px; fill: var(--slate); }

.divider{ height:1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 0; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: 88px 0 70px;
  background:
    radial-gradient(ellipse 900px 500px at 85% 0%, #1c3a7a55, transparent 60%),
    radial-gradient(ellipse 700px 500px at 0% 100%, #ff9f4318, transparent 60%),
    var(--ink);
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items:center;
}
@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }

.hero h1{ font-size: clamp(32px, 4.4vw, 52px); }
.hero .lead{ font-size: 17.5px; max-width: 46ch; }
.hero-ctas{ display:flex; gap:14px; margin: 30px 0 40px; flex-wrap:wrap; }

.readout-row{ display:flex; gap: 28px; flex-wrap:wrap; }
.readout{
  font-family: var(--mono);
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
}
.readout .val{ font-size: 24px; color:#fff; font-weight:600; }
.readout .lbl{ font-size: 11.5px; color: var(--slate); letter-spacing:.04em; }

/* fiber cable hero art */
.fiber-art{ position:relative; }
.fiber-art svg{ width:100%; height:auto; }

/* ---------- sections ---------- */
section{ padding: 84px 0; }
.section-head{ max-width: 640px; margin-bottom: 48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-alt{ background: var(--ink-2); }

/* ---------- cards ---------- */
.grid{ display:grid; gap: 24px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; } }

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); border-color: var(--cyan-dim); }
.card .icon{ margin-bottom: 18px; }
.card h3{ font-size: 19px; }
.card p{ font-size: 14.5px; margin-bottom: 14px; }
.card .link{ font-family: var(--mono); font-size: 13px; color: var(--cyan); }
.card .link::after{ content:" →"; }

.stat-strip{
  display:flex; justify-content: space-between; flex-wrap:wrap; gap: 30px;
  padding: 40px 0;
}
.stat{ font-family: var(--mono); }
.stat .num{ font-family: var(--display); font-size: 40px; color:#fff; }
.stat .num .accent{ color: var(--amber); }
.stat .lbl{ font-size: 13px; color: var(--slate); }

/* process steps */
.steps{ display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px){ .steps{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr; } }
.step{ position:relative; padding-top: 34px; border-top: 1px solid var(--line); }
.step .n{ font-family: var(--mono); color: var(--cyan); font-size:13px; margin-bottom:10px; display:block; }
.step h4{ font-size: 16.5px; }
.step p{ font-size: 14px; }

/* testimonials */
.quote-card{ background: var(--panel); border:1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote-card p{ font-size: 15px; color: var(--mist); }
.quote-who{ font-family: var(--mono); font-size: 13px; color: var(--cyan); margin-top:14px; }
.quote-who span{ display:block; color: var(--slate); font-size:12px; }

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--panel), #0f1c44);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 46px;
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
}
.cta-band h2{ font-size: 26px; margin-bottom: 6px; }
.cta-band p{ margin:0; }
.cta-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* breadcrumb */
.breadcrumb{ font-family: var(--mono); font-size: 12.5px; color: var(--slate); padding: 18px 0 0; }
.breadcrumb a:hover{ color: var(--cyan); }
.breadcrumb .sep{ margin:0 8px; }

/* page hero (inner pages) */
.page-hero{ padding: 54px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow{ margin-bottom: 12px; }
.page-hero h1{ font-size: clamp(28px, 3.6vw, 42px); max-width: 22ch; }
.page-hero .lead{ max-width: 60ch; }

/* content page layout */
.content-grid{ display:grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items:start; }
@media (max-width: 900px){ .content-grid{ grid-template-columns: 1fr; } }
.prose h2{ font-size: 24px; margin-top: 40px; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-size: 18px; }
.prose ul{ margin: 0 0 20px; padding-left: 0; }
.prose ul li{ position:relative; padding-left: 26px; margin-bottom: 10px; color: var(--mist-dim); font-size:15px; }
.prose ul li::before{ content:"›"; position:absolute; left:0; color: var(--cyan); font-family: var(--mono); }

.side-box{
  background: var(--panel); border:1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 96px;
}
.side-box h4{ font-size: 15px; }
.side-box .side-tel{ font-family: var(--mono); font-size: 20px; color: var(--cyan); display:block; margin: 10px 0 16px; }
.side-list{ margin-bottom: 20px; }
.side-list li{ font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--mist-dim); }
.side-list li a:hover{ color: var(--cyan); }

/* spec table */
.spec-table{ width:100%; border-collapse: collapse; font-size: 14px; margin: 20px 0 30px; }
.spec-table th, .spec-table td{ text-align:left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.spec-table th{ font-family: var(--mono); color: var(--cyan); font-weight:500; font-size:12.5px; letter-spacing:.04em; }
.spec-table td{ color: var(--mist-dim); }

/* faq */
.faq-item{ border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item h3{ font-size: 16px; margin-bottom: 8px; }
.faq-item p{ font-size: 14.5px; margin:0; }

/* footer */
footer.site{ background:#060a1a; border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing:.04em; margin-bottom: 16px; }
.footer-grid p{ font-size: 14px; }
.footer-links li{ margin-bottom: 10px; font-size: 14px; }
.footer-links a:hover{ color: var(--cyan); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size: 13px; color: var(--slate);
}

/* whatsapp floating button */
.wp-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height:58px; border-radius: 50%;
  background: #22c55e; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 30px -6px #22c55e88;
  animation: float-pulse 2.4s ease-in-out infinite;
}
.wp-float:hover{ transform: scale(1.06); }
@keyframes float-pulse{
  0%,100%{ box-shadow: 0 10px 30px -6px #22c55e88; }
  50%{ box-shadow: 0 10px 40px -4px #22c55eaa; }
}

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