.ai-humanizer-page {
    --ah-bg: #06070b;
    --ah-panel: #10141d;
    --ah-line: rgba(151, 164, 190, .16);
    --ah-line-strong: rgba(132, 151, 211, .28);
    --ah-text: #f5f7ff;
    --ah-muted: #929aae;
    min-height: 100vh;
    overflow: hidden;
    background: var(--ah-bg);
    color: var(--ah-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ai-humanizer-page *, .ai-humanizer-page *::before, .ai-humanizer-page *::after { box-sizing: border-box; }
.ai-humanizer-page button, .ai-humanizer-page textarea { font: inherit; }
.ai-humanizer-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.ai-humanizer-hero {
    position: relative;
    overflow: hidden;
    padding: 116px 0 34px;
    background: radial-gradient(circle at 18% 15%, rgba(80,108,236,.18), transparent 27%), radial-gradient(circle at 82% 22%, rgba(155,73,220,.15), transparent 26%), #06070b;
    text-align: center;
}
.ai-humanizer-hero::after {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
    content: "";
    mask-image: linear-gradient(to bottom, #000, transparent 88%);
    pointer-events: none;
}
.ai-humanizer-hero .ai-humanizer-shell { position: relative; z-index: 1; }
.ai-humanizer-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(100deg, #7a99ff 7%, #9b72f2 52%, #e15cba 92%);
    background-clip: text;
    color: transparent;
    font-size: clamp(42px, 5.2vw, 66px);
    font-weight: 760;
    letter-spacing: -.05em;
    line-height: 1.08;
}
.ai-humanizer-hero p { max-width: 720px; margin: 19px auto 0; color: #a5adbf; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.7; }

.ai-humanizer-workspace { position: relative; padding: 10px 0 92px; background: var(--ah-bg); }
.ai-humanizer-card { overflow: hidden; border: 1px solid var(--ah-line-strong); border-radius: 22px; background: var(--ah-panel); box-shadow: 0 28px 80px rgba(0,0,0,.42); }
.ai-humanizer-editors { display: grid; grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr); min-height: 340px; }
.ai-humanizer-editor { display: flex; min-width: 0; flex-direction: column; padding: 22px 22px 14px; }
.ai-humanizer-editor--output { background: rgba(8,11,17,.38); }
.ai-humanizer-editor header { display: flex; min-height: 34px; margin-bottom: 13px; align-items: center; justify-content: space-between; gap: 16px; }
.ai-humanizer-editor header > div { display: flex; align-items: center; gap: 10px; }
.ai-humanizer-editor__step { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #cbd5ff; background: rgba(97,124,255,.16); font-size: 12px; font-weight: 800; }
.ai-humanizer-editor h2 { margin: 0; color: #f5f7ff; font-size: 15px; font-weight: 750; }
.ai-humanizer-text-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border: 0; color: #8e97ab; background: transparent; font-size: 13px; font-weight: 650; cursor: pointer; }
.ai-humanizer-text-button:hover:not(:disabled) { color: #b8c6ff; }
.ai-humanizer-text-button:disabled { opacity: .36; cursor: not-allowed; }
.ai-humanizer-text-button svg { width: 16px; height: 16px; fill: currentColor; }
.ai-humanizer-editor textarea, .ai-humanizer-output {
    flex: 1;
    width: 100%;
    min-height: 250px;
    padding: 17px 18px;
    border: 1px solid rgba(151,164,190,.13);
    border-radius: 14px;
    outline: 0;
    background: #0b0f17;
    color: #e8ebf4;
    font: 400 16px/1.75 inherit;
    resize: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.ai-humanizer-editor textarea:focus, .ai-humanizer-output:focus { border-color: rgba(112,139,255,.62); background: #0d111b; box-shadow: 0 0 0 4px rgba(82,112,242,.1); }
.ai-humanizer-editor textarea::placeholder, .ai-humanizer-output:empty::before { color: #656e81; }
.ai-humanizer-output { overflow: auto; white-space: pre-wrap; }
.ai-humanizer-output:empty::before { content: attr(data-placeholder); }
.ai-humanizer-editor footer { display: flex; justify-content: flex-end; padding: 9px 2px 0; color: #697286; font-size: 12px; }
.ai-humanizer-editor-divider { position: relative; display: flex; align-items: center; justify-content: center; color: #9cadff; }
.ai-humanizer-editor-divider::before { width: 1px; height: 100%; background: var(--ah-line); content: ""; }
.ai-humanizer-editor-divider span { position: absolute; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--ah-line-strong); border-radius: 50%; background: #121827; font-size: 16px; }

.ai-humanizer-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 22px; padding: 13px 0 16px; border-top: 1px solid var(--ah-line); color: #747d91; font-size: 12px; }
.ai-humanizer-examples > span { margin-right: 2px; font-weight: 700; }
.ai-humanizer-examples button { padding: 6px 11px; border: 1px solid rgba(151,164,190,.17); border-radius: 999px; color: #a6aec0; background: rgba(255,255,255,.025); font-size: 12px; cursor: pointer; }
.ai-humanizer-examples button:hover { border-color: rgba(121,147,255,.55); color: #d6deff; background: rgba(98,124,255,.08); }
.ai-humanizer-notice { margin: 0 22px 16px; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.ai-humanizer-notice--progress { color: #c8d2ff; background: rgba(85,113,234,.14); }
.ai-humanizer-notice--error { color: #ffb7c1; background: rgba(190,57,79,.14); }
.ai-humanizer-actions { padding: 20px 22px 22px; border-top: 1px solid var(--ah-line); background: #0c1018; text-align: center; }
.ai-humanizer-submit { display: inline-flex; min-width: 290px; min-height: 54px; align-items: center; justify-content: center; gap: 9px; padding: 0 23px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(105deg, #5d79f5, #8a54e8); box-shadow: 0 14px 32px rgba(91,80,225,.26); font-size: 16px; font-weight: 780; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.ai-humanizer-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(91,80,225,.34); }
.ai-humanizer-submit:disabled { opacity: .68; cursor: wait; }
.ai-humanizer-submit small { padding-left: 9px; border-left: 1px solid rgba(255,255,255,.34); font-size: 12px; font-weight: 600; }
.ai-humanizer-submit.is-processing .ai-humanizer-submit__icon { animation: ai-humanizer-spin 1.3s linear infinite; }
.ai-humanizer-usage { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 13px; color: #7f889c; font-size: 12px; }
.ai-humanizer-usage span { display: inline-flex; align-items: center; gap: 6px; }
.ai-humanizer-usage i { color: #7892ff; font-style: normal; }
@keyframes ai-humanizer-spin { to { transform: rotate(360deg); } }

.ai-humanizer-benefits, .ai-humanizer-how, .ai-humanizer-faq { padding: 88px 0; border-top: 1px solid rgba(151,164,190,.1); }
.ai-humanizer-benefits, .ai-humanizer-faq { background: radial-gradient(circle at 75% 8%, rgba(72,91,174,.09), transparent 420px), #080a0f; }
.ai-humanizer-how { background: #06070b; }
.ai-humanizer-section-heading { max-width: 690px; margin: 0 auto 38px; text-align: center; }
.ai-humanizer-section-heading > span { color: #8198ff; font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ai-humanizer-section-heading h2 { margin: 9px 0 12px; color: #f3f5fb; font-size: clamp(29px,4vw,42px); letter-spacing: -.035em; line-height: 1.16; }
.ai-humanizer-section-heading p { margin: 0; color: var(--ah-muted); font-size: 16px; line-height: 1.7; }
.ai-humanizer-benefit-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.ai-humanizer-benefit-grid article, .ai-humanizer-steps li { border: 1px solid var(--ah-line); border-radius: 17px; background: #0e1119; }
.ai-humanizer-benefit-grid article { padding: 25px; }
.ai-humanizer-benefit-icon { display: grid; width: 42px; height: 42px; margin-bottom: 18px; place-items: center; border-radius: 12px; color: #aab8ff; background: rgba(95,121,241,.12); font-size: 19px; font-weight: 800; }
.ai-humanizer-benefit-grid h3, .ai-humanizer-steps h3 { margin: 0 0 9px; color: #eef1f8; font-size: 17px; }
.ai-humanizer-benefit-grid p, .ai-humanizer-steps p { margin: 0; color: #858ea1; font-size: 14px; line-height: 1.65; }
.ai-humanizer-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ai-humanizer-steps li { display: flex; gap: 15px; padding: 23px; }
.ai-humanizer-steps li > span { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #cbd5ff; background: rgba(95,121,241,.13); font-size: 13px; font-weight: 800; }
.ai-humanizer-faq__inner { max-width: 850px; }
.ai-humanizer-faq-list details { border-bottom: 1px solid var(--ah-line); }
.ai-humanizer-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 3px; color: #dfe3ed; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.ai-humanizer-faq-list summary::-webkit-details-marker { display: none; }
.ai-humanizer-faq-list summary span { color: #778dec; font-size: 24px; transition: transform .2s; }
.ai-humanizer-faq-list details[open] summary span { transform: rotate(45deg); }
.ai-humanizer-faq-list p { margin: -3px 0 20px; padding-right: 44px; color: var(--ah-muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 900px) {
    .ai-humanizer-editors { grid-template-columns: 1fr; }
    .ai-humanizer-editor-divider { height: 38px; }
    .ai-humanizer-editor-divider::before { width: 100%; height: 1px; }
    .ai-humanizer-editor-divider span { transform: rotate(90deg); }
    .ai-humanizer-editor textarea, .ai-humanizer-output { min-height: 240px; }
}
@media (max-width: 700px) {
    .ai-humanizer-shell { width: min(100% - 28px, 1160px); }
    .ai-humanizer-hero { padding: 86px 0 26px; }
    .ai-humanizer-hero h1 { font-size: clamp(36px,11vw,50px); }
    .ai-humanizer-hero p { margin-top: 15px; font-size: 15px; }
    .ai-humanizer-workspace { padding: 8px 0 62px; }
    .ai-humanizer-card { border-radius: 17px; }
    .ai-humanizer-editor { padding-right: 14px; padding-left: 14px; }
    .ai-humanizer-editor textarea, .ai-humanizer-output { min-height: 220px; padding: 14px; font-size: 15px; }
    .ai-humanizer-examples, .ai-humanizer-notice { margin-right: 14px; margin-left: 14px; }
    .ai-humanizer-actions { padding: 18px 14px 20px; }
    .ai-humanizer-submit { width: 100%; min-width: 0; }
    .ai-humanizer-usage { align-items: center; flex-direction: column; gap: 6px; }
    .ai-humanizer-benefits, .ai-humanizer-how, .ai-humanizer-faq { padding: 64px 0; }
    .ai-humanizer-benefit-grid, .ai-humanizer-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .ai-humanizer-page *, .ai-humanizer-page *::before, .ai-humanizer-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
