/* =========================================================
   Alpine Security Davos – Stylesheet
   ========================================================= */

:root {
  /* Palette */
  --bg:        #0a0e17;
  --bg-2:      #0e1422;
  --surface:   #131a2b;
  --surface-2: #182238;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  --text:      #eaf0fb;
  --muted:     #9aa6bd;
  --muted-2:   #6f7c93;

  /* Accents: ice-blue + alpenglow */
  --accent:    #3d8bff;
  --accent-2:  #5fb8ff;
  --glow:      #f6a35a;

  --radius:    16px;
  --radius-sm: 11px;
  --container: 1200px;

  --shadow:    0 24px 60px -24px rgba(0,0,0,.7);
  --ease:      cubic-bezier(.2,.7,.2,1);

  --ff-head: "Sora", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.text-accent { color: var(--accent-2); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #2f6bd6);
  color: #fff; box-shadow: 0 10px 24px -10px rgba(61,139,255,.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(61,139,255,.85); }
.btn--ghost {
  background: rgba(255,255,255,.05); color: var(--text);
  border-color: var(--line-2); backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
  margin: 0 0 1rem;
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(61,139,255,.2); }

/* ---------- Topbar ---------- */
.topbar {
  background: #070a11; border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 1rem; }
.topbar__right { display: flex; gap: 1.4rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); transition: color .2s; }
a.topbar__item:hover { color: var(--text); }
.topbar svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgba(0,0,0,.9); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand__logo { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-family: var(--ff-head); font-weight: 500; font-size: .95rem; color: var(--muted);
  position: relative; transition: color .2s; padding: 4px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__cta { color: #fff !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 88vh, 880px); display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 75% 30%, rgba(61,139,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(10,14,23,.55) 0%, rgba(10,14,23,.72) 45%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,14,23,.85) 0%, rgba(10,14,23,.25) 70%);
}
.hero__inner { position: relative; z-index: 1; padding: 7rem 24px; max-width: 860px; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; margin: 1rem 0; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 620px; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__slogan {
  margin-top: 2.4rem; font-family: var(--ff-head); font-style: italic; color: var(--accent-2);
  font-size: 1.05rem; padding-left: 1rem; border-left: 3px solid var(--accent);
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-2); border-block: 1px solid var(--line); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding: 2.6rem 24px;
}
.stat { text-align: center; padding: .5rem 1rem; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 15%; height: 70%; width: 1px; background: var(--line); }
.stat__num { display: block; font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem);
  background: linear-gradient(135deg, var(--accent-2), var(--glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section__head { max-width: 720px; margin: 0 auto 3.2rem; text-align: center; }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(61,139,255,.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, rgba(61,139,255,.28), rgba(61,139,255,.08));
  border: 1px solid var(--line-2); margin-bottom: 1.3rem;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.3rem; margin-bottom: .9rem; }
.card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.card__list li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: .96rem; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(61,139,255,.18);
}
.card--cta {
  background: linear-gradient(135deg, rgba(61,139,255,.16), rgba(246,163,90,.1));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem;
}
.card--cta .card__text { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about { background: var(--bg-2); border-block: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__media { position: relative; }
.about__media::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%;
  background: radial-gradient(80% 100% at 50% 100%, rgba(61,139,255,.22), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.about__team { position: relative; z-index: 1; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
.about__text { color: var(--muted); font-size: 1.05rem; margin: 1.2rem 0 1.6rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/13px no-repeat;
}

/* ---------- Values ---------- */
.values { position: relative; padding: clamp(4rem, 8vw, 6rem) 0; overflow: hidden; }
.values__media { position: absolute; inset: 0; z-index: 0; }
.values__media img { width: 100%; height: 100%; object-fit: cover; }
.values__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,23,.78), rgba(10,14,23,.9)); }
.values__inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value {
  background: rgba(19,26,43,.66); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 1.8rem; border-top: 3px solid var(--accent);
}
.value__title { font-size: 1.2rem; margin-bottom: .6rem; }
.value__text { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,14,23,.55)); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; color: var(--muted); }
.contact__list a:hover { color: var(--accent-2); }
.contact__ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
}
.contact__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.contact__form {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .8rem 1rem; color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61,139,255,.2);
}
.field input:invalid:not(:placeholder-shown) { border-color: #e0556b; }
.form-note { font-size: .9rem; margin: 1rem 0 0; min-height: 1.2em; }
.form-note.is-ok { color: #58d39a; }
.form-note.is-err { color: #ff8095; }

.map { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 360px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) invert(.92) hue-rotate(180deg) contrast(.9); }

/* ---------- Footer ---------- */
.footer { background: #070a11; border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__logo { height: 40px; margin-bottom: 1rem; }
.footer__tag { color: var(--muted); font-family: var(--ff-head); font-style: italic; max-width: 260px; }
.footer__nav { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); margin-bottom: .4rem; }
.footer__nav a { color: var(--muted); transition: color .2s; width: fit-content; }
.footer__nav a:hover { color: var(--accent-2); }
.footer__muted { color: var(--muted-2); font-size: .92rem; }
.social { display: flex; gap: .7rem; }
.social__link { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); transition: transform .25s, background .25s, border-color .25s; }
.social__link:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); }
.social__link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted-2); font-size: .88rem; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: var(--accent-2); }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin: 0 auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .stat:nth-child(2)::after { display: none; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,14,23,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 1rem 24px 1.6rem;
    transform: translateY(-130%); transition: transform .4s var(--ease); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1rem; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .values__inner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .hero__inner { padding: 4.5rem 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
