/* Ervi Tech Solutions, V1. Typefaces, colours, chip and button shape taken from site/V7 (his ERVI TECH page). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* colours (site/V7) */
  --bg: #0a0a0a;
  --surface: #111111;
  --text: #f0f0f0;
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --chip: rgba(255, 255, 255, 0.08);
  --veil: rgba(10, 10, 10, 0.72);
  /* the one accent, one job: it marks the private service notice */
  --accent: #0099ff;
  /* the one card shadow */
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  /* 8px spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;
  --max: 1120px;
  --gutter: 24px;
  --sans: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  color-scheme: dark;
}

@font-face { font-family: "Inter Placeholder"; src: local("Arial"); ascent-override: 89.79%; descent-override: 22.36%; line-gap-override: 0%; size-adjust: 107.89%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: var(--s2); top: -64px; z-index: 100; background: var(--text); color: var(--bg); padding: 12px var(--s2); border-radius: 4px; font-weight: 500; text-decoration: none; }
.skip:focus { top: var(--s1); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--veil); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--s3); }
.wordmark { display: inline-flex; align-items: baseline; gap: 0.26em; min-height: 44px; padding-top: 10px; padding-bottom: 10px; text-decoration: none; font-size: 19px; font-weight: 500; letter-spacing: -0.04em; white-space: nowrap; }
.wordmark .wm-serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: var(--s1); margin: 0 -12px 0 0; padding: 0; list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-2); text-decoration: none; border-radius: 4px; transition: color 0.15s ease; }
.nav a:hover { color: var(--text); }
@media (max-width: 719px) { .nav .nav-wide { display: none; } .nav a { padding: 0 var(--s1); } }

/* hero */
.hero { position: relative; overflow: hidden; padding: var(--s16) 0 var(--s12); text-align: center; background: radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 70%); }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 50px; background: var(--chip); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; color: var(--text); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); opacity: 0.8; }
.hero h1 { margin-top: var(--s3); font-size: clamp(34px, 8.4vw, 76px); line-height: 1.1; letter-spacing: -0.05em; }
.hero h1 .line { display: block; white-space: nowrap; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: 0; line-height: 1; }
.lede { margin-top: var(--s3); max-width: 600px; font-size: 18px; line-height: 1.6; letter-spacing: -0.02em; color: var(--text-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s5); }
.route { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 200px; z-index: 0; pointer-events: none; }
@media (max-width: 599px) { .hero { padding: var(--s12) 0 var(--s10); } .lede { font-size: 17px; } .route { height: 120px; } }

/* buttons (V7: light fill, dark text, small radius) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s3); border-radius: 4px; font-size: 15px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #ffffff; }
.btn-ghost { background: rgba(10, 10, 10, 0.56); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* private service notice */
.notice-band { padding: 0 0 var(--s12); }
.notice { position: relative; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); padding: var(--s4); }
.notice h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent); }
.notice p { margin-top: var(--s2); font-size: 18px; font-weight: 400; line-height: 1.6; letter-spacing: -0.01em; color: var(--text); max-width: 900px; }
@media (max-width: 599px) { .notice { padding: var(--s3); } }

/* sections */
.section { padding: var(--s12) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-3); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); }
.section h2 { margin-top: var(--s2); font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.045em; }
.section-head { max-width: 640px; margin-bottom: var(--s6); }
.section-head p { margin-top: var(--s2); color: var(--text-2); font-size: 17px; }

/* cards */
.cards { display: grid; gap: var(--s3); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: var(--s4); display: grid; gap: var(--s2); align-content: start; }
.card .num { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--text-3); }
.card h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.03em; }
.card p { color: var(--text-2); }
@media (min-width: 600px) and (max-width: 899px) { .card { grid-template-columns: 72px 1fr; column-gap: var(--s3); } .card .num { grid-row: span 2; } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } .card { min-height: 280px; } .card .num { margin-bottom: var(--s4); } }

/* steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 0 0 var(--s4) 72px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step .num { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1; }
.step p { padding-top: 10px; font-size: 17px; line-height: 1.55; color: var(--text); max-width: 32ch; }
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: var(--s4); row-gap: var(--s6); }
  .step { padding: 0; }
  .step::before { left: 64px; right: 0; top: 24px; bottom: auto; width: auto; height: 1px; display: block; }
  .step:last-child::before { display: block; }
  .step .num { position: relative; }
  .step p { padding-top: var(--s3); }
}
@media (min-width: 600px) and (max-width: 899px) { .step:nth-child(2n)::before { display: none; } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .step:last-child::before { display: none; } }

/* fees */
.fees-grid { display: grid; gap: var(--s6); }
.fees-grid .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .fees-grid { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; } .fees-grid .section-head { margin-bottom: 0; } }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { caption-side: top; text-align: left; padding: var(--s3) var(--s4) var(--s2); font-size: 14px; font-weight: 500; color: var(--text-2); letter-spacing: -0.01em; }
th, td { padding: var(--s2) var(--s4); text-align: left; border-top: 1px solid var(--line); font-size: 16px; }
thead th { font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0.02em; text-transform: uppercase; padding-top: 12px; padding-bottom: 12px; }
th:last-child, td:last-child { text-align: right; }
tbody th { font-weight: 400; color: var(--text); }
tbody td { font-weight: 500; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.table-note { margin-top: var(--s2); color: var(--text-2); font-size: 15px; }
@media (max-width: 599px) { caption, th, td { padding-left: var(--s3); padding-right: var(--s3); } }

/* contact */
.contact-grid { display: grid; gap: var(--s6); }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; } }
.contact-grid .about p { margin-top: var(--s3); font-size: 17px; color: var(--text-2); max-width: 46ch; }
.details { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: var(--s1) var(--s4); }
.details div { display: grid; grid-template-columns: 96px 1fr; gap: var(--s2); padding: 20px 0; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; }
.details dt { color: var(--text-3); font-size: 14px; font-weight: 500; padding-top: 2px; }
.details dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.details a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.details a:hover { text-decoration-color: var(--text); }
@media (max-width: 599px) { .details { padding: var(--s1) var(--s3); } .details div { grid-template-columns: 1fr; gap: 4px; } }

/* footer */
.footer { border-top: 1px solid var(--line); padding: var(--s8) 0 var(--s6); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); font-size: 14px; color: var(--text-3); }
.footer-meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.footer-meta a:hover { color: var(--text); }
.footer-notice { margin-top: var(--s4); font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 900px; }

/* privacy page */
.page { padding: var(--s12) 0 var(--s16); }
.page .wrap { max-width: calc(680px + 2 * var(--gutter)); }
.page h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.05em; }
.page p { margin-top: var(--s3); font-size: 17px; line-height: 1.7; color: var(--text-2); }
.page h1 + p { margin-top: var(--s5); }
.page a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; color: var(--text); }

/* V3: the dotted route sits wholly below the hero buttons */
.hero { padding-bottom: 184px; }
@media (max-width: 719px) { .nav { margin-right: calc(-1 * var(--s1)); } }
@media (max-width: 599px) { .hero { padding-bottom: 152px; } }
