/* DOEN International website. Same look as the old React site, as plain CSS. */

:root {
  --navy: #050D1A;
  --navy2: #0A1628;
  --navy3: #0F2040;
  --teal: #00D4FF;
  --teal2: #00A8CC;
  --gold: #F0A500;
  --white: #E8EDF5;
  --muted: #8A9DB8; /* a touch lighter than the old #7A8EA8 so small text passes WCAG AA on navy */
  --body: #B0BFD4;
  --border: rgba(0, 212, 255, 0.12);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--teal); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.wrap.narrow { max-width: 800px; }

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 13, 26, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 27px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 1px; color: var(--white); }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 3px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.main-nav a:hover { color: var(--white); }

.header-tools { display: flex; align-items: center; gap: 4px; }
.langs { display: flex; gap: 4px; }
.lang-btn {
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 1px;
  padding: 6px 10px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; transition: all .2s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--teal); border-color: var(--teal); }

.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 10px 8px; margin-left: 4px;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 13, 26, 0.98); border-bottom: 1px solid var(--border); padding: 8px 24px 16px;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { color: var(--white); font-size: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: 0; }
  /* Without JS the menu button does nothing, so the links stay reachable in a row instead */
  .no-js .menu-btn { display: none; }
  .no-js .main-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; padding: 0; border: 0; background: none; }
  .no-js .main-nav a { font-size: 13px; padding: 0; border: 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .lang-btn { padding: 4px 6px; font-size: 11px; }
  .brand-sub { letter-spacing: 2px; }
}
@media (max-width: 360px) {
  .brand-text { display: none; }
}

/* ── Buttons ────────────────────────────────────────── */

.btn {
  display: inline-block; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .5px;
  padding: 14px 32px; border-radius: 100px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .3s, box-shadow .3s, background .3s; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--teal2)); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 212, 255, .3); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); font-weight: 600; }
.btn-outline:hover { background: rgba(0, 212, 255, .08); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #FF8C00); color: #000; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(240, 165, 0, .25); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ── Hero ───────────────────────────────────────────── */

.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 80px) 0 120px;
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(0, 212, 255, .03) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(0, 212, 255, .03) 1px, transparent 1px) 0 0 / 60px 60px,
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 212, 255, .08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 50%, rgba(240, 165, 0, .05) 0%, transparent 60%),
    var(--navy);
}
.hero::after {
  content: ''; position: absolute; bottom: 40px; left: 50%; width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--teal), transparent);
}
.hero-inner { max-width: 760px; animation: fadeInUp .7s ease both; }
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse-teal 2s infinite; flex-shrink: 0; }
.hero-title {
  font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
  font-size: clamp(40px, 7vw, 88px); line-height: 1.05; letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, rgba(0, 212, 255, .8) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--white);
}
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); line-height: 1.7; margin: 24px 0 40px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pulse-teal { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, .3); } 50% { box-shadow: 0 0 0 12px rgba(0, 212, 255, 0); } }

/* ── Sections ───────────────────────────────────────── */

.section { padding: 100px 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--navy2); }
.page-top { padding-top: calc(var(--header-h) + 56px); }
.section-head { margin-bottom: 56px; }
.section-head .muted { margin-top: 12px; font-size: 16px; }
.teal-line { display: block; width: 40px; height: 3px; background: var(--teal); border-radius: 2px; margin-bottom: 16px; }
.section-title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(30px, 5vw, 52px); line-height: 1.1; color: var(--white); }
.muted { color: var(--muted); }
.lead { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .section-tight { padding-top: 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 40px; }
}

/* ── Cards ──────────────────────────────────────────── */

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card {
  position: relative; overflow: hidden; display: block; text-decoration: none;
  background: linear-gradient(135deg, rgba(15, 32, 64, .8) 0%, rgba(10, 22, 40, .9) 100%);
  border: 1px solid var(--border); border-radius: 16px; padding: 32px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(0, 212, 255, .3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 212, 255, .08); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 36px; margin-bottom: 20px; line-height: 1; }
.card h3, .post-card h2 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 480px) { .card { padding: 24px; } }

.post-card time { display: block; color: var(--muted); font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-list .post-card h2 { font-size: 22px; font-weight: 600; }
.post-list .post-card p { font-size: 15px; }
.read-more { display: inline-block; margin-top: 18px; color: var(--teal); font-size: 14px; font-weight: 600; text-decoration: none; }

/* ── Corvux box ─────────────────────────────────────── */

.erp-box {
  background: linear-gradient(135deg, rgba(240, 165, 0, .06) 0%, rgba(0, 212, 255, .04) 100%);
  border: 1px solid rgba(240, 165, 0, .2); border-radius: 24px; padding: clamp(28px, 6vw, 72px);
}
.erp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.erp-badge {
  background: linear-gradient(135deg, var(--gold), #FF8C00); color: #000;
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px;
}
.erp-rule { height: 1px; flex: 1; min-width: 40px; background: linear-gradient(90deg, rgba(240, 165, 0, .3), transparent); }
.erp-brand { font-size: 13px; font-weight: 700; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.erp-box .section-title { margin-bottom: 16px; }
.erp-desc { font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 12px; }
.erp-sub { font-size: 12px; color: rgba(240, 165, 0, .75); font-style: italic; letter-spacing: .5px; margin-bottom: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pills li { background: rgba(240, 165, 0, .1); border: 1px solid rgba(240, 165, 0, .2); color: var(--gold); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 100px; }
.small-label { font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tags li { font-size: 12px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; }
@media (max-width: 480px) { .pills li { font-size: 11px; padding: 6px 12px; } }

.notify label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.notify-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.notify input {
  flex: 1 1 220px; max-width: 300px; min-width: 0;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--white);
  border-radius: 100px; padding: 14px 24px; font: inherit; font-size: 14px; outline: none; transition: border-color .2s;
}
.notify input:focus { border-color: rgba(240, 165, 0, .5); }
.notify input::placeholder { color: var(--muted); }
.notify-msg { margin-top: 12px; font-size: 15px; font-weight: 600; }
.notify-ok { color: var(--gold); }
.notify-err { color: #FF8A80; }
.notify.is-done label, .notify.is-done .notify-row { display: none; }
@media (max-width: 480px) { .notify input { max-width: none; } }
.erp-link { margin-top: 24px; }
.erp-link a { color: var(--gold); font-weight: 600; font-size: 14px; text-decoration: none; }
.erp-link a:hover { text-decoration: underline; }

.erp-visual { display: flex; flex-direction: column; gap: 20px; }
.mock { background: rgba(5, 13, 26, .8); border: 1px solid rgba(240, 165, 0, .15); border-radius: 16px; overflow: hidden; }
.mock-bar { background: rgba(240, 165, 0, .06); border-bottom: 1px solid rgba(240, 165, 0, .1); padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.mock-bar i:nth-child(2) { background: #FEBC2E; }
.mock-bar i:nth-child(3) { background: #28C840; }
.mock-bar span { font-size: 11px; color: rgba(240, 165, 0, .6); margin-left: 8px; letter-spacing: 2px; }
.mock-list { padding: 16px 24px; }
.mock-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 13px; }
.mock-list li:last-child { border-bottom: 0; }
.mock-list li > span:first-child { font-size: 18px; }
.mod-label { color: var(--muted); flex: 1; }
.mod-state { font-size: 10px; letter-spacing: 1px; color: rgba(240, 165, 0, .6); }
.mod-state.is-active { color: var(--teal); }
.dev-note { background: rgba(240, 165, 0, .04); border: 1px solid rgba(240, 165, 0, .1); border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.dev-note > span { font-size: 22px; }
.dev-note strong { display: block; font-size: 13px; color: var(--gold); }
.dev-note div span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── About ──────────────────────────────────────────── */

.details-box { background: rgba(255, 255, 255, .02); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.details-title { font-size: 12px; color: var(--teal); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.detail-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { color: var(--muted); font-weight: 500; }
.detail-row dd { color: var(--white); font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; text-align: right; }
@media (max-width: 480px) { .details-box { padding: 24px; } }

/* ── FAQ ────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: rgba(255, 255, 255, .02); border: 1px solid var(--border); border-radius: 12px; }
.faq-item[open] { border-color: rgba(0, 212, 255, .3); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 16px; color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  color: var(--teal); font-size: 22px; font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 24px 22px; color: var(--body); line-height: 1.75; font-size: 15px; }

/* ── Contact ────────────────────────────────────────── */

.contact-list { display: flex; flex-direction: column; gap: 16px; font-style: normal; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; text-decoration: none;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s;
  color: var(--muted); font-size: 15px;
}
a.contact-item:hover { border-color: rgba(0, 212, 255, .4); }
.contact-item > div { display: flex; flex-direction: column; min-width: 0; }
.ci-icon { font-size: 24px; flex-shrink: 0; }
.ci-label { font-size: 11px; color: var(--teal); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
.ci-strong { font-size: 16px; color: var(--white); font-weight: 600; letter-spacing: .5px; }
.map { height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--navy2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .map { height: 240px; } }

/* ── Blog post ──────────────────────────────────────── */

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.post-head { margin-bottom: 40px; }
.post-head time { color: var(--muted); font-size: 13px; letter-spacing: 1px; }
.post-title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 14px 0 16px; }
.post-lead { color: var(--muted); font-size: 17px; line-height: 1.7; }
.prose { margin-top: 8px; }
.prose h2 { font-size: 22px; font-weight: 600; margin: 40px 0 14px; color: var(--teal); line-height: 1.3; }
.prose p, .prose li { color: var(--body); font-size: 16px; line-height: 1.8; }
.prose p { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--white); }
.post-box { margin-top: 64px; padding: 28px 32px; background: rgba(0, 212, 255, .05); border: 1px solid var(--border); border-radius: 16px; }
.post-box p { font-size: 15px; line-height: 1.7; color: var(--body); }
.post-box p.muted { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.post-box a { color: var(--teal); }
.post-box .read-more { margin-top: 12px; }
.more-posts { margin-top: 48px; }
.more-posts h2 { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.more-posts li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.more-posts a { color: var(--white); text-decoration: none; }
.more-posts a:hover { color: var(--teal); }

/* ── Footer ─────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 20px; height: 30px; opacity: .85; }
.footer-name { font-size: 13px; font-weight: 700; color: var(--white); opacity: .8; letter-spacing: 1px; }
.footer-name span { font-weight: 400; }
.footer-meta { font-size: 11px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--teal); }
.footer-legal { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .04); }
.footer-legal p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.footer-legal a { color: var(--muted); }

/* ── 404 ────────────────────────────────────────────── */

.not-found { min-height: 100vh; display: flex; align-items: center; text-align: center; }
.not-found img { margin: 0 auto 24px; width: 54px; height: 80px; }
.not-found .hero-actions { justify-content: center; margin-top: 24px; }
