/* ADGT — adgt.ai */
:root {
  --night: #07201B;
  --forest: #0C2C25;
  --pine: #164B41;          /* official logo green */
  --line-dark: rgba(255, 255, 255, 0.12);
  --mint: #4FD39A;
  --gold: #CDA65C;
  --gold-soft: #E3C88E;
  --sand: #F3F0E8;
  --paper: #FBFAF6;
  --ink: #10231E;
  --ink-muted: #4C5D57;
  --line-light: #DAD5C8;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--on-dark);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--night); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--on-dark-muted); max-width: 40em; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 18px; }
.accent { color: var(--mint); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 600 0.95rem/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-mint:hover { background: #7BE3B5; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,.06); }
.btn-ink { background: var(--pine); color: #fff; }
.btn-ink:hover { background: var(--forest); }
.link { color: var(--gold); text-decoration: none; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.link svg { width: 14px; height: 14px; flex: none; }
.icon, .badge, .fallback-art, .go { display: block; }
.icon svg, .fallback-art svg { width: 100%; height: 100%; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.light .link { color: var(--pine); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 32, 27, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(7, 32, 27, 0.92); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--on-dark-muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 4px; }
.nav .btn { color: var(--night); padding: 11px 18px; }
.nav .btn[aria-current="page"] { box-shadow: none; padding-bottom: 11px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: #fff; border-radius: 10px; padding: 9px 12px; font: 600 0.9rem var(--sans); }
@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 80px; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 24px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gold); padding-bottom: 14px; }
  .nav .btn { margin-top: 18px; justify-content: center; border-bottom: 0; }
  .brand img { height: 42px; }
}

/* Photo slots: an image fades in only if the file exists (see site.js) */
.photo { background-color: var(--forest); background-size: cover; background-position: center; position: relative; }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.hero .photo { position: absolute; inset: 0; }
.hero .photo::after { background: linear-gradient(90deg, var(--night) 0%, rgba(7,32,27,.92) 38%, rgba(7,32,27,.35) 75%, rgba(7,32,27,.15) 100%); }
.hero-motif { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: min(58vw, 720px); opacity: 0.06; pointer-events: none; }
.has-photo .hero-motif { display: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; padding-block: clamp(72px, 11vw, 140px) clamp(64px, 9vw, 120px); }
.hero h1 { margin-bottom: 28px; max-width: 12em; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-tag { align-self: start; border-left: 1px solid var(--gold); padding-left: 16px; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; line-height: 2.1; color: var(--on-dark); font-weight: 600; }
@media (max-width: 760px) { .hero-inner { grid-template-columns: 1fr; } .hero-tag { order: -1; } }

.page-hero { padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-dark); background: radial-gradient(120% 140% at 100% 0%, rgba(22,75,65,.75) 0%, transparent 55%), var(--night); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); max-width: 14em; margin-bottom: 22px; }
.page-hero .hero-motif { width: min(44vw, 520px); right: -4%; opacity: 0.07; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.tight { padding: clamp(56px, 7vw, 88px) 0; }
.section.forest { background: var(--forest); }
.light { background: var(--sand); color: var(--ink); color-scheme: light; }
.light .lead, .light .muted, .paper .lead, .paper .muted { color: var(--ink-muted); }
.paper .eyebrow { color: #9A7433; }
.paper .link { color: var(--pine); }
.light .eyebrow { color: #9A7433; }
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.split .lead { margin: 0 0 14px; font-size: 1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; align-items: start; } }

/* Service strip */
.services-band { background: var(--forest); border-bottom: 1px solid var(--line-dark); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { padding: 44px clamp(20px, 3vw, 40px); border-right: 1px solid var(--line-dark); }
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; padding-right: 0; }
.service .icon { width: 42px; height: 42px; color: var(--mint); margin-bottom: 18px; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--on-dark-muted); font-size: 0.98rem; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .service { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-inline: 0; } .service:last-child { border-bottom: 0; } }

/* Industry cards */
.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.industry { position: relative; min-height: 340px; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; }
.industry .photo { position: absolute; inset: 0; z-index: -1; }
.industry .photo::after { background: linear-gradient(180deg, rgba(7,32,27,0) 20%, rgba(7,32,27,.94) 78%); }
.industry .fallback-art { position: absolute; top: 26px; right: 22px; width: 90px; height: 90px; color: rgba(255,255,255,.12); }
.industry.has-photo .fallback-art { display: none; }
.industry .icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; }
.industry h3 { margin-bottom: 6px; }
.industry p { font-size: 0.93rem; color: rgba(255,255,255,.8); margin: 0; padding-right: 30px; }
.industry .go { position: absolute; right: 20px; bottom: 22px; width: 28px; height: 28px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); }
.industry .go svg { width: 13px; height: 13px; }
.industry:hover .go { background: var(--gold); color: var(--night); }
.industry:nth-child(1) .photo { background-image: radial-gradient(80% 60% at 30% 20%, rgba(205,166,92,.35), transparent 70%); }
.industry:nth-child(2) .photo { background-image: radial-gradient(80% 60% at 70% 20%, rgba(79,211,154,.28), transparent 70%); }
.industry:nth-child(3) .photo { background-image: radial-gradient(80% 60% at 40% 30%, rgba(205,166,92,.28), transparent 70%); }
.industry:nth-child(4) .photo { background-image: radial-gradient(80% 60% at 60% 25%, rgba(22,75,65,.9), transparent 70%); }
@media (max-width: 1000px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } .industry { min-height: 260px; } }

/* Stack */
.stack-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 24px; align-items: center; }
.layer-list { display: grid; gap: 40px; }
.layer { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.layer .badge { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); }
.layer .badge svg { width: 26px; height: 26px; }
.layer h3 { font-size: 1.15rem; margin-bottom: 4px; }
.layer p { font-size: 0.95rem; color: var(--on-dark-muted); margin: 0; }
.outcomes { display: grid; gap: 64px; }
.outcomes p { margin: 0; color: var(--on-dark); font-size: 1rem; border-left: 1px solid var(--gold); padding-left: 16px; }
.stack-art { width: 100%; max-width: 440px; margin: 0 auto; }
@media (max-width: 1000px) { .stack-grid { grid-template-columns: 1fr; } .stack-art { max-width: 340px; order: -1; } .outcomes { display: none; } }

/* Sovereign */
.sovereign { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 40px 0 34px; border-top: 1px solid var(--line-light); }
.fact { padding: 20px 18px 0 0; }
.fact + .fact { padding-left: 18px; border-left: 1px solid var(--line-light); }
.fact strong { display: block; font-size: 1.15rem; font-weight: 600; color: var(--pine); margin-bottom: 4px; letter-spacing: -0.01em; }
.fact span { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45; display: block; }
.reach { width: 100%; }
@media (max-width: 900px) { .sovereign { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 16px; margin-top: 16px; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.partner { border: 1px solid var(--line-dark); border-radius: 6px; padding: 28px 18px; min-height: 128px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: rgba(255,255,255,.02); }
.partner strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.partner span { font-size: 0.82rem; color: var(--on-dark-muted); margin-top: 8px; line-height: 1.4; }
.partner img { max-height: 44px; width: auto; margin-bottom: 10px; }
@media (max-width: 1000px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.licence-line { margin-top: 28px; display: flex; gap: 14px; align-items: center; color: var(--on-dark-muted); font-size: 0.95rem; }
.licence-line svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .photo { position: absolute; inset: 0; }
.cta-band .photo::after { background: linear-gradient(90deg, var(--night) 10%, rgba(7,32,27,.75) 60%, rgba(7,32,27,.5)); }
.cta-band .photo { background-image: radial-gradient(70% 120% at 85% 50%, rgba(205,166,92,.22), transparent 60%), radial-gradient(60% 100% at 60% 100%, rgba(22,75,65,.9), transparent 70%); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-block: clamp(64px, 8vw, 100px); }
.cta-inner h2 { max-width: 14em; }

/* Content pages */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line-dark); scroll-margin-top: 96px; }
.light .detail, .paper .detail { border-top-color: var(--line-light); }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail:last-child { padding-bottom: 0; }
.detail .badge { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); margin-bottom: 20px; }
.detail .badge svg { width: 28px; height: 28px; }
.detail h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.detail-body > p:first-child { font-size: 1.15rem; }
.detail-body p { max-width: 40em; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.checks li { position: relative; padding-left: 28px; font-size: 0.98rem; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.light .checks li::before, .paper .checks li::before { border-color: var(--pine); }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .checks { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-light); }
.tile { padding: 32px 28px 8px 0; }
.tile + .tile { padding-left: 28px; border-left: 1px solid var(--line-light); }
.tile h3 { margin-bottom: 10px; color: var(--pine); }
.tile p { color: var(--ink-muted); font-size: 0.98rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tile + .tile { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); } }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.82rem; color: var(--ink-muted); font-weight: 400; }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #BFB8A8; border-radius: 8px; padding: 13px 14px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pine); outline: 2px solid rgba(22,75,65,.25); outline-offset: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-muted); margin: 6px 0 26px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pine); flex: none; }
.consent a { color: var(--pine); }
.hidden { position: absolute; left: -9999px; }
.contact-card { background: var(--pine); color: #fff; border-radius: 8px; padding: 34px; }
.contact-card h3 { margin-bottom: 18px; }
.contact-card address { font-style: normal; line-height: 1.75; color: rgba(255,255,255,.88); margin-bottom: 22px; }
.contact-card a { color: var(--gold-soft); }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dt { font-size: 0.8rem; color: rgba(255,255,255,.65); }
.contact-card dd { margin: 2px 0 0; }

/* Legal */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.45rem; margin: 2.2em 0 0.7em; font-weight: 600; color: var(--pine); }
.legal p, .legal li { color: #2C3D38; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal .updated { color: var(--ink-muted); font-size: 0.92rem; }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid var(--line-dark); padding: 72px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 1.3fr; gap: 32px; }
.footer-grid img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-grid p { color: var(--on-dark-muted); font-size: 0.92rem; }
.footer-grid h4 { margin: 0 0 14px; font-size: 0.9rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid li a { text-decoration: none; color: var(--on-dark-muted); font-size: 0.9rem; }
.footer-grid li a:hover { color: #fff; }
.footer-grid address { font-style: normal; color: var(--on-dark-muted); font-size: 0.9rem; line-height: 1.7; }
.footer-grid address a { color: var(--on-dark-muted); text-decoration: none; }
.footer-note { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 0.84rem; color: rgba(255,255,255,.6); }
.footer-note nav { display: flex; gap: 22px; }
.footer-note a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-note a:hover { color: #fff; }
.footer-disclaimer { margin-top: 14px; font-size: 0.8rem; color: rgba(255,255,255,.5); max-width: 60em; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Hardware tiles */
.devices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.device { padding: 34px 28px 4px 0; }
.device + .device { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.device .icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 18px; }
.device h3 { margin-bottom: 8px; }
.device p { color: var(--on-dark-muted); font-size: 0.96rem; }
@media (max-width: 1000px) { .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .device:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .devices { grid-template-columns: 1fr; } .device + .device { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); } }

/* Partner logos: appear automatically when the SVG is in assets/partners/ */
.partner .plogo { display: none; max-height: 46px; max-width: min(160px, 100%); height: auto; width: auto; margin-bottom: 12px; }
.partner.has-logo .plogo { display: block; }
.partner.has-logo strong { position: absolute; left: -9999px; }
.partner { position: relative; }

/* Logo rows on light sections (ways to pay, hosting) */
.logo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.light-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.paper .partner, .light .partner { border-color: var(--line-light); background: #fff; min-height: 96px; padding: 20px 14px; }
.paper .partner span, .light .partner span { color: var(--ink-muted); }
.paper .partner strong, .light .partner strong { font-size: 1rem; }
@media (max-width: 600px) { .logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
