/* ===========================================================
   Integrated Management OÜ — site styles
   Self-contained, no external dependencies.
   =========================================================== */

:root {
  --bg: #0a0f1f;
  --bg-2: #0d1426;
  --surface: #121a2f;
  --surface-2: #16203a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e7eaf3;
  --muted: #9aa6c2;
  --muted-2: #6f7c9c;
  --brand: #6366f1;
  --brand-2: #22d3ee;
  --grad: linear-gradient(110deg, #818cf8 0%, #22d3ee 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #08111f;
  box-shadow: 0 12px 30px -12px rgba(99, 102, 241, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(34, 211, 238, 0.65); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand-2); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 31, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--grad);
  color: #08111f;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  flex: none;
}
.brand-text { font-size: 1.02rem; letter-spacing: 0.2px; line-height: 1.1; }
.brand-suffix {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  vertical-align: middle;
  letter-spacing: 1px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.96rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: #08111f; }
.nav-links .nav-cta:hover { color: #08111f; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px 0 76px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background:
    radial-gradient(closest-side, rgba(99, 102, 241, 0.28), transparent 70%),
    radial-gradient(closest-side, rgba(34, 211, 238, 0.18), transparent 70%);
  background-position: 35% 30%, 75% 60%;
  background-repeat: no-repeat;
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.hero-tags li {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Stats ---------- */
.stats { padding: 8px 0 22px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 800;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-sub { color: var(--muted); margin: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.two-col p { color: var(--muted); }
.two-col h2 { color: var(--text); }

.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.panel h3 { margin: 0 0 18px; font-size: 1.15rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); font-size: 0.97rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: inset 0 0 0 4px var(--bg-2);
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--line-strong);
  margin-bottom: 20px;
  color: var(--brand-2);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 0.97rem; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-list li { position: relative; padding-left: 18px; font-size: 0.9rem; color: var(--muted-2); }
.mini-list li::before { content: "›"; position: absolute; left: 0; color: var(--brand-2); font-weight: 700; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.step-no {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.steps h3 { margin: 0 0 8px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-2);
  transition: transform 0.3s var(--ease);
  flex: none;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--brand-2);
  font-size: 1.1rem;
}
.contact-list strong { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--brand-2); }

.form { display: grid; gap: 16px; }
.form h3 { margin: 0; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.form .btn { width: 100%; }
.form-note { margin: 0; font-size: 0.85rem; color: var(--muted-2); text-align: center; }
.form-note a { color: var(--brand-2); }
/* Honeypot — hidden from humans, catches bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 0.9rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #34d399; }
.form-status.err { color: #f87171; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--muted); margin: 18px 0 0; max-width: 320px; font-size: 0.95rem; }
.footer-nav h4, .footer-legal h4 {
  margin: 6px 0 16px;
  font-size: 0.8rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a { color: var(--muted); font-size: 0.95rem; width: max-content; }
.footer-nav a:hover { color: var(--text); }
.footer-legal p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 24px; }
.footer-bottom p { margin: 0; color: var(--muted-2); font-size: 0.88rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 15, 31, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 22px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .nav-cta { margin-top: 14px; border-bottom: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-text { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
