/* ============================================================
   AZ Solutions — Design System
   Palette pulled from the logo: deep indigo (Z) + bright blue (A),
   set against near-white paper with a warm amber signal color used
   only for calls to action. Signature motif: an angular "cut corner"
   echoing the Z's diagonal slash, used on cards, dividers and buttons.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color */
  --ink:        #12172B;
  --ink-soft:   #4B5169;
  --paper:      #F7F8FB;
  --paper-dim:  #EEF0F6;
  --blue-deep:  #2A4B9B;
  --blue-bright:#1E7FC2;
  --amber:      #E8A233;
  --amber-dark: #C6821A;
  --line:       #DFE3EC;
  --white:      #FFFFFF;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3rem);
  --step-4:  clamp(2.7rem, 2.1rem + 3vw, 4.2rem);

  /* Layout */
  --maxw: 1180px;
  --radius: 6px;
  --cut: 18px; /* signature corner-cut size */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--blue-deep); }

img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  padding: 14px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-primary { --btn-bg: var(--amber); --btn-fg: var(--ink); }
.btn-primary:hover { --btn-bg: var(--amber-dark); box-shadow: 0 10px 24px -8px rgba(232,162,51,0.55); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border: 1.5px solid var(--line); clip-path: none; }
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue-deep); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,248,251,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.25s var(--ease); }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.25s var(--ease); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 90px;
}
.hero .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-beam {
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(115deg, transparent 42%, rgba(30,127,194,0.10) 46%, rgba(30,127,194,0.10) 52%, transparent 56%),
    linear-gradient(115deg, transparent 60%, rgba(232,162,51,0.10) 64%, rgba(232,162,51,0.10) 68%, transparent 72%);
  animation: beam-drift 12s ease-in-out infinite alternate;
}
@keyframes beam-drift {
  from { transform: translate(-2%, -1%) rotate(0deg); }
  to { transform: translate(2%, 2%) rotate(2deg); }
}
.hero-visual img { width: 68%; position: relative; z-index: 1; filter: drop-shadow(0 24px 40px rgba(42,75,155,0.18)); }

@media (max-width: 880px) {
  .hero .inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 220px; margin: 0 auto; }
}

/* ---------- Section rhythm ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider-diagonal {
  position: relative;
  height: 64px;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ---------- Cards (signature cut-corner) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(18,23,43,0.18); border-color: var(--blue-bright); }
.card .icon-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-dim);
  color: var(--blue-deep);
  margin-bottom: 18px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%);
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--ink); color: var(--white); padding: 48px 0; }
.stats-strip .grid { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; color: var(--amber); }
.stat-label { color: #B9BFD6; font-size: 0.9rem; margin-top: 4px; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--blue-deep); position: relative; box-shadow: 0 24px 48px -24px rgba(42,75,155,0.35); }
.price-tag { display: inline-block; background: var(--amber); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; padding: 4px 12px; position: absolute; top: -14px; left: 32px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%); }
.price-amount { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; margin: 12px 0 4px; }
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.price-features { list-style: none; margin: 20px 0; padding: 0; flex: 1; }
.price-features li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 10px; }
.price-features li::before { content: '›'; color: var(--blue-bright); font-weight: 700; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(30,127,194,0.15);
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: -8px; }
.form-status { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-top: 16px; display: none; }
.form-status.ok { display: block; background: #E7F4E9; color: #276B37; border: 1px solid #BFE2C4; }
.form-status.err { display: block; background: #FBE9E7; color: #A23B2C; border: 1px solid #F2C4BC; }
.honey { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9BFD6; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; }
.footer-brand img { height: 30px; }
.site-footer h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #B9BFD6; font-size: 0.92rem; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper-dim); color: var(--blue-deep);
  font-size: 0.78rem; font-weight: 600; padding: 5px 12px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}
.skeleton { background: linear-gradient(90deg, var(--paper-dim) 25%, #E3E7F0 37%, var(--paper-dim) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 12px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--blue-deep); }
