/* ============================================================
   Hornetdanger Labs — tanıtım sitesi
   Design source: "Hornetdanger Site v2.dc.html" (claude.ai/design)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #0E0F11;   /* page + card background */
  --ink-deep:   #0A0B0C;   /* terminal panel */
  --ink-raise:  #111214;   /* vision / mission panels */
  --ink-hover:  #15161A;   /* division card hover */

  /* Text */
  --paper:      #EFEEE9;
  --paper-dim:  #C9C5BE;
  --wordmark:   #9B978F;
  --muted:      #8F8B84;
  --faint:      #6E6A62;

  /* Brand */
  --amber:      #F5A400;
  --amber-hi:   #FFB933;
  --amber-10:   rgba(245, 164, 0, .10);
  --amber-40:   rgba(245, 164, 0, .40);
  --amber-45:   rgba(245, 164, 0, .45);
  --amber-55:   rgba(245, 164, 0, .55);

  /* Rules */
  --line:       rgba(239, 238, 233, .08);
  --line-2:     rgba(239, 238, 233, .10);
  --line-3:     rgba(239, 238, 233, .14);
  --line-4:     rgba(239, 238, 233, .22);
  --stroke:     rgba(239, 238, 233, .09);

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Motion */
  --ease: cubic-bezier(.2, .6, .2, 1);

  /* Rhythm */
  --gutter:  clamp(20px, 5vw, 56px);
  --section: clamp(64px, 10vw, 128px);
  --shell:   1280px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hi); }

::selection { background: var(--amber); color: var(--ink); }

[hidden] { display: none !important; }

img, svg, canvas { display: block; }

@media (hover: none) {
  a, button { -webkit-tap-highlight-color: rgba(245, 164, 0, .18); }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Keyboard-only shortcut past the fixed nav */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 100;
  transform: translate(-50%, -120%);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  padding: 12px 20px;
  border-radius: 0 0 999px 999px;
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: var(--ink); }

/* ---------- Keyframes ---------- */
@keyframes hdPulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes hdBlink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes hdIn    { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@keyframes hdFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 14px;
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  background: rgba(14, 15, 17, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 10px 8px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.nav__brand:hover { color: var(--paper); }
.nav__brand img { width: 22px; height: 22px; }

.nav__wordmark {
  font-family: var(--display);
  font-size: 13px;
  white-space: nowrap;
}
.nav__wordmark b { font-weight: 700; }
.nav__wordmark i {
  font-style: normal;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--wordmark);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .12em;
}
.nav__link { color: var(--muted); }
.nav__link:hover { color: var(--paper); }

/* Language switch */
.lang {
  display: flex;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  flex: none;
}
.lang__btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 38px;
  box-sizing: border-box;
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
/* Expands the touch target past the visual pill (44px-friendly) */
.lang__btn::before { content: ''; position: absolute; inset: -4px -2px; }
.lang__btn:hover { color: var(--paper); }
.lang__btn[aria-pressed="true"] {
  background: var(--amber);
  color: var(--ink);
  cursor: default;
}
.lang__btn[aria-pressed="true"]:hover { color: var(--ink); }

/* The prototype drops nav links + wordmark on narrow screens */
@media (max-width: 820px) {
  .nav__links,
  .nav__wordmark { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(104px, 15vh, 150px) var(--gutter) clamp(48px, 8vh, 84px);
  display: grid;
  gap: clamp(20px, 3vh, 30px);
}

.hero__mark {
  width: clamp(78px, 10vw, 140px);
  height: auto;
  justify-self: start;
  animation: hdIn .8s var(--ease) both,
             hdFloat 7s ease-in-out 1.2s infinite;
}

.hero__eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--amber);
  animation: hdIn .8s var(--ease) both;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--amber);
  margin-left: 8px;
  vertical-align: -2px;
  animation: hdBlink 1.1s step-end infinite;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 7.2vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  animation: hdIn .8s var(--ease) .12s both;
}
.hero__title em { font-style: normal; color: var(--amber); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  animation: hdIn .8s var(--ease) .24s both;
}

.hero__disciplines {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.5vw, 15px);
  letter-spacing: .16em;
  color: var(--paper-dim);
}
.hero__disciplines span { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  min-height: 44px;
  box-sizing: border-box;
  font-family: var(--mono);
  width: fit-content;
}

.btn--ghost {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--paper);
  border: 1px solid var(--line-4);
  padding: 13px 22px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn--amber {
  font-size: 13px;
  letter-spacing: .1em;
  border: 1px solid var(--amber-45);
  padding: 13px 24px;
  transition: background .25s var(--ease);
}
.btn--amber:hover { background: var(--amber-10); }

.btn--mail {
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--paper);
  border: 1px solid var(--amber-45);
  padding: 13px 24px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn--mail:hover { background: var(--amber-10); color: var(--amber); }

/* ---------- Hazard rule ---------- */
.hazard {
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 16px, transparent 16px 34px);
  opacity: .45;
}

/* ============================================================
   Layout shell + sections
   ============================================================ */
.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  border-top: 1px solid var(--line);
  padding: var(--section) 0;
  scroll-margin-top: 72px;
}
.section--last { padding-bottom: clamp(40px, 6vw, 64px); }

/* Big outlined section numeral */
.section__num {
  position: absolute;
  top: clamp(20px, 4vw, 44px);
  right: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(80px, 12vw, 160px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--stroke);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.section__head { margin: 0 0 clamp(32px, 5vw, 56px); }
.section__head--stack { display: grid; gap: 14px; }
.section__head--tight { margin-bottom: clamp(28px, 4vw, 44px); }

.section__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--amber);
}

.lede {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 30ch;
  text-wrap: balance;
}
.lede em { font-style: normal; color: var(--muted); }

.prose {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 66ch;
  text-wrap: pretty;
}

/* ============================================================
   01 — Divisions
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--ink);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  gap: 16px;
  align-content: start;
  transition: background .35s;
}
.card:hover { background: var(--ink-hover); }

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.card__idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.card__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* ============================================================
   02 — Product
   ============================================================ */
.product {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.product__copy { display: grid; gap: clamp(18px, 2.5vw, 24px); }

.product__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.product__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.025em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--amber-40);
  color: var(--amber);
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: hdPulse 2.2s ease-in-out infinite;
}

.product__text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--paper-dim);
  max-width: 54ch;
  text-wrap: pretty;
}

/* Terminal mock */
.term {
  background: var(--ink-deep);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.term__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-3);
}
.term__dot--live { background: var(--amber-55); }
.term__name {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--faint);
}

.term__body {
  padding: clamp(18px, 2.5vw, 26px);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--paper-dim);
  display: grid;
  gap: 12px;
}
.term__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
}
.term__key { color: var(--amber); white-space: nowrap; }
.term__val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.term__prompt { color: var(--faint); }
.term__prompt .caret {
  width: 7px;
  height: 13px;
  margin-left: 6px;
}

/* ============================================================
   03 — Approach
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}

.pillar {
  background: var(--ink-raise);
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  gap: 14px;
  align-content: start;
}

.pillar__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--amber);
}

.pillar__text {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ============================================================
   04 — Contact + footer
   ============================================================ */
.contact__title {
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}
.contact__title em { font-style: normal; color: var(--muted); }

.footer {
  margin-top: clamp(56px, 9vw, 100px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 28px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.footer__col { display: grid; gap: 4px; align-content: start; }
.footer__col--brand { gap: 10px; }
.footer__col--legal { justify-items: start; }
.footer__col img { width: 22px; height: 22px; opacity: .85; }

.footer__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--faint);
}

.footer__legal {
  color: var(--muted);
  border-bottom: 1px solid rgba(143, 139, 132, .35);
}
.footer__legal:hover { color: var(--paper); }

.footer__copy {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--faint);
}

/* ============================================================
   Scroll reveal — JS adds .is-in once the element enters view.

   The hidden start state is scoped to .reveal-ready, which main.js
   only sets once it has an observer actually watching. Without that
   guard a JS failure would leave every section permanently at
   opacity 0, i.e. a blank page. Reduced motion never opts in.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal-ready [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Reduced motion — kill the decorative loops, keep everything legible
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__mark,
  .hero__eyebrow,
  .hero__title,
  .hero__meta,
  .caret,
  .badge__dot {
    animation: none !important;
  }

  *, *::before, *::after {
    transition-duration: .01ms !important;
  }
}
