/* =========================================================================
   izycom.eu — design tokens & base
   Palette derived from the brand mark (#2469C2).
   ========================================================================= */

:root {
  --blue: #2469c2;
  --blue-dark: #184f94;
  --blue-darker: #0f3768;
  --navy: #0b1930;
  --navy-2: #12233f;
  --cyan: #33b4e8;

  --bg: #ffffff;
  --bg-alt: #f4f8fd;
  --border: #e3ebf5;

  --text: #101b2d;
  --text-muted: #55647d;
  --text-faint: #8494aa;
  --on-dark: #eaf1fb;
  --on-dark-muted: #9db1cf;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 45px -22px rgba(15, 55, 104, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(15, 55, 104, 0.25);

  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(36, 105, 194, 0.65);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 14px 28px -10px rgba(36, 105, 194, 0.75);
}

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(234, 241, 251, 0.35);
}

.btn-ghost:hover {
  background: rgba(234, 241, 251, 0.1);
  border-color: rgba(234, 241, 251, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  background: var(--bg-alt);
}

.btn-block {
  width: 100%;
}

/* ---------- hex icon frame ---------- */

.hex {
  --size: 60px;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.hex svg.hex-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hex .icon {
  position: relative;
  width: calc(var(--size) * 0.46);
  height: calc(var(--size) * 0.46);
  color: var(--blue);
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle span::after {
  position: absolute;
  top: 7px;
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 15% -10%, var(--navy-2) 0%, var(--navy) 55%),
    var(--navy);
  color: var(--on-dark);
  padding: clamp(90px, 14vw, 150px) 0 clamp(70px, 10vw, 110px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 0 L90 0 L120 52 L90 104 L30 104 L0 52 Z' fill='none' stroke='%232469C2' stroke-opacity='0.16' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 130px 113px;
  opacity: 0.5;
  mask-image: radial-gradient(900px 500px at 75% 15%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(900px 500px at 75% 15%, black 0%, transparent 70%);
}

.hero .container {
  position: relative;
}

.hero-inner {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  color: #fff;
}

.hero h1 .accent {
  color: var(--cyan);
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--on-dark-muted);
  max-width: 560px;
  margin-bottom: 2em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 3em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(234, 241, 251, 0.15);
}

.hero-tags span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}

.hero-tags svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* =========================================================================
   Services
   ========================================================================= */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-top: 18px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.service-card ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.service-card li svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
  margin-top: 2px;
  flex-shrink: 0;
}

/* =========================================================================
   Approach
   ========================================================================= */

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.approach-card {
  padding: 8px 4px;
}

.approach-card .hex {
  --size: 52px;
  margin-bottom: 18px;
}

.approach-card h3 {
  font-size: 1.05rem;
}

.approach-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* =========================================================================
   Process
   ========================================================================= */

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 10%, var(--border) 90%, transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 10px;
}

.process-step .num {
  counter-increment: step;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--blue);
}

.process-step .num::before {
  content: counter(step, decimal-leading-zero);
}

.process-step h3 {
  font-size: 1.02rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================================================
   About
   ========================================================================= */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.about-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 0 L90 0 L120 52 L90 104 L30 104 L0 52 Z' fill='none' stroke='%2333B4E8' stroke-opacity='0.12' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 90px 78px;
}

.about-panel-inner {
  position: relative;
}

.about-panel h3 {
  font-size: 1.15rem;
  color: #fff;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--on-dark-muted);
}

.about-list svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================================================
   Contact
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.contact-info > p {
  color: var(--text-muted);
  font-size: 1.03rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.contact-method .hex {
  --size: 46px;
}

.contact-note {
  margin-top: 32px;
  padding: 18px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 105, 194, 0.15);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.ok {
  background: #e9f7ef;
  color: #1c6b3f;
}

.form-status.err {
  background: #fdecec;
  color: #a3271f;
}

/* =========================================================================
   CTA band
   ========================================================================= */

.cta-band {
  background: linear-gradient(120deg, var(--blue-darker), var(--blue));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 6px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--navy);
  color: var(--on-dark-muted);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(234, 241, 251, 0.12);
}

.footer-brand img {
  height: 26px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--on-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
}

.footer-bottom .self-hosted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom .self-hosted svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 980px) {
  .cards-3,
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }

  .process::before {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  body.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }

  body.nav-open .nav-toggle span {
    background: transparent;
  }

  body.nav-open .nav-toggle span::before {
    top: 0;
    transform: rotate(45deg);
  }

  body.nav-open .nav-toggle span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 36px 28px;
  }

  .footer-top {
    flex-direction: column;
  }
}
