/* ================= Tokens ================= */
:root{
  --bg: #0A0F1C;
  --bg-2: #0D1526;
  --panel: #11192C;
  --line: rgba(237,241,247,0.08);
  --line-strong: rgba(237,241,247,0.16);
  --text: #EDF1F7;
  --text-muted: #8C98B4;
  --text-faint: #57627C;

  --accent: #38D9C9;        /* precision teal — oscillation / laser */
  --accent-soft: rgba(56,217,201,0.16);
  --accent-glow: rgba(56,217,201,0.55);
  --accent-2: #4FC3F7;      /* isti canlılıq üçün ikinci ton — göy-firuzəyi keçid */

  --gold: #E0B559;          /* brass — daha isti, canlı qızılı ton */
  --gold-soft: rgba(224,181,89,0.18);
  --warm-glow: rgba(224,181,89,0.10);

  --az-blue: #00A0DC;
  --az-red: #EF3340;
  --az-green: #4B9F4A;

  --radius: 14px;
  /* Sistem şrift dəstələri istifadə olunur — kənar CDN asılılığı yoxdur (6.21 tələbinə uyğun) */
  /* Sistem şrift dəstələri istifadə olunur — kənar CDN asılılığı yoxdur (6.21 tələbinə uyğun).
     "Lucida Console" və "Consolas" bütün Windows versiyalarında standart mövcuddur və
     sıfırı xətsiz (nöqtəli deyil, kəsilməmiş) göstərir — "monospace" ümumi fallback-ı
     bəzi sistemlərdə (Courier New) kəsilmiş sıfır göstərdiyi üçün ondan əvvəl sadalanıb. */
  --serif-mono: Consolas, "Lucida Console", "SFMono-Regular", Menlo, "Liberation Mono", monospace;
  --sans-display: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 34%, var(--warm-glow) 0%, transparent 70%),
    radial-gradient(ellipse 120% 60% at 50% -10%, #16233E 0%, var(--bg) 55%);
  color: var(--text);
  font-family: var(--sans-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* subtle instrument-grade background grid */
.bg-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(237,241,247,0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(237,241,247,0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 10%, transparent 75%);
}

a{ color: inherit; }

/* ================= Giriş animasiyaları ================= */
@keyframes headerIn{
  from{ opacity: 0; transform: translateY(-14px); }
  to{ opacity: 1; transform: none; }
}
@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: none; }
}
@keyframes fadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes tickFade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes headPulse{
  0%, 100%{ filter: drop-shadow(0 0 6px var(--accent-glow)); }
  50%{ filter: drop-shadow(0 0 13px var(--accent-glow)); }
}
@keyframes haloBreathe{
  0%, 100%{ opacity: 0.7; }
  50%{ opacity: 1; }
}

.site-header{ animation: headerIn 0.7s cubic-bezier(.16,1,.3,1) both; }
.clock{ animation: fadeUp 0.9s cubic-bezier(.16,1,.3,1) 0.18s both; }
#ruler-sweep{ animation: fadeIn 0.7s ease 0.75s both; }
.sweep-head{ animation: headPulse 2.4s ease-in-out infinite; }
.tz-row, .date{ animation: fadeUp 0.8s cubic-bezier(.16,1,.3,1) 0.42s both; }
.hero-caption{ animation: fadeUp 0.8s cubic-bezier(.16,1,.3,1) 0.85s both; }
.ruler-tick{ animation: tickFade 0.4s ease both; }
.ruler-baseline{
  stroke-dasharray: 960;
  stroke-dashoffset: 960;
  animation: rulerDraw 0.9s cubic-bezier(.16,1,.3,1) 0.05s both;
}
@keyframes rulerDraw{ to{ stroke-dashoffset: 0; } }

.hero-glow{
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse 60% 60% at 50% 30%, var(--warm-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: haloBreathe 6s ease-in-out infinite;
}

.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* ================= Kənar dekorasiyası (protraktor motivi) ================= */
.side-deco{
  position: fixed;
  top: 50%;
  width: 480px;
  height: 480px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  display: none; /* yalnız geniş ekranlarda göstərilir, aşağıdakı media query-yə bax */
}
.side-deco--left{ left: -160px; }
.side-deco--right{ right: -160px; }
.side-deco svg{
  width: 100%;
  height: 100%;
}

.deco-circle{ fill: none; stroke: var(--text-faint); stroke-width: 1; }
.deco-circle--faint{ opacity: 0.5; }
.deco-radial{ stroke: var(--text-faint); stroke-width: 0.75; opacity: 0.6; }
.deco-tick{ stroke: var(--text-faint); stroke-width: 1; }
.deco-tick--major{ stroke: var(--gold); stroke-width: 1.5; }
.deco-label{
  fill: var(--gold);
  font-family: var(--serif-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

/* Əsl saat əqrəbləri kimi hərəkət edən iki xətt — dairəni açıq şəkildə "saat"a çevirir */
.deco-hand{
  stroke: var(--accent);
  stroke-linecap: round;
  transform-origin: 220px 220px;
}
.deco-hand--min{
  stroke-width: 1.5;
  opacity: 0.55;
  animation: decoHandSpin 60s linear infinite;
}
.deco-hand--hour{
  stroke-width: 2.5;
  opacity: 0.7;
  animation: decoHandSpin 720s linear infinite;
}
@keyframes decoHandSpin{ to{ transform: rotate(360deg); } }
.deco-hub{ fill: var(--accent); }

@media (min-width: 1560px){
  .side-deco{ display: block; }
}
@media (prefers-reduced-motion: reduce){
  .deco-hand{ animation: none; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ================= Header ================= */
.site-header{
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13,21,38,0.9), rgba(13,21,38,0.55));
  backdrop-filter: blur(6px);
}
.site-header::before{
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--az-blue), var(--az-red), var(--az-green));
  opacity: 0.9;
}
.header-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-main{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-left{
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo{ height: 45px; width: auto; display: block; }
.logo120{ height: 51px; }

.header-utility{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-family: var(--serif-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.lang-switch{
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.lang-switch a{
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.lang-switch a:hover{ color: var(--text-muted); }
.lang-switch a.lang-current{ color: var(--accent); font-weight: 600; }
.dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-faint);
  box-shadow: 0 0 0 0 transparent;
}
.dot--ok{
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
.dot--idle{ background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
@keyframes pulse{
  0%, 100% { box-shadow: 0 0 0 2px var(--accent-soft); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

@media (max-width: 560px){
  .logo120{ height: 39px; }
  .logo{ height: 33px; }
  .header-utility{ font-size: 10.5px; flex-wrap: wrap; }
}

/* ================= Hero ================= */
main{ position: relative; z-index: 1; }

.hero{
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow{
  font-family: var(--sans-display);
  font-weight: 600;
  font-size: clamp(19px, 3.6vw, 27px);
  letter-spacing: 0.03em;
  margin: 0 0 12px;
  text-transform: uppercase;

  background: linear-gradient(
    90deg,
    var(--az-blue), var(--az-red), var(--az-green),
    var(--az-blue), var(--az-red), var(--az-green)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation:
    fadeUp 0.8s cubic-bezier(.16,1,.3,1) 0.1s both,
    flagShift 7s linear infinite;
}
@keyframes flagShift{
  from{ background-position: 0% 50%; }
  to{ background-position: -300% 50%; }
}

.clock-hero{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.clock{
  font-family: var(--serif-mono);
  font-weight: 700;
  font-size: clamp(30px, 8.4vw, 104px);
  letter-spacing: 0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 0;
  display: flex;
  align-items: baseline;
  gap: 1px;
  white-space: nowrap;
  line-height: 1;
}
.clock .colon{
  color: var(--text);
  padding: 0 1px;
  display: inline-block;
}
.clock .colon--ms{ opacity: 0.6; }

#ss{ display: inline-block; transform-origin: center; }
#ss.pulse{ animation: secondPulse 0.32s ease; }
@keyframes secondPulse{
  0%{ transform: scale(1); }
  35%{ transform: scale(1.1); }
  100%{ transform: scale(1); }
}

.tz-row{
  display: flex;
  align-items: center;
  gap: 8px;
}
.tz-badge{
  font-family: var(--serif-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.tz-city{
  font-family: var(--sans-display);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.date{
  font-family: var(--sans-body);
  font-size: 13px;
  color: var(--text-faint);
  text-transform: capitalize;
}

/* ---- Dəqiqlik xətkeşi (üfüqi saniyə göstəricisi) ---- */
.ruler{
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  overflow: visible;
}
.ruler-baseline{
  stroke: var(--line-strong);
  stroke-width: 1.5;
}
.ruler-tick{ stroke: var(--text-faint); }
.ruler-tick--major{ stroke: var(--gold); opacity: 0.9; }

#ruler-sweep{
  filter: drop-shadow(0 0 5px var(--accent-glow));
}
.sweep-seg{
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}
.sweep-head{
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.hero-caption{
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ================= Specs strip ================= */
.specs{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.specs-inner{
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.spec{ display: flex; flex-direction: column; gap: 6px; }
.spec.reveal:nth-child(1){ transition-delay: 0s; }
.spec.reveal:nth-child(2){ transition-delay: 0.08s; }
.spec.reveal:nth-child(3){ transition-delay: 0.16s; }
.spec.reveal:nth-child(4){ transition-delay: 0.24s; }
.spec-value{
  font-family: var(--sans-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
}
.spec-label{
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

@media (max-width: 640px){
  .specs-inner{ grid-template-columns: repeat(2, 1fr); }
}

/* ================= About ================= */
.about{ padding: 56px 24px 72px; }
.about-inner{ max-width: 640px; margin: 0 auto; text-align: center; }
.about h2{
  font-family: var(--sans-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--text);
}
.about p{
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

/* ================= Contact ================= */
.contact{
  padding: 8px 24px 64px;
  border-top: 1px solid var(--line);
}
.contact-inner{ max-width: 880px; margin: 0 auto; }
.contact-inner h2{
  font-family: var(--sans-display);
  font-weight: 600;
  font-size: 22px;
  margin: 40px 0 24px;
  color: var(--text);
  text-align: center;
}
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.contact-block h3{
  font-family: var(--sans-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}
.contact-block p{
  margin: 0 0 4px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.contact-block a{ color: var(--text-muted); text-decoration: none; }
.contact-block a:hover{ color: var(--accent); }

.contact-map{
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(0.15) contrast(1.05);
}
.contact-map iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px){
  .contact-grid{ grid-template-columns: 1fr; gap: 18px; }
  .contact-map{ aspect-ratio: 4 / 5; }
}

/* ================= Footer ================= */
.site-footer{
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-inner{
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
}

.footer-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copyright{
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
  order: 1;
}
.footer-social{
  display: flex;
  align-items: center;
  gap: 14px;
  order: 2;
}
.social-link{
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  transition: color 0.15s ease, background 0.15s ease;
}
.social-link svg{ width: 15px; height: 15px; }
.social-link:hover{ color: var(--accent); background: var(--accent-soft); }

.footer-entity{
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
  order: 3;
}

@media (max-width: 720px){
  .footer-bar{ flex-direction: column; align-items: flex-start; }
  .footer-copyright, .footer-social, .footer-entity{ order: initial; }
}
