/* ===========================
   wieistmeineip.eu — Design System
   Adapted from byting GmbH (klaus.byting.net)
   Fonts: Syne (headings) + DM Sans (body)
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --blue:      #0080c1;
  --blue-l:    #5ba4d4;
  --blue-bg:   #e8f4fc;
  --red:       #cf2027;
  --red-l:     #ff6768;
  --red-bg:    #fdecea;
  --yellow:    #fcaf16;
  --yellow-l:  #ffdf5d;
  --yellow-bg: #fff8e1;
  --green:     #34b44d;
  --green-l:   #96cd85;
  --green-bg:  #edf7ee;
  --dark:      #1a1a2e;
  --text:      #1c2b3a;
  --text-m:    #5a7a96;
  --text-l:    #8aa5bb;
  --border:    #dde8f0;
  --border-d:  #c2d4e0;
  --bg:        #ffffff;
  --bg2:       #f4f8fb;
  --shadow:    rgba(0,80,140,0.08);
  --shadow-d:  rgba(0,80,140,0.15);
  --radius:    10px;
  --radius-l:  16px;
}


/* ── Dark Mode Variables ── */
html.dark {
  --bg:        #0d1b2a;
  --bg2:       #112236;
  --text:      #ddeeff;
  --text-m:    #7da3c4;
  --text-l:    #4a6a84;
  --border:    #1e3a52;
  --border-d:  #254a65;
  --shadow:    rgba(0,0,0,0.4);
  --shadow-d:  rgba(0,0,0,0.6);
  --blue-bg:   rgba(0,128,193,0.15);
  --yellow-bg: rgba(252,175,22,0.12);
  --green-bg:  rgba(52,180,77,0.12);
  --red-bg:    rgba(207,32,39,0.12);
}
html.dark body { background: var(--bg); color: var(--text); }
html.dark h1, html.dark h2, html.dark h3, html.dark h4 { color: var(--text); }
html.dark .nav { background: rgba(13,27,42,.96); border-color: var(--border); }
html.dark .nav-logo { color: var(--text); }
html.dark .nav-logo span { color: var(--blue-l); }
html.dark .nav-mobile { background: #0d1b2a; border-color: var(--border); }
html.dark .nav-ham span { background: var(--text); }
html.dark .lang-toggle { border-color: var(--border); }
html.dark .lang-btn { color: var(--text-m); }
html.dark .data-card,
html.dark .edu-card { background: var(--bg2); border-color: var(--border); }
html.dark .section { background: var(--bg); }
html.dark .section-alt { background: var(--bg2); }
html.dark .section-border { border-color: var(--border); }
html.dark .hero-stats { background: rgba(17,34,54,.95); border-color: rgba(255,255,255,.08); }
html.dark .hero-stat { border-color: rgba(255,255,255,.06); }
html.dark .hero-stat-lbl { color: var(--text-l); }
html.dark .form-input,
html.dark .form-textarea { background: var(--bg2); border-color: var(--border); color: var(--text); }
html.dark .form-input:focus,
html.dark .form-textarea:focus { border-color: var(--blue); background: var(--bg); }
html.dark .badge-gray { background: var(--bg2); color: var(--text-m); }
html.dark .page-hdr { background: linear-gradient(135deg,#0d1b2a 0%,#112236 100%); border-color: var(--border); }
html.dark .page-hdr h1,
html.dark .page-hdr p { color: var(--text); }
html.dark .cta-banner-blue { background: linear-gradient(135deg,#003d6b 0%,#005a9e 100%); }

/* ── Dark Mode Toggle Button ── */
.dark-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .32rem .55rem;
  cursor: pointer;
  color: var(--text-m);
  display: flex;
  align-items: center;
  transition: all .2s;
}
.dark-toggle:hover { border-color: var(--blue); color: var(--blue); }
.dark-toggle svg { width: 16px; height: 16px; stroke: currentColor; }
.dark-toggle .icon-moon { display: none; }
html.dark .dark-toggle .icon-sun { display: none; }
html.dark .dark-toggle .icon-moon { display: block; }

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -.5px;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

/* ── Colorbar ── */
.colorbar {
  display: flex;
  height: 4px;
  position: fixed;
  top: 44px;
  left: 0; right: 0;
  z-index: 199;
  transition: top .2s;
}
.cb-blue   { flex: 1; background: var(--blue); }
.cb-red    { flex: 1; background: var(--red); }
.cb-yellow { flex: 1; background: var(--yellow); }
.cb-green  { flex: 1; background: var(--green); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 48px; left: 0; right: 0;
  z-index: 198;
  transition: top .2s;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 14px var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-m);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-ham {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all .3s;
  border-radius: 2px;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 118px; left: 0; right: 0;
  transition: top .2s;
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  padding: 1rem 6% 1.5rem;
  z-index: 199;
  flex-direction: column;
  gap: .25rem;
  box-shadow: 0 4px 20px var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  color: var(--text-m);
  font-weight: 500;
  display: block;
  transition: all .15s;
}
.nav-mobile a:hover { color: var(--blue); background: var(--blue-bg); text-decoration: none; }

/* Lang toggle */
.lang-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  padding: .3rem .65rem;
  background: transparent;
  border: none;
  color: var(--text-m);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  transition: all .15s;
}
.lang-btn.active {
  background: var(--blue);
  color: #fff;
}

/* ── Page wrap ── */
.page-wrap { padding-top: 118px; min-height: 100vh; display: flex; flex-direction: column; transition: padding-top .2s; }
/* Pages without sticky top bar */
.no-top-bar .colorbar { top: 0; }
.no-top-bar .nav { top: 4px; }
.no-top-bar .nav-mobile { top: 74px; }
.no-top-bar .page-wrap { padding-top: 74px; }
/* When top bar is dismissed */
html.top-bar-hidden .colorbar { top: 0; }
html.top-bar-hidden .nav { top: 4px; }
html.top-bar-hidden .nav-mobile { top: 74px; }
html.top-bar-hidden .page-wrap { padding-top: 74px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all .2s;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0070ab; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,128,193,.3); }

.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: #e09c00; color: var(--dark); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-ghost { background: transparent; color: var(--text-m); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }

.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem .9rem; font-size: .8rem; }
.btn-full { width: 100%; }

/* ── Layout ── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 6%; }
.container-sm { max-width: 680px;  margin: 0 auto; padding: 0 6%; }

/* ── Sections ── */
.section { padding: 52px 6%; }
.section-alt { background: var(--bg2); }
.section-border { border-top: 1px solid var(--border); }

.section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: .75rem;
}
.section-sub {
  color: var(--text-m);
  line-height: 1.72;
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ── Hero ── */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 6% 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #071525 0%, #0a2040 40%, #0d2d5a 70%, #0a1e3c 100%);
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .38rem 1.1rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  position: relative;
}
.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: inline-block;
}

.hero-label {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  margin-bottom: .4rem;
  position: relative;
}

.hero-ip {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero-ip span.ip-accent { color: var(--yellow); }

.hero-location {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: .2rem;
  position: relative;
}
.hero-isp {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  margin-bottom: 2rem;
  position: relative;
}

.hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  position: relative;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  position: relative;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  position: relative;
}
.hero-stat {
  padding: 1.2rem 1.8rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}
.hero-stat-lbl {
  color: var(--text-l);
  font-size: .72rem;
}

/* ── Data Cards Grid ── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.data-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.data-card:hover {
  box-shadow: 0 6px 24px var(--shadow-d);
  transform: translateY(-2px);
}

.data-card-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-l);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.data-card-label svg { width: 13px; height: 13px; opacity: .6; }

.data-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  word-break: break-all;
}

.data-card-sub {
  font-size: .78rem;
  color: var(--text-m);
  margin-top: .2rem;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .65rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-green  { background: var(--green-bg);  color: #1a6e2e; }
.badge-red    { background: var(--red-bg);    color: #a01820; }
.badge-yellow { background: var(--yellow-bg); color: #8a6000; }
.badge-gray   { background: var(--bg2);       color: var(--text-m); }
.badge-blue   { background: var(--blue-bg);   color: #005a8a; }

/* ── Skeleton Loaders ── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e8f0f7 25%, #f4f8fb 50%, #e8f0f7 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: .25rem;
  display: inline-block;
  color: transparent !important;
}
.skeleton-text { height: 1rem; width: 80%; }

/* ── CTA Banners ── */
.cta-banner {
  border-radius: var(--radius-l);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner-blue {
  background: linear-gradient(135deg, #0a2a4a 0%, var(--blue) 100%);
  color: white;
  box-shadow: 0 6px 30px rgba(0,128,193,.25);
}

.cta-banner-dark {
  background: var(--dark);
  color: white;
}

.cta-banner-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: .35rem;
  color: white;
}
.cta-banner-text p {
  font-size: .88rem;
  opacity: .8;
}

/* ── Educational Cards ── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.edu-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-l);
  padding: 1.75rem;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.edu-card:hover {
  box-shadow: 0 8px 28px var(--shadow-d);
  transform: translateY(-3px);
}

.edu-card-icon {
  width: 46px;
  height: 46px;
  background: var(--blue-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.edu-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--dark);
}
.edu-card p {
  font-size: .85rem;
  color: var(--text-m);
  line-height: 1.65;
}
.edu-card a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: .75rem;
}

/* ── Page Header (inner pages) ── */
.page-hdr {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border-bottom: 1.5px solid var(--border);
  padding: 3.5rem 6% 3rem;
}
.page-hdr h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: .5rem;
}
.page-hdr p {
  color: var(--text-m);
  max-width: 560px;
}

/* ── Forms ── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-m);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-label span { color: var(--red); }

.form-input, .form-textarea {
  width: 100%;
  padding: .7rem 1rem;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,128,193,.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-l); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Alerts ── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: 8px;
  font-size: .87rem;
  margin-bottom: 1rem;
}
.alert-success { background: var(--green-bg); border: 1px solid rgba(52,180,77,.3);   color: #1a6e2e; }
.alert-error   { background: var(--red-bg);   border: 1px solid rgba(207,32,39,.2);   color: #a01820; }
.alert-info    { background: var(--blue-bg);  border: 1px solid rgba(0,128,193,.2);   color: #005a8a; }

/* ── Footer ── */
.footer {
  background: var(--dark);
  padding: 60px 6% 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  height: 28px;
  margin-bottom: .9rem;
  filter: brightness(0) invert(1) opacity(.85);
}

.footer-desc {
  color: #6b8aaa;
  font-size: .82rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  color: #c8dce9;
  margin-bottom: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a {
  color: #6b8aaa;
  font-size: .82rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--blue-l); text-decoration: none; }

.footer-powered {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #6b8aaa;
  font-size: .8rem;
  margin-top: .75rem;
}
.footer-powered img {
  height: 18px;
  filter: brightness(0) invert(1) opacity(.55);
}
.footer-powered a { color: var(--blue-l); font-weight: 600; }
.footer-powered a:hover { color: #fff; }

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}
.footer-bottom p { color: #4a6a84; font-size: .77rem; }

.footer-legal {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: .875rem 1.1rem;
  font-size: .78rem;
  color: #4a6a84;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ── Fingerprint display ── */
.fingerprint-hash {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .95rem;
  color: var(--blue);
  letter-spacing: .05em;
}

/* ── Feature list (website-check) ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text-m);
}
.feature-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--blue-bg);
  color: var(--blue);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Prose (static pages) ── */
.prose h2 { font-size: 1.3rem; font-weight: 800; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.prose p  { margin-bottom: 1rem; color: var(--text-m); line-height: 1.8; }
.prose ul { margin: .75rem 0 1rem 1.5rem; color: var(--text-m); line-height: 1.8; }
.prose li { margin-bottom: .375rem; }
.prose strong { color: var(--text); }
.prose code {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: .1rem .4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: .88em;
}


/* ── Sticky Announcement Bars ── */
.sticky-top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 44px;
  background: linear-gradient(90deg, #0a2a4a 0%, var(--blue) 60%, #0070ab 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0 1rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sticky-top-bar a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--yellow);
  color: var(--dark);
  padding: .3rem .9rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .8rem;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.sticky-top-bar a:hover { background: var(--yellow-l); transform: scale(1.03); text-decoration: none; }
.sticky-top-bar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-top-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: .2rem .4rem;
  flex-shrink: 0;
  transition: color .15s;
}
.sticky-top-close:hover { color: #fff; }

.sticky-bot-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 6%;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.sticky-bot-text { font-size: .85rem; }
.sticky-bot-text strong { font-size: .9rem; font-family: 'Syne', sans-serif; display: block; margin-bottom: .1rem; }
.sticky-bot-text span { opacity: .7; }
.sticky-bot-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.sticky-bot-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: .2rem;
  transition: color .15s;
}
.sticky-bot-close:hover { color: #fff; }

/* Dark mode adjustments */
html.dark .sticky-top-bar { background: linear-gradient(90deg, #071525 0%, #0a2040 60%, #0d2a50 100%); }
html.dark .sticky-bot-bar { background: #071525; }

/* Bottom padding so footer isn't hidden behind sticky bar */
.page-wrap { padding-bottom: 64px; }

@media (max-width: 640px) {
  .sticky-top-bar-text { display: none; }
  .sticky-bot-text span { display: none; }
  .sticky-bot-bar { padding: .6rem 4%; }
}


/* ── DNS Lookup ── */
.dns-search-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}
.dns-search-row {
  display: flex;
  gap: .6rem;
  align-items: stretch;
}
.dns-search-input {
  flex: 1;
  padding: .75rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
}
.dns-search-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,128,193,.15);
}
.dns-search-input::placeholder { color: var(--text-l); }
.dns-examples {
  margin-top: .75rem;
  font-size: .8rem;
  color: var(--text-l);
}
.dns-examples a {
  color: var(--blue);
  cursor: pointer;
  margin: 0 .3rem;
  font-weight: 500;
  text-decoration: none;
}
.dns-examples a:hover { text-decoration: underline; }

.dns-results {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.dns-record-card {
  background: var(--bg2);
  border: 1.5px solid var(--border-d);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-l);
  box-shadow: 0 2px 16px var(--shadow-d);
  overflow: hidden;
  transition: box-shadow .2s;
}
.dns-record-card:hover { box-shadow: 0 4px 20px var(--shadow-d); }
.dns-record-card--empty { border-left-color: var(--border); opacity: .7; }
.dns-record-card--mx  { border-left-color: var(--blue); }
.dns-record-card--ns  { border-left-color: var(--green); }
.dns-record-card--txt { border-left-color: var(--yellow); }
.dns-record-card--soa { border-left-color: var(--text-l); }
.dns-record-card--caa { border-left-color: var(--red); }
.dns-record-card--aaaa { border-left-color: #7c3aed; }
.dns-record-card--ptr { border-left-color: var(--text-m); }

.dns-card-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.4rem .6rem;
  cursor: pointer;
  user-select: none;
}
.dns-card-head:hover { background: var(--bg2); }
.dns-card-icon { font-size: 1.3rem; flex-shrink: 0; }
.dns-card-meta { flex: 1; min-width: 0; }
.dns-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.dns-card-desc {
  font-size: .78rem;
  color: var(--text-m);
  margin-top: .1rem;
  line-height: 1.5;
}
.dns-card-count {
  background: var(--blue);
  color: #fff;
  border-radius: 100px;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.dns-card-count--zero { background: var(--border-d); color: var(--text-l); }
.dns-card-chevron {
  color: var(--text-l);
  font-size: .85rem;
  transition: transform .2s;
  flex-shrink: 0;
}
.dns-record-card.open .dns-card-chevron { transform: rotate(180deg); }

.dns-card-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: .8rem 1.4rem 1.1rem;
}
.dns-record-card.open .dns-card-body { display: block; }

.dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.dns-table th {
  text-align: left;
  color: var(--text-l);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .5rem;
  border-bottom: 1px solid var(--border);
}
.dns-table td {
  padding: .45rem .5rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: .82rem;
  word-break: break-all;
}
.dns-table tr:last-child td { border-bottom: none; }
.dns-table .dns-td-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  color: var(--text-m);
  font-weight: 600;
  white-space: nowrap;
  font-family: unset;
}
.dns-table .dns-td-ttl {
  color: var(--text-l);
  font-size: .75rem;
  white-space: nowrap;
  text-align: right;
}
.dns-empty-note {
  color: var(--text-l);
  font-size: .82rem;
  font-style: italic;
  padding: .2rem 0;
}
.dns-txt-spf  { color: var(--green); }
.dns-txt-dkim { color: var(--blue); }
.dns-txt-dmarc { color: var(--yellow); }

/* DNS quick-form on homepage hero */
.dns-quick-wrap {
  margin-top: 1.5rem;
  position: relative;
}
.dns-quick-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.dns-quick-row {
  display: flex;
  gap: .5rem;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
}
.dns-quick-input {
  flex: 1;
  padding: .7rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  transition: border-color .2s, background .2s;
  backdrop-filter: blur(6px);
  min-width: 0;
}
.dns-quick-input::placeholder { color: rgba(255,255,255,.4); }
.dns-quick-input:focus {
  outline: none;
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.18);
}
/* Prevent browser autofill yellow background */
.dns-quick-input:-webkit-autofill,
.dns-quick-input:-webkit-autofill:hover,
.dns-quick-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(10,32,64,.9) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  border-color: rgba(255,255,255,.3) !important;
}

/* Dark mode DNS */
html.dark .dns-record-card { background: var(--bg2); border-color: var(--border); }
html.dark .dns-card-head:hover { background: var(--bg); }
html.dark .dns-search-input { background: var(--bg2); border-color: var(--border); color: var(--text); }
html.dark .dns-table td { color: var(--text); border-color: var(--border); }
html.dark .dns-table th { border-color: var(--border); }
html.dark .dns-card-count { background: var(--blue-bg); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-ham   { display: block; }
  .edu-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-stat { padding: .9rem 1.2rem; }
  .section { padding: 60px 5%; }
  .cta-banner { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .page-hdr { padding: 2.5rem 5% 2rem; }
}

@media (max-width: 480px) {
  .data-grid { grid-template-columns: 1fr; }
  .edu-grid  { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
}

/* ── Utilities ── */
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--text-m); }
.font-mono   { font-family: 'SFMono-Regular', Consolas, monospace; }
.hidden      { display: none !important; }
