/* ==========================================================================
   interims.biz — "When IT matters most"
   Dark-premium design system
   Palette derived from the brand mark: deep navy/black, steel-blue wings,
   amber dragon-eye glow.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:          #070a12;
  --bg-2:        #0b1120;
  --surface:     #111a2e;
  --surface-2:   #17213c;
  --surface-3:   #1d2a4a;

  /* Lines & glow */
  --border:      rgba(123, 142, 186, 0.16);
  --border-2:    rgba(123, 142, 186, 0.28);
  --glow-blue:   rgba(86, 112, 184, 0.35);
  --glow-amber:  rgba(224, 169, 85, 0.30);

  /* Text */
  --text:        #eef1f8;
  --text-2:      #c2cbe0;
  --muted:       #8c98b6;

  /* Accents */
  --accent:      #e0a955;   /* amber — the dragon-eye glow */
  --accent-2:    #f0c483;
  --steel:       #6f86c4;   /* steel blue — the wings */
  --steel-2:     #9fb0e0;
  --ok:          #58c596;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Sora", "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -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(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* Ambient background texture: faint steel wash + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(111, 134, 196, 0.18), transparent 60%),
    radial-gradient(900px 600px at 8% 4%, rgba(224, 169, 85, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--muted); }
.section-title { font-size: clamp(28px, 4.2vw, 46px); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: #1a1205;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 30px -8px var(--glow-amber), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px var(--glow-amber); }
.btn--ghost {
  color: var(--text);
  background: rgba(159, 176, 224, 0.06);
  border-color: var(--border-2);
}
.btn--ghost:hover { border-color: var(--steel); background: rgba(111,134,196,.12); }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .04em;
  color: var(--steel-2);
  background: radial-gradient(circle at 50% 40%, #1c273f, #0a101e);
  border: 1px solid var(--border-2);
  box-shadow: 0 0 0 4px rgba(111,134,196,.06), inset 0 0 18px rgba(111,134,196,.15);
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-name span { color: var(--accent); }
.brand-tag { display: block; font-family: var(--font); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 120px); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(7,10,18,.62) 0%, rgba(7,10,18,.86) 55%, var(--bg) 100%),
    url("hero-bg.png");
  background-size: cover; background-position: center 30%;
  opacity: .9;
}
.hero-inner { max-width: 860px; }
.hero h1 {
  font-size: clamp(36px, 6.4vw, 68px);
  line-height: 1.04;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 30%, #c6d0ea 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .sub { font-size: clamp(18px, 2.4vw, 23px); color: var(--text-2); max-width: 60ch; margin-bottom: 18px; }
.hero .position-line {
  display: inline-block; font-size: 15px; color: var(--steel-2);
  border-left: 2px solid var(--accent); padding: 6px 0 6px 16px; margin: 6px 0 34px;
}
.hero .btn-row { margin-top: 8px; }

/* ---------- Value-proof strip ---------- */
.proof { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin-top: 8px; }
.proof-item { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.proof-item .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(88,197,150,.12); color: var(--ok); font-size: 14px; margin-top: 2px;
  border: 1px solid rgba(88,197,150,.3);
}
.proof-item strong { font-weight: 600; color: var(--text); }
.micro-proof {
  margin-top: 30px; font-family: var(--display); font-weight: 600;
  font-size: clamp(18px, 2.6vw, 24px); color: var(--text);
}
.micro-proof em { color: var(--accent); font-style: normal; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.card {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--steel)); opacity: .85;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), 0 0 30px -12px var(--glow-blue); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, var(--surface-3), var(--bg-2));
  border: 1px solid var(--border-2); color: var(--accent); margin-bottom: 22px;
  font-size: 24px; box-shadow: inset 0 0 16px rgba(224,169,85,.12);
}
.card .kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-2); font-weight: 600; margin-bottom: 8px; }
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card .promise { color: var(--text-2); font-size: 15.5px; margin-bottom: 18px; }
.card .label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card ul.ticklist { margin-bottom: 24px; }
.card ul.ticklist li { position: relative; padding: 6px 0 6px 24px; font-size: 15px; color: var(--text-2); }
.card ul.ticklist li::before { content: "›"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.card .card-cta { margin-top: auto; }
.card-link { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; transition: gap .2s; }
.card-link:hover { gap: 12px; }

/* ---------- Differentiation / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
.pillar {
  background: rgba(23, 33, 60, 0.45); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: border-color .25s, background .25s;
}
.pillar:hover { border-color: var(--border-2); background: rgba(23,33,60,.7); }
.pillar .num { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--accent); letter-spacing: .04em; }
.pillar h3 { font-size: 20px; margin: 10px 0 8px; }
.pillar p { color: var(--text-2); margin: 0; font-size: 15.5px; }

/* ---------- Engagement model ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.model {
  text-align: left; background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px;
}
.model .model-no { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-2); color: var(--steel-2); font-family: var(--display); font-weight: 700; margin-bottom: 16px; }
.model h3 { font-size: 19px; margin-bottom: 8px; }
.model p { color: var(--text-2); font-size: 15px; margin: 0; }
.key-statement { margin-top: 34px; text-align: center; font-family: var(--display); font-size: clamp(17px, 2.4vw, 22px); color: var(--text); }
.key-statement em { color: var(--accent); font-style: normal; }

/* ---------- Big CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(48px, 7vw, 80px) clamp(28px, 6vw, 70px); margin: 0 auto;
  background: linear-gradient(135deg, #131d36, #0a1020); border: 1px solid var(--border-2); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(700px 320px at 50% -20%, var(--glow-amber), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 4vw, 42px); max-width: 20ch; margin: 0 auto .6em; }
.cta-band p { color: var(--text-2); max-width: 60ch; margin: 0 auto 30px; }

/* ---------- Service detail extras ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.symptoms { background: rgba(23,33,60,.4); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.symptoms li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.symptoms li:last-child { border-bottom: 0; }
.symptoms li::before { content: "!"; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: rgba(224,169,85,.14); color: var(--accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.keymsg { margin-top: 22px; padding: 18px 22px; border-left: 3px solid var(--accent); background: rgba(224,169,85,.06); border-radius: 0 12px 12px 0; color: var(--text); font-size: 16px; }
.keymsg strong { color: var(--accent); }

.resp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 14px; }
.resp-grid li { padding: 14px 18px; background: rgba(17,26,46,.6); border: 1px solid var(--border); border-radius: 12px; font-size: 15px; color: var(--text-2); }

.outcomes { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 40px; }
.outcome { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: 14px; }
.outcome .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(88,197,150,.12); color: var(--ok); border: 1px solid rgba(88,197,150,.3); font-size: 13px; margin-top: 1px; }
.outcome span { color: var(--text-2); font-size: 15.5px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 46px; }
.price-card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(224,169,85,.25), 0 24px 60px -30px var(--glow-amber); }
.price-card .badge { position: absolute; top: 18px; right: 18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(224,169,85,.35); border-radius: 999px; padding: 4px 10px; }
.price-card h3 { font-size: 20px; margin-bottom: 6px; }
.price-card .scope { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.price-card .amount { font-family: var(--display); font-weight: 800; font-size: 27px; color: var(--text); margin-bottom: 4px; }
.price-card .amount small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-card .per { color: var(--steel-2); font-size: 14px; margin-bottom: 18px; }
.price-card ul li { padding: 7px 0 7px 22px; position: relative; font-size: 14.5px; color: var(--text-2); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.price-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14px; }

/* Page hero (interior pages) */
.page-hero { padding: clamp(70px, 10vw, 120px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 80% -10%, rgba(111,134,196,.16), transparent 60%); }
.page-hero h1 { font-size: clamp(32px, 5.5vw, 58px); max-width: 18ch; }
.page-hero .sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); max-width: 58ch; }
.crumb { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 60px 0 34px; margin-top: 20px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; }
.footer-brand { max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-2); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: rgba(7,10,18,.6);
  border: 1px solid var(--border-2); color: var(--text); font-family: var(--font); font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,169,85,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-info li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info li:last-child { border-bottom: 0; }
.contact-info .k { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-info .v { font-size: 16px; color: var(--text); }
.contact-info .v a { color: var(--accent); }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .models, .pricing { grid-template-columns: 1fr; }
  .pillars, .proof-grid, .resp-grid, .outcomes, .contact-grid, .split { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    position: absolute; top: 76px; left: 0; right: 0; padding: 18px 24px 26px;
    background: rgba(7,10,18,.97); border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: 100%; }
  .footer-cols { gap: 36px; }
}

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