/* ---------- Tokens ---------- */
:root {
  --color-primary: #0090ce;
  --color-primary-dark: #045e88;
  --color-accent: #38bdf8;
  --color-ink: #0f172a;

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #334155;
  --text-strong: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.06);

  --header-h: 72px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 40px; width: auto; }

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: .3rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-strong);
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-strong);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-ink) 100%);
  color: #fff;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
}
.hero__blob--1 {
  width: 420px; height: 420px;
  background: var(--color-accent);
  top: -120px; right: -80px;
}
.hero__blob--2 {
  width: 380px; height: 380px;
  background: #ffffff;
  bottom: -160px; left: -100px;
  opacity: .12;
}
.hero__content { position: relative; max-width: 720px; }
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
}
.hero p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #e2e8f0;
  margin: 0 auto;
  max-width: 640px;
}
.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(0,0,0,.35); }
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  animation: bounce 2.2s infinite;
}
.scroll-cue svg { width: 26px; height: 26px; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Layout ---------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.intro { text-align: center; margin-bottom: 4.5rem; }
.intro h2 { font-size: 2rem; color: var(--text-strong); margin-bottom: 1rem; }
.intro p { font-size: 1.1rem; color: var(--text-muted); }

.section-title {
  font-size: 1.8rem;
  color: var(--text-strong);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  border-left: 3px solid var(--color-primary);
  margin-left: 1rem;
  padding-left: 2rem;
}
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.56rem;
  top: .3rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--color-primary);
  border: 3px solid var(--bg);
  border-radius: 50%;
}
.timeline-year {
  display: inline-block;
  font-weight: 700;
  color: var(--color-primary-dark);
  background-color: color-mix(in srgb, var(--color-primary) 15%, transparent);
  padding: .2rem .6rem;
  border-radius: 4px;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.timeline-item h3 { font-size: 1.3rem; color: var(--text-strong); margin: 0 0 .5rem; }
.timeline-item p { color: var(--text-muted); margin: 0; }

/* Brand history block */
.logo-story {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.logo-story__frame {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  padding: .75rem;
  width: 128px;
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-story__frame:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-story__frame img { width: 100%; height: auto; }
.logo-story__frame--final { background: #fff; }
.logo-story__arrow { width: 22px; height: 22px; color: var(--text-muted); flex-shrink: 0; }

/* ---------- Values ---------- */
.values-section { margin-top: 5.5rem; text-align: center; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  background-color: var(--surface);
  padding: 2.2rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(15,23,42,.15); }
.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-primary);
  margin-bottom: 1.1rem;
}
.value-card__icon svg { width: 26px; height: 26px; }
.value-card h4 { font-size: 1.1rem; color: var(--text-strong); margin: 0 0 .5rem; }
.value-card p { font-size: .95rem; color: var(--text-muted); margin: 0; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background-color: var(--color-ink);
  color: #94a3b8;
  font-size: .9rem;
  margin-top: 2rem;
}
.footer__inner { max-width: 500px; margin: 0 auto; }
.footer__name { color: #e2e8f0; font-weight: 700; margin: 0 0 1.25rem; }
.footer__contacts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: center;
}
.footer__contacts li { display: flex; align-items: center; gap: .5rem; }
.footer__contacts svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-accent); }
.footer__contacts a { color: var(--color-accent); text-decoration: none; }
.footer__contacts a:hover { text-decoration: underline; }
.footer__copy { margin: 0; opacity: .8; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 200;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(90vw, 480px); text-align: center; }
.lightbox img { width: 100%; height: auto; border-radius: 10px; background: #fff; padding: 1rem; }
.lightbox figcaption { color: #e2e8f0; margin-top: 1rem; font-size: .95rem; }
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a { padding: .9rem 1.5rem; }
  .site-nav a::after { display: none; }

  .logo-story__arrow { transform: rotate(90deg); }
}
