/* =========================================================================
   NZT BusinessLab — landing styles.
   Built on the Danifo design system (tokens imported below). Recipes for
   .hero / .df-cta / .df-service adapted from danifo.ru's site.css; the NZT
   wordmark is a bespoke maker-mark using the Danifo orange spark.
   ========================================================================= */

@import "tokens/tokens.css";

/* -------------------------------------------------------------------------
   0. Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--danifo-font-body);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--surface-default);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

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

/* -------------------------------------------------------------------------
   1. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section { padding-block: clamp(var(--space-7), 9vh, var(--space-8)); }
.section--navy { background: var(--surface-navy); color: var(--text-on-dark); }

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.section-head__sub {
  font-size: var(--ts-lead);
  line-height: var(--lh-lead);
  color: var(--text-secondary);
}
.section--navy .section-head__sub { color: rgba(255, 255, 255, 0.78); }

.t-h2 {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, var(--ts-h2));
  line-height: var(--lh-h2);
  color: inherit;
}

.df-eyebrow {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}
.df-eyebrow--on-dark { color: var(--danifo-orange); }

/* -------------------------------------------------------------------------
   2. NZT BusinessLab wordmark
   ------------------------------------------------------------------------- */
.nzt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1;
}
.nzt__spark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--danifo-orange);
}
.nzt__name { display: inline-flex; align-items: baseline; gap: 0.32em; }
.nzt__n {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.nzt__b {
  font-family: var(--danifo-font-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}
.nzt--on-dark .nzt__n { color: #fff; }
.nzt--on-dark .nzt__b { color: rgba(255, 255, 255, 0.82); }
.nzt--lg .nzt__spark { width: 26px; height: 26px; }
.nzt--lg .nzt__n { font-size: 24px; }
.nzt--lg .nzt__b { font-size: 21px; }

/* -------------------------------------------------------------------------
   3. Buttons (df-cta)
   ------------------------------------------------------------------------- */
.df-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--action-default);
  color: var(--text-on-orange);
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-body);
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}
.df-cta:hover,
.df-cta:focus-visible {
  background: var(--action-hover);
  transform: translateY(-2px);
}
.df-cta--ghost {
  background: transparent;
  color: var(--danifo-navy);
  border-color: var(--danifo-navy);
}
.df-cta--ghost:hover,
.df-cta--ghost:focus-visible {
  background: var(--danifo-navy);
  color: var(--text-on-dark);
}
.df-cta--on-dark { background: var(--danifo-orange); color: var(--text-on-orange); }
.df-cta--on-dark.df-cta--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.5);
}
.df-cta--on-dark.df-cta--ghost:hover,
.df-cta--on-dark.df-cta--ghost:focus-visible {
  background: var(--text-on-dark);
  color: var(--danifo-navy);
  border-color: var(--text-on-dark);
}
.df-cta__icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  transition: transform var(--duration-base) var(--ease-emphasized);
}
.df-cta:hover .df-cta__icon { transform: translateX(4px); }
.df-cta--scroll:hover .df-cta__icon { transform: translateY(3px); }

/* -------------------------------------------------------------------------
   4. Header
   ------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  min-height: 88px;
}

/* -------------------------------------------------------------------------
   5. Hero (screen 1)
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: clamp(120px, 17vh, 180px) 0 clamp(64px, 10vh, 110px);
  background: #0E0B2C;
  overflow: hidden;
}
.hero__mesh {
  position: absolute;
  inset: -15% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(50% 60% at 16% 22%, rgba(244, 121, 41, 0.30), transparent 70%),
    radial-gradient(42% 52% at 84% 26%, rgba(96, 72, 157, 0.32), transparent 75%),
    conic-gradient(from 220deg at 62% 42%, rgba(41, 37, 106, 0.18), rgba(244, 121, 41, 0.06), transparent 62%);
  filter: blur(46px);
  z-index: 0;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  right: -8%;
  bottom: -22%;
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(96, 72, 157, 0.28), transparent 68%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
}
.hero__title {
  margin-top: var(--space-4);
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 16ch;
  overflow-wrap: break-word;
}
.hero__title em { font-style: normal; color: var(--action-default); }
.hero__lead {
  margin-top: var(--space-5);
  font-family: var(--danifo-font-body);
  font-weight: 400;
  font-size: var(--ts-lead);
  line-height: var(--lh-lead);
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}
.hero__actions {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* -------------------------------------------------------------------------
   6. Solution library (screen 2) — service cards
   ------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.df-service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-6);
  background: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.df-service:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 121, 41, 0.35);
  box-shadow: 0 18px 40px -22px rgba(41, 37, 106, 0.35);
}
.df-service__icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--surface-purple-soft);
  transition: transform var(--duration-base) var(--ease-emphasized);
}
.df-service:hover .df-service__icon-wrap { transform: translateY(-3px); }
.df-service__icon {
  width: 34px;
  height: 34px;
  color: var(--danifo-orange);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.df-service__tag {
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-accent);
}
.df-service__title {
  font-family: var(--danifo-font-display);
  font-weight: 900;
  font-size: var(--ts-h3);
  line-height: var(--lh-h3);
  color: var(--text-primary);
}
.df-service__body {
  font-family: var(--danifo-font-body);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  flex: 1;
}
.df-service__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--danifo-navy);
  font-weight: 700;
  transition: color var(--duration-base) var(--ease-standard),
              gap var(--duration-base) var(--ease-emphasized);
}
.df-service:hover .df-service__link {
  color: var(--action-default);
  gap: var(--space-3);
}
.df-service__link svg { width: 1.15em; height: 1.15em; flex: none; }

/* -------------------------------------------------------------------------
   7. Contacts (scroll target of the consultation button)
   ------------------------------------------------------------------------- */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}
.contacts__lead {
  margin-top: var(--space-4);
  font-size: var(--ts-lead);
  line-height: var(--lh-lead);
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
}
.consult-points {
  list-style: none;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.consult-points li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--ts-body);
  line-height: var(--lh-body);
  color: rgba(255, 255, 255, 0.88);
}
.consult-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danifo-orange);
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-item { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.contact-item > div { min-width: 0; }
.contact-item__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--danifo-orange);
}
.contact-item__icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.contact-item__label {
  font-size: var(--ts-small);
  color: rgba(255, 255, 255, 0.55);
}
.contact-item__value {
  display: block;
  font-family: var(--danifo-font-body);
  font-weight: 700;
  font-size: var(--ts-lead);
  line-height: 1.25;
  color: #fff;
  overflow-wrap: anywhere;
  transition: color var(--duration-base) var(--ease-standard);
}
.contact-item__value--muted { color: rgba(255, 255, 255, 0.6); font-weight: 300; }
a.contact-item__value:hover { color: var(--danifo-orange); }
.contact-note {
  margin-top: var(--space-5);
  font-size: var(--ts-small);
  color: rgba(255, 255, 255, 0.5);
}

/* -------------------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: #0E0B2C;
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-6);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.site-footer__copy { font-size: var(--ts-small); }

/* -------------------------------------------------------------------------
   9. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contacts { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero__title { font-size: clamp(26px, 7.4vw, 34px); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .df-cta { width: 100%; }
}
