/* ===== Akmal Khaidarov — design tokens =====================================
   Cinematic premium aesthetic. Dark graphite ground, warm off-white,
   electric-blue accent. One typeface (Onest) carries the whole system —
   weight + scale do the heavy lifting.
============================================================================ */

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

:root {
  /* Surfaces */
  --bg:        #0c0e12;
  --bg-2:      #14181f;
  --card:      #181d25;
  --line:      rgba(244,241,236,0.08);
  --line-2:    rgba(244,241,236,0.16);

  /* Ink */
  --fg:        #f4f1ec;
  --fg-2:      #c7c9cc;
  --muted:     #7f8693;
  --dim:       #4b5160;

  /* Accent */
  --accent:    #5b8bff;
  --accent-2:  #8aa9ff;

  /* Light section (intermission) */
  --paper:     #ecebe6;
  --paper-ink: #14181f;

  /* Geometry */
  --r-pill:    999px;
  --r-card:    18px;
  --r-tile:    10px;

  /* Type */
  --sans:      'Onest', 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ===== Reset-ish ========================================================= */
.akmal *,
.akmal *::before,
.akmal *::after { box-sizing: border-box; }

.akmal {
  font-family: var(--sans);
  color: var(--fg);
  background: transparent;
  font-feature-settings: 'ss01','ss02','cv01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.akmal h1, .akmal h2, .akmal h3, .akmal h4, .akmal p {
  margin: 0;
}

.akmal img, .akmal svg { display: block; max-width: 100%; }

.akmal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ===== Display type ====================================================== */
.akmal .display {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.86;
}
.akmal .display-tight {
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.82;
}

/* ===== Eyebrow tags ====================================================== */
.akmal .eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9aa0ad;
}

/* ===== Pill (button + chip) ============================================== */
.akmal .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px 0 8px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .2s ease, background .2s ease;
}
.akmal .pill:hover { transform: translateY(-1px); }
.akmal .pill .pill-dot {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2c5aff);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0;
}
.akmal .pill .pill-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 12px;
}
.akmal .pill.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-2);
}
.akmal .pill.ghost .pill-arrow { background: var(--fg); color: var(--bg); }

/* ===== Image-slot placeholder ============================================ */
.akmal .slot {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.025) 0 14px,
      rgba(255,255,255,0.06) 14px 28px
    ),
    #1d232c;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start;
  color: var(--muted);
}
.akmal .slot .slot-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  text-transform: lowercase;
}
.akmal .slot.warm {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(0,0,0,0.025) 0 14px,
      rgba(0,0,0,0.06) 14px 28px
    ),
    #d8c8b3;
  color: #6b5a44;
}

/* ===== Marquee =========================================================== */
.akmal .marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.akmal .marquee-track {
  display: flex;
  gap: 48px;
  flex-shrink: 0;
  animation: akmal-marq 40s linear infinite;
  padding-right: 48px;
}
@keyframes akmal-marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.akmal .marquee:hover .marquee-track { animation-play-state: paused; }

/* Seamless logo loop: two identical halves, translate exactly -50% */
@keyframes akmal-marq-half {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Hairline divider ================================================== */
.akmal .hairline {
  border: 0;
  height: 1px;
  background: var(--line);
}

/* ===== Reveal on scroll ================================================== */
.akmal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.akmal .reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== Cursor disable native on canvases ================================= */
.akmal[data-cursor="on"] { cursor: none; }
.akmal[data-cursor="on"] a, .akmal[data-cursor="on"] button { cursor: none; }

/* ===== Selection ========================================================= */
.akmal ::selection { background: var(--accent); color: var(--fg); }

/* ===== Gradient heading (white → electric blue, top-to-bottom) ========== */
.akmal .grad-text {
  background: linear-gradient(177deg, var(--fg) 0%, var(--fg) 46%, #9fbcff 78%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.akmal .grad-text * {
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Mobile adaptation ================================================= */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  /* Long single words (e.g. "результативный") must never spill past the screen */
  .akmal h1, .akmal h2, .akmal .display { overflow-wrap: break-word; max-width: 100%; }
  /* Hide the scrollbar gutter on mobile (mobile browsers overlay it anyway;
     this also removes the grey bar seen in the embedded phone preview) */
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar { width: 0; height: 0; display: none; }

  /* Footer collapses to a single column */
  .ak-footer { padding: 48px 20px 32px !important; }
  .ak-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    margin-bottom: 48px !important;
  }
  .ak-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* Dock sits at the bottom like a real IG tab bar; slightly tighter */
  .ig-dock { gap: 4px !important; padding: 8px !important; border-radius: 22px !important; }
  .ig-dock-btn { width: 56px !important; height: 56px !important; border-radius: 16px !important; }
  .ig-dock-btn svg { width: 24px !important; height: 24px !important; }
  /* tooltips would collide with screen edges on mobile — hide */
  .ig-dock-tip { display: none !important; }

  /* Tighter pills */
  .akmal .pill { height: 48px; font-size: 14px; padding: 0 20px 0 6px; }
  .akmal .pill .pill-dot { width: 36px; height: 36px; }

  .akmal .eyebrow { font-size: 12px; letter-spacing: 0.12em; }
}
