/*
Theme Name: EyeDecoded
Theme URI: https://eyedecoded.com
Author: EyeDecoded
Author URI: https://eyedecoded.com
Description: A dark, editorial technology theme for the EyeDecoded creator brand.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eyedecoded
Tags: blog, news, dark, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --ed-bg: #080b12;
  --ed-bg-soft: #0d121d;
  --ed-panel: #111827;
  --ed-panel-2: #151e2f;
  --ed-line: rgba(148, 163, 184, 0.17);
  --ed-line-strong: rgba(96, 165, 250, 0.38);
  --ed-text: #f4f7fb;
  --ed-muted: #9aa8bb;
  --ed-cyan: #42d9ff;
  --ed-blue: #4d7cff;
  --ed-lime: #b7f34b;
  --ed-danger: #ff7070;
  --ed-content: 1180px;
  --ed-radius: 18px;
  --ed-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --ed-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ed-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 4%, rgba(77, 124, 255, 0.15), transparent 28rem),
    var(--ed-bg);
  color: var(--ed-text);
  font-family: var(--ed-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--ed-cyan);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--ed-cyan);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--ed-text);
  color: var(--ed-bg);
}

.ed-shell {
  width: min(calc(100% - 40px), var(--ed-content));
  margin-inline: auto;
}

.ed-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(18px);
}

.admin-bar .ed-site-header {
  top: 32px;
}

.ed-nav-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ed-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.ed-brand:hover {
  color: var(--ed-text);
}

.ed-brand-mark {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(66, 217, 255, 0.5);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(66, 217, 255, 0.16), rgba(77, 124, 255, 0.08));
  box-shadow: inset 0 0 18px rgba(66, 217, 255, 0.08);
  color: var(--ed-cyan);
  font-family: var(--ed-mono);
  font-size: 14px;
}

.custom-logo-link img {
  width: auto;
  max-height: 42px;
}

.ed-primary-nav {
  margin-left: auto;
}

.ed-menu,
.ed-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ed-menu a {
  color: #c9d2de;
  font-size: 14px;
  font-weight: 640;
}

.ed-menu a:hover,
.ed-menu .current-menu-item > a {
  color: var(--ed-text);
}

.ed-header-cta,
.ed-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ed-text);
  color: #080b12;
  font-size: 14px;
  font-weight: 760;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ed-header-cta:hover,
.ed-button:hover {
  transform: translateY(-2px);
  background: var(--ed-cyan);
  color: #071018;
}

.ed-button--ghost {
  border-color: var(--ed-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ed-text);
}

.ed-button--ghost:hover {
  border-color: var(--ed-line-strong);
  background: rgba(66, 217, 255, 0.07);
  color: var(--ed-cyan);
}

.ed-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ed-line);
  border-radius: 12px;
  background: transparent;
  color: var(--ed-text);
}

.ed-menu-toggle span,
.ed-menu-toggle::before,
.ed-menu-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.ed-menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.ed-menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.ed-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.ed-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 10vw, 140px) 0 80px;
}

.ed-hero::after {
  position: absolute;
  top: 18%;
  right: -80px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(66, 217, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(77, 124, 255, 0.025), 0 0 0 112px rgba(77, 124, 255, 0.018);
  content: "";
}

.ed-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.ed-kicker,
.ed-card-kicker,
.ed-post-meta,
.ed-footer-label {
  color: var(--ed-cyan);
  font-family: var(--ed-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}

.ed-kicker::before {
  width: 32px;
  height: 1px;
  background: var(--ed-cyan);
  content: "";
}

.ed-hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(48px, 7.1vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.068em;
}

.ed-hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--ed-cyan), #8da8ff 68%, var(--ed-text));
  background-clip: text;
  -webkit-background-clip: text;
}

.ed-hero-copy {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ed-muted);
  font-size: clamp(17px, 1.8vw, 20px);
}

.ed-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.ed-terminal {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: linear-gradient(160deg, rgba(21, 30, 47, 0.95), rgba(10, 15, 25, 0.96));
  box-shadow: var(--ed-shadow);
}

.ed-terminal::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(66, 217, 255, 0.035), transparent 70%);
  content: "";
  transform: translateX(-100%);
  animation: ed-scan 6s ease-in-out infinite;
}

@keyframes ed-scan {
  0%, 35% { transform: translateX(-100%); }
  75%, 100% { transform: translateX(100%); }
}

.ed-terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ed-line);
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ed-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ed-lime);
}

.ed-live::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  content: "";
}

.ed-terminal-body {
  position: relative;
  padding: 26px 24px 30px;
  font-family: var(--ed-mono);
}

.ed-code-line {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  margin: 0 0 15px;
  color: #bec9d8;
  font-size: 13px;
}

.ed-code-line span:first-child {
  color: #536277;
}

.ed-code-line strong {
  color: var(--ed-cyan);
  font-weight: 500;
}

.ed-terminal-metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 26px -24px -30px;
  border-top: 1px solid var(--ed-line);
  background: var(--ed-line);
}

.ed-terminal-metric div {
  padding: 20px 24px;
  background: #0c121d;
}

.ed-terminal-metric b {
  display: block;
  color: var(--ed-text);
  font-size: 24px;
  line-height: 1;
}

.ed-terminal-metric small {
  color: var(--ed-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ed-signal-strip {
  border-block: 1px solid var(--ed-line);
  background: rgba(255, 255, 255, 0.016);
}

.ed-signal-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ed-signal-inner span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-signal-inner span::before {
  color: var(--ed-cyan);
  content: "//";
}

.ed-section {
  padding: clamp(78px, 9vw, 126px) 0;
}

.ed-section--compact {
  padding-top: 18px;
}

.ed-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.ed-section-heading h2,
.ed-archive-header h1,
.ed-entry-header h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.052em;
}

.ed-section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--ed-muted);
}

.ed-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ed-topic-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(12, 18, 29, 0.84));
  transition: transform 180ms ease, border-color 180ms ease;
}

.ed-topic-card::after {
  position: absolute;
  right: -44px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(66, 217, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.ed-topic-card:hover {
  transform: translateY(-5px);
  border-color: rgba(66, 217, 255, 0.42);
  color: var(--ed-text);
}

.ed-topic-index {
  display: block;
  margin-bottom: 68px;
  color: var(--ed-cyan);
  font-family: var(--ed-mono);
  font-size: 12px;
}

.ed-topic-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.ed-topic-card p {
  max-width: 280px;
  margin: 0;
  color: var(--ed-muted);
  font-size: 14px;
}

.ed-featured {
  display: grid;
  min-height: 480px;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border: 1px solid var(--ed-line);
  border-radius: calc(var(--ed-radius) + 4px);
  background: var(--ed-panel);
}

.ed-featured-media,
.ed-card-media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(66, 217, 255, 0.25), transparent 30%),
    linear-gradient(135deg, #141e33, #090d16);
}

.ed-featured-media img,
.ed-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.ed-featured-media::after,
.ed-card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 11, 18, 0.35), transparent 55%);
  content: "";
  pointer-events: none;
}

.ed-media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 260px;
  place-items: center;
  color: rgba(66, 217, 255, 0.55);
  font-family: var(--ed-mono);
  font-size: clamp(22px, 4vw, 52px);
  letter-spacing: -0.08em;
}

.ed-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
}

.ed-featured-content h3 {
  margin: 16px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.ed-featured-content h3 a:hover,
.ed-card-title a:hover {
  color: var(--ed-cyan);
}

.ed-featured-content p {
  margin: 0 0 28px;
  color: var(--ed-muted);
}

.ed-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ed-text);
  font-size: 14px;
  font-weight: 740;
}

.ed-text-link::after {
  color: var(--ed-cyan);
  content: "\2192";
  transition: transform 180ms ease;
}

.ed-text-link:hover::after {
  transform: translateX(4px);
}

.ed-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ed-post-card {
  overflow: hidden;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: rgba(17, 24, 39, 0.76);
  transition: transform 180ms ease, border-color 180ms ease;
}

.ed-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 217, 255, 0.35);
}

.ed-post-card:hover .ed-card-media img {
  transform: scale(1.035);
}

.ed-card-media {
  aspect-ratio: 16 / 9;
}

.ed-card-body {
  padding: 24px;
}

.ed-card-title {
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.ed-card-excerpt {
  margin: 0;
  color: var(--ed-muted);
  font-size: 14px;
}

.ed-pagination {
  margin-top: 46px;
}

.ed-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ed-pagination .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid var(--ed-line);
  border-radius: 10px;
  color: var(--ed-muted);
}

.ed-pagination .page-numbers.current,
.ed-pagination .page-numbers:hover {
  border-color: var(--ed-cyan);
  color: var(--ed-text);
}

.ed-social-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(66, 217, 255, 0.24);
  border-radius: calc(var(--ed-radius) + 6px);
  background:
    linear-gradient(120deg, rgba(66, 217, 255, 0.08), transparent 42%),
    var(--ed-panel);
}

.ed-social-panel h2 {
  margin: 8px 0 10px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.052em;
}

.ed-social-panel p {
  max-width: 580px;
  margin: 0;
  color: var(--ed-muted);
}

.ed-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ed-social-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  color: #dbe4ef;
  font-family: var(--ed-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ed-social-link:hover {
  border-color: var(--ed-cyan);
  background: rgba(66, 217, 255, 0.06);
}

.ed-content-area {
  padding: 90px 0 120px;
}

.ed-archive-header,
.ed-entry-header {
  max-width: 820px;
  margin-bottom: 46px;
}

.ed-archive-description,
.ed-entry-deck {
  color: var(--ed-muted);
  font-size: 18px;
}

.ed-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: clamp(44px, 8vw, 104px);
  align-items: start;
}

.ed-entry-content {
  color: #d4dbe6;
  font-size: 18px;
}

.ed-entry-content > * {
  max-width: 760px;
}

.ed-entry-content h2,
.ed-entry-content h3 {
  margin-top: 2.1em;
  color: var(--ed-text);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.ed-entry-content h2 {
  font-size: 34px;
}

.ed-entry-content h3 {
  font-size: 25px;
}

.ed-entry-content a {
  color: var(--ed-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ed-entry-content pre,
.ed-entry-content code {
  font-family: var(--ed-mono);
}

.ed-entry-content pre {
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  background: #070a10;
  font-size: 14px;
}

.ed-entry-content :not(pre) > code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--ed-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ed-cyan);
  font-size: 0.88em;
}

.ed-entry-content blockquote {
  padding: 4px 0 4px 24px;
  margin: 34px 0;
  border-left: 3px solid var(--ed-cyan);
  color: var(--ed-text);
  font-size: 22px;
}

.ed-entry-content figure,
.ed-entry-content .wp-block-image {
  margin: 38px 0;
}

.ed-entry-content figcaption {
  margin-top: 8px;
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 11px;
}

.ed-entry-aside {
  position: sticky;
  top: 112px;
  padding: 24px;
  border: 1px solid var(--ed-line);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.7);
}

.ed-entry-aside p {
  margin: 7px 0 0;
  color: var(--ed-muted);
  font-size: 14px;
}

.ed-entry-aside .ed-social-links {
  margin-top: 18px;
}

.ed-entry-hero {
  margin: 0 0 48px;
  overflow: hidden;
  border: 1px solid var(--ed-line);
  border-radius: 18px;
}

.ed-empty {
  padding: 72px 30px;
  border: 1px dashed var(--ed-line-strong);
  border-radius: var(--ed-radius);
  text-align: center;
}

.ed-empty h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.ed-empty p {
  margin: 0 0 24px;
  color: var(--ed-muted);
}

.ed-search-form {
  display: flex;
  max-width: 620px;
  gap: 10px;
  margin-top: 28px;
}

.ed-search-form label {
  flex: 1;
}

.ed-search-form input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--ed-line);
  border-radius: 12px;
  background: var(--ed-panel);
  color: var(--ed-text);
}

.ed-search-form button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--ed-cyan);
  color: #071018;
  font-weight: 750;
}

.ed-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 64px;
}

.ed-post-nav a {
  display: block;
  padding: 22px;
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  color: var(--ed-muted);
}

.ed-post-nav a:hover {
  border-color: var(--ed-line-strong);
}

.ed-site-footer {
  border-top: 1px solid var(--ed-line);
  background: #070a10;
}

.ed-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 60px;
  padding: 72px 0 62px;
}

.ed-footer-about p {
  max-width: 460px;
  margin: 20px 0 0;
  color: var(--ed-muted);
}

.ed-footer-column ul {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.ed-footer-column li {
  margin: 8px 0;
}

.ed-footer-column a {
  color: var(--ed-muted);
  font-size: 14px;
}

.ed-footer-bottom {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--ed-line);
  color: #68768a;
  font-family: var(--ed-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .ed-hero-grid,
  .ed-featured,
  .ed-entry-layout {
    grid-template-columns: 1fr;
  }

  .ed-hero-copy {
    max-width: 680px;
  }

  .ed-terminal {
    max-width: 620px;
  }

  .ed-topic-grid,
  .ed-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ed-featured-media {
    min-height: 360px;
  }

  .ed-entry-aside {
    position: static;
  }

  .ed-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ed-footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .admin-bar .ed-site-header {
    top: 46px;
  }

  .ed-shell {
    width: min(calc(100% - 28px), var(--ed-content));
  }

  .ed-nav-wrap {
    min-height: 68px;
  }

  .ed-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .ed-header-cta {
    display: none;
  }

  .ed-primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    padding: 16px 14px 20px;
    border-bottom: 1px solid var(--ed-line);
    background: rgba(8, 11, 18, 0.98);
  }

  .ed-primary-nav.is-open {
    display: block;
  }

  .ed-menu,
  .ed-menu ul {
    display: block;
  }

  .ed-menu li + li {
    margin-top: 4px;
  }

  .ed-menu a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .ed-menu a:hover {
    background: rgba(255, 255, 255, 0.035);
  }

  .ed-hero {
    padding-top: 78px;
  }

  .ed-hero h1 {
    font-size: clamp(46px, 16vw, 74px);
  }

  .ed-hero::after {
    display: none;
  }

  .ed-signal-inner span:nth-child(n+3) {
    display: none;
  }

  .ed-section-heading,
  .ed-social-panel {
    display: block;
  }

  .ed-section-heading p,
  .ed-social-links {
    margin-top: 20px;
  }

  .ed-topic-grid,
  .ed-post-grid {
    grid-template-columns: 1fr;
  }

  .ed-featured {
    min-height: 0;
  }

  .ed-featured-media {
    min-height: 250px;
  }

  .ed-content-area {
    padding-top: 68px;
  }

  .ed-post-nav,
  .ed-footer-grid {
    grid-template-columns: 1fr;
  }

  .ed-footer-about {
    grid-column: auto;
  }

  .ed-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .ed-search-form {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .ed-brand-text {
    font-size: 17px;
  }

  .ed-hero-actions .ed-button {
    width: 100%;
  }

  .ed-terminal-metric {
    grid-template-columns: 1fr;
  }
}

/* EyeDecoded 1.1 landing-page additions. */
.ed-hero-main {
  min-width: 0;
}

.ed-hero-actions .ed-text-link {
  padding: 10px 0;
}

.ed-hero-proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 50px;
}

.ed-hero-proof > div {
  display: grid;
  grid-template-columns: auto 48px;
  column-gap: 7px;
  align-items: end;
}

.ed-hero-proof strong {
  font-family: var(--ed-mono);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.ed-hero-proof div span {
  color: var(--ed-muted);
  font-family: var(--ed-mono);
  font-size: 8px;
  line-height: 1.1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ed-hero-proof p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #7f8ca0;
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ed-hero-proof p i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ed-cyan);
}

.ed-terminal--image {
  display: flex;
  min-height: 560px;
  flex-direction: column;
}

.ed-hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 326px;
  object-fit: cover;
  border-bottom: 1px solid var(--ed-line);
  filter: saturate(.88) contrast(1.04);
}

.ed-terminal-readout {
  position: relative;
  z-index: 2;
  padding: 18px 24px 10px;
}

.ed-terminal-readout p {
  display: grid;
  grid-template-columns: 22px 1fr;
  margin: 0 0 8px;
  color: #aebac9;
  font-family: var(--ed-mono);
  font-size: 10px;
}

.ed-terminal-readout p span {
  color: #526176;
}

.ed-terminal-readout strong {
  color: var(--ed-cyan);
  font-weight: 500;
}

.ed-terminal-signal {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 3px;
  padding: 0 18px;
  margin-top: auto;
  border-top: 1px solid var(--ed-line);
  color: #8190a4;
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ed-terminal-signal span {
  margin-right: 14px;
}

.ed-terminal-signal i {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--ed-cyan);
  opacity: .9;
}

.ed-terminal-signal i:nth-of-type(5) {
  opacity: .22;
}

.ed-terminal-signal strong {
  margin-left: 14px;
  color: var(--ed-cyan);
  font-size: 10px;
}

.ed-signal-inner span::before {
  display: none;
}

.ed-signal-inner span {
  gap: 10px;
}

.ed-signal-inner span i {
  color: var(--ed-cyan);
  font-style: normal;
}

.ed-topic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ed-topic-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ed-topic-index i {
  font-style: normal;
}

.ed-featured--final {
  min-height: 550px;
}

.ed-featured--final .ed-featured-media {
  display: block;
  min-height: 420px;
}

.ed-feature-code {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  background-image:
    linear-gradient(rgba(66, 217, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 217, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--ed-cyan);
  font-family: var(--ed-mono);
}

.ed-feature-code p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 540px;
  padding: 18px;
  margin: 0;
  border: 1px solid var(--ed-line-strong);
  border-radius: 12px;
  background: rgba(6, 10, 17, .9);
  color: #dce5ef;
  font-size: 11px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
}

.ed-feature-code p span {
  color: var(--ed-cyan);
}

.ed-feature-code p i {
  width: 7px;
  height: 15px;
  background: var(--ed-cyan);
  animation: ed-cursor 1s steps(1) infinite;
}

.ed-feature-code strong,
.ed-feature-code small {
  display: block;
  margin: 20px 0 0 32px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.85;
}

.ed-feature-code small {
  margin-top: 12px;
  color: #526176;
}

@keyframes ed-cursor {
  50% { opacity: 0; }
}

.ed-featured--final .ed-featured-content h3 {
  font-size: clamp(36px, 4.4vw, 58px);
}

.ed-featured--final .ed-featured-content .ed-button {
  align-self: flex-start;
}

.ed-feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: #718096;
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ed-feature-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ed-cyan);
}

.ed-method {
  border-block: 1px solid var(--ed-line);
  background: linear-gradient(120deg, rgba(66, 217, 255, .055), transparent 44%), #0b101a;
}

.ed-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
  padding-block: clamp(84px, 11vw, 150px);
}

.ed-method-copy h2 {
  margin: 15px 0 25px;
  font-size: clamp(49px, 6.7vw, 92px);
  line-height: .91;
  letter-spacing: -.07em;
}

.ed-method-copy h2 span {
  color: var(--ed-cyan);
}

.ed-method-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--ed-muted);
  font-size: 16px;
  line-height: 1.75;
}

.ed-method-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ed-method-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  padding: 27px 0;
  border-bottom: 1px solid var(--ed-line);
}

.ed-method-list li:first-child {
  border-top: 1px solid var(--ed-line);
}

.ed-method-list li > span {
  color: var(--ed-cyan);
  font-family: var(--ed-mono);
  font-size: 10px;
}

.ed-method-list strong {
  font-size: 22px;
  letter-spacing: -.035em;
}

.ed-method-list p {
  margin: 6px 0 0;
  color: var(--ed-muted);
  font-size: 13px;
}

.ed-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ed-channel-card {
  position: relative;
  display: grid;
  min-height: 230px;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: linear-gradient(145deg, rgba(17, 24, 39, .94), rgba(10, 15, 25, .88));
  transition: transform 180ms ease, border-color 180ms ease;
}

.ed-channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--ed-line-strong);
}

.ed-channel-code {
  align-self: start;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ed-line-strong);
  border-radius: 11px;
  color: var(--ed-cyan);
  font-family: var(--ed-mono);
  font-size: 10px;
}

.ed-channel-card > div p {
  margin: 0 0 7px;
  color: var(--ed-cyan);
  font-family: var(--ed-mono);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ed-channel-card h3 {
  margin: 0 0 7px;
  font-size: 27px;
  letter-spacing: -.045em;
}

.ed-channel-card > div span {
  color: var(--ed-muted);
  font-size: 12px;
}

.ed-channel-action {
  align-self: start;
  color: var(--ed-cyan);
  font-size: 17px;
}

.ed-channel-action--disabled {
  opacity: .3;
}

.ed-final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding: clamp(42px, 6vw, 74px);
  margin-top: 10px;
  margin-bottom: 118px;
  border: 1px solid rgba(66, 217, 255, .27);
  border-radius: 23px;
  background: radial-gradient(circle at 90% 10%, rgba(77, 124, 255, .14), transparent 22rem), linear-gradient(135deg, rgba(66, 217, 255, .07), transparent 45%), var(--ed-panel);
}

.ed-final-cta h2 {
  max-width: 860px;
  margin: 14px 0 0;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -.06em;
}

.ed-final-cta .ed-button {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .ed-method-grid,
  .ed-final-cta {
    grid-template-columns: 1fr;
  }

  .ed-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ed-channel-card:last-child {
    grid-column: 1 / -1;
  }

  .ed-final-cta {
    align-items: start;
  }

  .ed-final-cta .ed-button {
    width: max-content;
  }
}

@media (max-width: 760px) {
  .ed-hero-proof {
    align-items: flex-start;
  }

  .ed-hero-proof > p {
    width: 100%;
  }

  .ed-terminal--image {
    min-height: 510px;
  }

  .ed-hero-image {
    height: 285px;
  }

  .ed-featured--final .ed-featured-media,
  .ed-feature-code {
    min-height: 330px;
  }

  .ed-feature-code {
    padding: 30px 20px;
  }

  .ed-feature-code strong,
  .ed-feature-code small {
    margin-left: 14px;
  }

  .ed-method-grid {
    gap: 55px;
  }

  .ed-channel-grid {
    grid-template-columns: 1fr;
  }

  .ed-channel-card:last-child {
    grid-column: auto;
  }

  .ed-final-cta {
    padding: 34px 26px;
    margin-bottom: 84px;
  }
}
