.ae-links {
  --ae-ink:#1a0e0a; --ae-copy:#3e2f28; --ae-muted:#7a6a5f; --ae-line:#eadfcd;
  --ae-cream:#f7efe2; --ae-cream-deep:#eee2cc; --ae-paper:#fffdf9;
  --ae-brand:#d8392b; --ae-brand-dark:#b92b20; --ae-good:#1f7a59; --ae-warn:#b56a16; --ae-bad:#c84438;
  width:100%; max-width:1120px; margin:32px auto 56px; color:var(--ae-ink); font-family:Inter,system-ui,-apple-system,sans-serif; line-height:1.55;
}
.ae-links *, .ae-links *::before, .ae-links *::after { box-sizing:border-box; }
.ae-links p { margin-top:0; }
.ae-links h2, .ae-links h3, .ae-links h4 { color:var(--ae-ink); font-family:Fraunces,Georgia,serif; }
.ae-links h2 { max-width:730px; margin:0 0 14px; font-size:clamp(34px,5vw,56px); font-weight:600; line-height:1.05; letter-spacing:-.025em; }
.ae-links h3 { margin:0; font-size:22px; font-weight:600; line-height:1.25; }
.ae-links h4 { margin:0; font-size:18px; font-weight:600; line-height:1.3; }

.ae-links__hero { position:relative; display:grid; grid-template-columns:minmax(0,1.55fr) minmax(285px,.75fr); gap:clamp(28px,6vw,70px); align-items:center; margin-bottom:28px; padding:clamp(24px,5vw,48px); overflow:hidden; border:1px solid var(--ae-line); border-radius:28px; background:radial-gradient(circle at 91% 10%,rgba(216,57,43,.14),transparent 28%),linear-gradient(135deg,#fffdf9 0%,var(--ae-cream) 100%); }
.ae-links__hero::after { content:""; position:absolute; right:-45px; bottom:-65px; width:210px; height:210px; border:1px solid rgba(216,57,43,.15); border-radius:50%; box-shadow:0 0 0 30px rgba(216,57,43,.04),0 0 0 62px rgba(216,57,43,.022); }
.ae-links__intro { position:relative; z-index:1; }
.ae-links__eyebrow { display:flex; align-items:center; gap:8px; margin:0 0 8px; color:var(--ae-brand); font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.ae-links__eyebrow > span { width:24px; height:2px; border-radius:999px; background:var(--ae-brand); }
.ae-links__intro > p:not(.ae-links__eyebrow) { max-width:690px; margin-bottom:18px; color:var(--ae-copy); font-size:17px; }
.ae-links__trust { display:flex; flex-wrap:wrap; gap:8px; }
.ae-links__trust span { display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border:1px solid rgba(26,14,10,.1); border-radius:999px; background:rgba(255,255,255,.65); color:var(--ae-copy); font-size:12px; font-weight:650; }
.ae-links__trust span::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--ae-brand); }

.ae-links__visual { position:relative; z-index:1; min-height:245px; border:1px solid rgba(216,57,43,.17); border-radius:24px; background:rgba(255,255,255,.72); box-shadow:0 18px 42px rgba(70,40,28,.08); transform:rotate(1deg); }
.ae-links__visual::before { content:"LINK MAP"; position:absolute; top:16px; left:18px; color:var(--ae-muted); font:700 10px/1 "JetBrains Mono",monospace; letter-spacing:.12em; }
.ae-links__node { position:absolute; z-index:2; display:grid; min-width:82px; min-height:39px; place-content:center; padding:8px 11px; border:1px solid var(--ae-line); border-radius:11px; background:var(--ae-paper); color:var(--ae-copy); box-shadow:0 8px 20px rgba(70,40,28,.08); font:700 10px/1.2 "JetBrains Mono",monospace; animation:ae-link-float 3.4s ease-in-out infinite; }
.ae-links__node--source { left:50%; top:50%; min-width:120px; min-height:68px; transform:translate(-50%,-38%); border-color:rgba(216,57,43,.28); background:var(--ae-ink); color:var(--ae-cream); text-align:center; animation-name:ae-link-float-source; }
.ae-links__node--source small { margin-top:5px; color:#cdbfaf; font:500 9px/1 Inter,sans-serif; }
.ae-links__node--one { top:47px; right:17px; animation-delay:-.7s; }
.ae-links__node--two { bottom:25px; right:22px; animation-delay:-1.45s; }
.ae-links__node--three { bottom:28px; left:15px; animation-delay:-2s; }
.ae-links__connector { position:absolute; z-index:1; height:1px; background:rgba(216,57,43,.37); transform-origin:left center; }
.ae-links__connector::after { content:""; position:absolute; right:-2px; top:-2px; width:5px; height:5px; border-radius:50%; background:var(--ae-brand); }
.ae-links__connector--one { width:82px; left:55%; top:43%; transform:rotate(-34deg); }
.ae-links__connector--two { width:78px; left:55%; top:59%; transform:rotate(30deg); }
.ae-links__connector--three { width:80px; left:27%; top:61%; transform:rotate(-20deg); }

.ae-links__form, .ae-output { overflow:hidden; border:1px solid var(--ae-line); border-radius:24px; background:var(--ae-paper); box-shadow:0 18px 50px rgba(70,40,28,.07); transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease; }
.ae-links__form:hover { border-color:#dfcfb6; box-shadow:0 24px 64px rgba(70,40,28,.1); }
.ae-section { padding:clamp(23px,4vw,38px); border-bottom:1px solid var(--ae-line); }
.ae-section__heading { display:flex; gap:13px; align-items:flex-start; margin-bottom:22px; }
.ae-section__heading > span { display:grid; flex:0 0 34px; height:34px; place-items:center; border-radius:50%; background:var(--ae-ink); color:var(--ae-cream); font:700 10px/1 "JetBrains Mono",monospace; }
.ae-section__heading h3 { font-size:21px; }
.ae-section__heading p { margin:3px 0 0; color:var(--ae-muted); font-size:13px; }
.ae-grid { display:grid; gap:19px; padding-left:47px; }
.ae-grid--2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ae-field { display:block; }
.ae-field--wide { grid-column:1/-1; }
.ae-field > span { display:block; margin-bottom:7px; color:var(--ae-copy); font-weight:700; }
.ae-field b { color:var(--ae-brand); }
.ae-field small, .ae-upload small { display:block; margin-top:7px; color:var(--ae-muted); font-size:12px; }
.ae-field small [data-ae-word-count] { display:inline-flex; padding:3px 7px; border-radius:999px; background:var(--ae-cream); color:var(--ae-copy); font-weight:750; }
.ae-links input, .ae-links select, .ae-links textarea { width:100%; border:1px solid #d8cab4; border-radius:13px; background:#fff; color:var(--ae-ink); font:inherit; outline:0; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.ae-links input, .ae-links select { min-height:52px; padding:10px 14px; }
.ae-links textarea { padding:14px; resize:vertical; }
.ae-links input:hover, .ae-links select:hover, .ae-links textarea:hover { border-color:#c7b69d; }
.ae-links input:focus, .ae-links select:focus, .ae-links textarea:focus { border-color:var(--ae-brand); box-shadow:0 0 0 4px rgba(216,57,43,.1); }
.ae-links input::placeholder, .ae-links textarea::placeholder { color:#aa9c91; }

.ae-import-grid { display:grid; grid-template-columns:1fr 1fr; gap:15px; padding-left:47px; }
.ae-upload, .ae-format-note { position:relative; min-height:160px; padding:21px; border:1px solid var(--ae-line); border-radius:15px; background:linear-gradient(145deg,#fff 0%,var(--ae-cream) 100%); }
.ae-upload { border-style:dashed; border-color:#d8bfae; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.ae-upload:hover { transform:translateY(-2px); border-color:var(--ae-brand); box-shadow:0 12px 25px rgba(70,40,28,.07); }
.ae-upload > i { display:grid; width:42px; height:42px; margin-bottom:12px; place-items:center; border-radius:11px; background:var(--ae-brand); color:#fff; font:800 10px/1 "JetBrains Mono",monospace; font-style:normal; box-shadow:0 8px 17px rgba(216,57,43,.2); }
.ae-upload > span { display:block; margin-bottom:8px; color:var(--ae-ink); font-family:Fraunces,Georgia,serif; font-size:19px; font-weight:600; }
.ae-upload input { min-height:auto; padding:8px; border-radius:9px; background:#fff; font-size:12px; }
.ae-format-note { display:grid; align-content:center; }
.ae-format-note::before { content:"01 / CSV FORMAT"; display:block; margin-bottom:10px; color:var(--ae-brand); font:800 10px/1 "JetBrains Mono",monospace; letter-spacing:.08em; }
.ae-format-note strong { font-family:Fraunces,Georgia,serif; font-size:19px; }
.ae-format-note p { margin:5px 0 0; color:var(--ae-muted); font-size:13px; }
.ae-field--inventory { margin:19px 0 0 47px; }
.ae-options { margin-top:19px; }
.ae-actions { display:flex; flex-wrap:wrap; gap:10px; padding:26px clamp(23px,4vw,38px) 28px 85px; background:linear-gradient(90deg,rgba(247,239,226,.7),rgba(255,253,249,.4)); }
.ae-button { min-height:48px; padding:10px 20px; border:1px solid transparent; border-radius:999px; font:inherit; font-weight:750; cursor:pointer; transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.ae-button:hover { transform:translateY(-2px); }
.ae-button:active { transform:translateY(0); }
.ae-button:focus-visible { outline:3px solid rgba(216,57,43,.22); outline-offset:3px; }
.ae-button--primary { display:inline-flex; align-items:center; gap:13px; background:var(--ae-brand); color:#fff; box-shadow:0 9px 22px rgba(216,57,43,.22); }
.ae-button--primary i { display:grid; width:24px; height:24px; place-items:center; border-radius:50%; background:rgba(255,255,255,.18); font-style:normal; transition:transform .18s ease; }
.ae-button--primary:hover { background:var(--ae-brand-dark); box-shadow:0 12px 28px rgba(216,57,43,.28); }
.ae-button--primary:hover i { transform:translateX(3px); }
.ae-button--secondary { border-color:var(--ae-line); background:var(--ae-cream); color:var(--ae-ink); }
.ae-button--secondary:hover { border-color:#d6c4a9; background:var(--ae-cream-deep); }
.ae-error { margin:20px 38px 0 85px; padding:12px 14px; border-left:4px solid var(--ae-bad); border-radius:8px; background:#fff1ee; color:#8f2922; }

.ae-output { position:relative; margin-top:24px; padding:clamp(23px,4vw,38px); }
.ae-output.is-visible { animation:ae-link-rise .48s cubic-bezier(.22,1,.36,1) both; }
.ae-output__heading { display:flex; justify-content:space-between; align-items:center; gap:18px; padding-bottom:22px; border-bottom:1px solid var(--ae-line); }
.ae-output__heading h3 { font-size:29px; }
.ae-output__actions { display:flex; flex-wrap:wrap; gap:8px; }
.ae-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:22px 0; }
.ae-summary__item { position:relative; min-height:92px; padding:17px; overflow:hidden; border:1px solid var(--ae-line); border-radius:14px; background:linear-gradient(145deg,#fff 0%,var(--ae-cream) 100%); transition:transform .18s ease,box-shadow .18s ease; }
.ae-summary__item::before { content:""; position:absolute; left:0; top:0; width:4px; height:100%; background:var(--ae-brand); opacity:.78; }
.ae-summary__item:hover { transform:translateY(-3px); box-shadow:0 12px 25px rgba(70,40,28,.08); }
.ae-summary__item strong { display:block; font-family:Fraunces,Georgia,serif; font-size:25px; line-height:1.1; }
.ae-summary__item span { color:var(--ae-muted); font-size:12px; }
.ae-opportunities { display:grid; gap:13px; }
.ae-opportunity { display:grid; grid-template-columns:96px 1fr; gap:18px; padding:19px; border:1px solid var(--ae-line); border-radius:15px; background:#fff; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.ae-opportunity:hover { transform:translateY(-3px); border-color:#d8c6aa; box-shadow:0 15px 30px rgba(70,40,28,.08); }
.ae-opportunity__score { --ae-score:0%; --ae-score-color:var(--ae-brand); position:relative; display:grid; align-content:center; justify-items:center; width:86px; height:86px; border-radius:50%; background:conic-gradient(var(--ae-score-color) var(--ae-score),var(--ae-cream-deep) 0); color:var(--ae-score-color); box-shadow:0 9px 22px rgba(70,40,28,.1); }
.ae-opportunity__score::before { content:""; position:absolute; inset:8px; border-radius:50%; background:#fff; box-shadow:inset 0 0 0 1px rgba(26,14,10,.04); }
.ae-opportunity__score strong, .ae-opportunity__score span { position:relative; z-index:1; }
.ae-opportunity__score strong { font-family:Fraunces,Georgia,serif; font-size:28px; line-height:1; }
.ae-opportunity__score span { color:var(--ae-muted); font-size:9px; letter-spacing:.04em; text-transform:uppercase; }
.ae-opportunity__heading { display:flex; justify-content:space-between; gap:12px; }
.ae-opportunity__heading h4 { margin:0 0 2px; font-size:19px; }
.ae-opportunity__heading a { color:var(--ae-brand); font-size:12px; overflow-wrap:anywhere; text-decoration:none; }
.ae-opportunity__heading a:hover { text-decoration:underline; }
.ae-badge { display:inline-flex; flex:none; height:27px; align-items:center; padding:4px 9px; border-radius:999px; background:#edf8f3; color:#116447; font-size:10px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.ae-badge--warn { background:#fff3df; color:#805000; }
.ae-opportunity dl { display:grid; grid-template-columns:132px 1fr; gap:8px 11px; margin:14px 0 0; }
.ae-opportunity dt { color:var(--ae-ink); font-size:13px; font-weight:750; }
.ae-opportunity dd { margin:0; color:var(--ae-copy); font-size:13px; overflow-wrap:anywhere; }
.ae-placement { padding:10px 12px; border-left:3px solid var(--ae-brand); border-radius:0 8px 8px 0; background:var(--ae-cream); font-style:italic; }
.ae-empty { padding:28px; border:1px dashed #d8c6aa; border-radius:13px; background:var(--ae-cream); color:var(--ae-muted); text-align:center; }
.ae-method { margin-top:18px; padding:17px 18px; border:1px solid #ead3ad; border-left:4px solid var(--ae-warn); border-radius:10px; background:#fff7e9; }
.ae-method strong { font-family:Fraunces,Georgia,serif; font-size:18px; }
.ae-method p { margin:4px 0 0; color:#674614; font-size:13px; }

@keyframes ae-link-rise { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes ae-link-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }
@keyframes ae-link-float-source { 0%,100% { transform:translate(-50%,-38%); } 50% { transform:translate(-50%,calc(-38% - 5px)); } }
@media(max-width:860px) { .ae-links__hero { grid-template-columns:1fr; } .ae-links__visual { display:none; } }
@media(max-width:760px) {
  .ae-grid--2, .ae-import-grid { grid-template-columns:1fr; }
  .ae-field--wide { grid-column:auto; }
  .ae-output__heading { align-items:flex-start; flex-direction:column; }
  .ae-output__actions, .ae-output__actions .ae-button { width:100%; }
  .ae-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:540px) {
  .ae-links { margin-top:18px; }
  .ae-links__hero, .ae-links__form, .ae-output { border-radius:18px; }
  .ae-grid, .ae-import-grid { padding-left:0; }
  .ae-field--inventory { margin-left:0; }
  .ae-actions { padding-left:clamp(23px,4vw,38px); }
  .ae-actions .ae-button { justify-content:center; width:100%; }
  .ae-error { margin-right:23px; margin-left:23px; }
  .ae-opportunity { grid-template-columns:1fr; }
  .ae-opportunity__score { width:86px; }
  .ae-opportunity__heading { align-items:flex-start; flex-direction:column; }
  .ae-opportunity dl { grid-template-columns:1fr; gap:2px; }
  .ae-opportunity dd { margin-bottom:8px; }
}
@media(prefers-reduced-motion:reduce) { .ae-button,.ae-links input,.ae-links select,.ae-links textarea,.ae-links__form,.ae-upload,.ae-summary__item,.ae-opportunity { transition:none; } .ae-links__node,.ae-output.is-visible { animation:none; } }
