/*
 * HTMLRunner — Clean UI Design
 * Design system: Plus Jakarta Sans, soft blues, polished cards
 */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-font-smoothing:antialiased;scroll-behavior:smooth}
body{font-family:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:#f0f4f8;color:#1a2332;line-height:1.5;min-height:100vh}

/* ===== RESPONSIVE UTILITIES ===== */
.desktop-only{display:none}@media(min-width:640px){.desktop-only{display:inline}}
.mobile-only{display:inline}@media(min-width:640px){.mobile-only{display:none}}

/* ===== HEADER ===== */
.site-header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:100}
.header-inner{max-width:100%;margin:0 auto;padding:0 16px;display:flex;align-items:center;justify-content:space-between;height:64px;gap:12px}
@media(min-width:768px){.header-inner{padding:0 24px}}
.header-left{display:flex;align-items:center;gap:10px;flex-shrink:0;flex:1}
.header-logo{height:32px;width:auto;display:block}
.header-brand{font-weight:700;font-size:1.1rem;color:#1e3a5f;text-decoration:none}
.header-brand-group{display:flex;flex-direction:column;line-height:1.1}
.header-subtitle{font-size:0.75rem;color:#64748b}
.header-nav{display:flex;gap:4px;align-items:center;justify-content:center;flex:1}
@media(max-width:640px){.header-nav{gap:2px}}
.header-nav a{text-decoration:none;color:#64748b;font-weight:500;font-size:0.88rem;padding:6px 14px;border-radius:8px;transition:all .2s;white-space:nowrap}
@media(max-width:640px){.header-nav a{font-size:0.78rem;padding:4px 8px}}
.header-nav a:hover,.header-nav a.active{color:#1e3a5f;background:#f0f4f8}
.header-nav a.active{font-weight:700}
.header-actions{display:flex;gap:4px;align-items:center;justify-content:flex-end;flex:1}
.header-actions button{text-decoration:none;font-weight:500;font-size:0.85rem;padding:6px 10px;border-radius:8px;transition:all .2s;border:none;background:none;cursor:pointer;font-family:inherit;white-space:nowrap}
.header-actions .btn-run{background:#1e3a5f;color:#fff!important;font-weight:700;padding:8px 18px;border-radius:10px}
.header-actions .btn-run:hover{background:#2563eb!important}
.header-actions .btn-outline{color:#1e3a5f!important;border:1px solid #e2e8f0;padding:7px 12px}
.header-actions .btn-outline:hover{background:#f0f4f8;border-color:#cbd5e1}
.header-actions .btn-ghost:hover{color:#ef4444!important;background:#fef2f2}
.header-line{height:3px;background:linear-gradient(90deg,#1e3a5f,#2563eb,#60a5fa,#1e3a5f);background-size:300% 100%;animation:headerShimmer 6s ease infinite}
@keyframes headerShimmer{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}

/* ===== APP LAYOUT ===== */
.app-main{flex:1;padding:20px 24px 32px;max-width:100%;margin:0 auto;width:100%}
.editor-row{display:flex;flex-direction:column;gap:24px;min-height:calc(85vh - 80px)}
@media(min-width:1024px){.editor-row{flex-direction:row}.editor-row>*{flex:1;min-width:0}}

/* ===== EDITOR PANEL ===== */
.editor-panel{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;box-shadow:0 4px 6px -1px rgba(0,0,0,.04);height:520px}
@media(min-width:1024px){.editor-panel{height:auto}}
.editor-tabs{display:flex;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-shrink:0}
.editor-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 12px;font-size:0.85rem;font-weight:600;cursor:pointer;border:none;background:transparent;color:#94a3b8;transition:all .2s;font-family:inherit;position:relative;border-bottom:2px solid transparent}
.editor-tab:hover{color:#1e3a5f;background:#fff}
.editor-tab.active{color:#1e3a5f;background:#fff;border-bottom-color:#2563eb}
.editor-tab svg{width:18px;height:18px;flex-shrink:0}
.editor-tab-label{display:block}
@media(max-width:480px){.editor-tab-label{display:none}}

.editor-body{flex:1;position:relative;overflow:hidden;display:flex}
.editor-container{display:none;flex:1;position:relative}
.editor-container.active{display:flex}
.editor-lines{flex:none;width:48px;background:#f8fafc;border-right:1px solid #e2e8f0;padding:16px 10px 16px 12px;text-align:right;color:#94a3b8;font-family:'JetBrains Mono',monospace;font-size:13px;line-height:1.6;overflow:hidden;user-select:none}
.editor-lines span{display:block}
.editor-input-wrap{flex:1;position:relative;overflow:hidden}
.editor-input-wrap textarea,.editor-input-wrap .editor-highlight{position:absolute;inset:0;width:100%;height:100%;padding:16px;font-family:'JetBrains Mono',monospace;font-size:13px;line-height:1.6;border:none;outline:none;resize:none;white-space:pre;overflow:auto;tab-size:2}
.editor-input-wrap textarea{z-index:2;background:transparent;color:transparent;caret-color:#1a2332;-webkit-text-fill-color:transparent}
.editor-input-wrap textarea::selection{background:#93c5fd;color:transparent;-webkit-text-fill-color:transparent}
.editor-input-wrap .editor-highlight{z-index:1;pointer-events:none;color:#1a2332;white-space:pre}
.editor-paste-btn{position:absolute;bottom:20px;right:20px;background:#1e3a5f;color:#fff;width:44px;height:44px;border-radius:50%;border:none;cursor:pointer;opacity:0;transition:all .3s;box-shadow:0 4px 12px rgba(30,58,95,.2);z-index:5;display:flex;align-items:center;justify-content:center;font-size:1.2rem}
.editor-panel:hover .editor-paste-btn{opacity:1}
.editor-paste-btn:hover{background:#2563eb;transform:scale(1.05)}

/* ===== SYNTAX TOKENS ===== */
.editor-highlight .hl-c{color:#6a9955;font-style:italic}
.editor-highlight .hl-k{color:#569cd6}
.editor-highlight .hl-s{color:#ce9178}
.editor-highlight .hl-n{color:#b5cea8}
.editor-highlight .hl-f{color:#dcdcaa}
.editor-highlight .hl-t{color:#569cd6}
.editor-highlight .hl-a{color:#9cdcfe}
.editor-highlight .hl-v{color:#ce9178}
.editor-highlight .hl-p{color:#d4d4d4}
.editor-highlight .hl-e{color:#d7ba7d}
.editor-highlight .hl-r{color:#9cdcfe}
.editor-highlight .hl-b{color:#569cd6}

/* ===== PREVIEW PANEL ===== */
.preview-panel{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;box-shadow:0 4px 6px -1px rgba(0,0,0,.04);height:420px}
@media(min-width:1024px){.preview-panel{height:auto}}
.preview-bar{background:#f8fafc;padding:12px 16px;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;gap:12px;flex-shrink:0}
.preview-dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.preview-dot.d1{background:#ef4444}
.preview-dot.d2{background:#eab308}
.preview-dot.d3{background:#22c55e}
.preview-label{font-size:0.72rem;color:#94a3b8;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-left:4px}
.preview-body{flex:1;position:relative;overflow:hidden;background:#fff}
.preview-body iframe{width:100%;height:100%;border:none;display:block}
.preview-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.85);z-index:10;flex-direction:column;gap:12px;transition:opacity .3s}
.preview-loading .spinner{width:28px;height:28px;border:3px solid #e2e8f0;border-top-color:#2563eb;border-radius:50%;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.preview-loading span{font-size:0.82rem;color:#2563eb;font-weight:600}
.preview-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#94a3b8;gap:12px}
.preview-empty .icon{font-size:3rem;opacity:.4}
.preview-empty p{font-size:0.9rem;font-weight:500}

/* ===== BUTTONS ===== */
.btn{display:inline-flex;align-items:center;gap:8px;padding:12px 28px;border:none;border-radius:12px;font-family:inherit;font-weight:700;font-size:0.92rem;cursor:pointer;text-decoration:none;transition:all .3s;background:linear-gradient(135deg,#1e3a5f,#2563eb);color:#fff}
.btn:hover{transform:translateY(-2px);box-shadow:0 10px 25px -5px rgba(37,99,235,.4)}
.btn-sm{padding:8px 20px;font-size:0.85rem;border-radius:10px}

/* ===== SECTION ===== */
.section{padding:80px 0;max-width:1100px;margin:0 auto}
.section-header{text-align:center;max-width:680px;margin:0 auto 56px}
.section-header .pill{display:inline-flex;align-items:center;gap:6px;padding:6px 16px;border-radius:999px;background:#e2e8f0;color:#1e3a5f;font-size:0.78rem;font-weight:700;margin-bottom:16px;letter-spacing:.02em}
.section-header h2{font-size:2.4rem;font-weight:800;color:#1a2332;margin-bottom:12px;line-height:1.15}
@media(max-width:640px){.section-header h2{font-size:1.8rem}}
.section-header p{font-size:1rem;color:#475569;line-height:1.7}
.section-header h2 .gradient{background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 50%,#60a5fa 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* ===== FEATURES ===== */
.features-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:768px){.features-grid{grid-template-columns:repeat(3,1fr)}}
.feat-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:36px 28px;transition:all .4s cubic-bezier(.16,1,.3,1);box-shadow:0 4px 6px -1px rgba(0,0,0,.02)}
.feat-card:hover{transform:translateY(-6px);border-color:#93c5fd;box-shadow:0 20px 25px -5px rgba(37,99,235,.08)}
.feat-icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:16px;font-size:1.5rem;margin-bottom:24px;color:#2563eb;background:linear-gradient(135deg,rgba(37,99,235,.1),rgba(96,165,250,.1))}
.feat-icon.purple{color:#7c3aed;background:linear-gradient(135deg,rgba(124,58,237,.1),rgba(167,139,250,.1))}
.feat-icon.green{color:#059669;background:linear-gradient(135deg,rgba(5,150,105,.1),rgba(52,211,153,.1))}
.feat-card h3{font-size:1.2rem;font-weight:700;color:#0f172a;margin-bottom:10px}
.feat-card p{font-size:0.9rem;color:#475569;line-height:1.7}

/* ===== TRUST ===== */
.trust-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;max-width:900px;margin:0 auto;padding:0}
@media(min-width:768px){.trust-grid{grid-template-columns:repeat(4,1fr)}}
.trust-card{text-align:center;padding:28px 16px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;transition:all .3s}
.trust-card:hover{border-color:#93c5fd;box-shadow:0 10px 15px -3px rgba(37,99,235,.06)}
.trust-card .num{font-size:1.3rem;font-weight:800;color:#2563eb;margin-bottom:6px}
.trust-card .label{font-size:0.82rem;color:#64748b;font-weight:500;line-height:1.4}

/* ===== TOOLS GRID ===== */
.tools-grid{display:grid;grid-template-columns:1fr;gap:20px}
@media(min-width:640px){.tools-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:400px){.tools-grid{gap:14px}}
.tools-grid-sm{max-width:700px;margin:0 auto}
.tool-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:28px 24px;transition:all .4s cubic-bezier(.16,1,.3,1);display:flex;flex-direction:column}
.tool-card:hover{transform:translateY(-6px);border-color:#93c5fd;box-shadow:0 20px 25px -5px rgba(37,99,235,.08)}
.tool-card-icon{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;margin-bottom:20px}
.tool-card h3{font-size:1.1rem;font-weight:700;color:#0f172a;margin-bottom:8px}
.tool-card h3 a{color:inherit;text-decoration:none}
.tool-card h3 a:hover{color:#2563eb}
.tool-card p{font-size:0.88rem;color:#475569;line-height:1.6;flex:1;margin-bottom:20px}
.tool-card .btn{margin-top:auto;align-self:flex-start}

/* ===== SEO CONTENT ===== */
.seo-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:48px 40px;position:relative;overflow:hidden}
@media(max-width:640px){.seo-wrap{padding:28px 20px}}
.seo-wrap .bg-code{position:absolute;top:0;right:0;padding:40px;opacity:.03;pointer-events:none;font-size:14rem;color:#2563eb;line-height:1;font-weight:800;font-family:monospace}
.seo-grid{display:grid;grid-template-columns:1fr;gap:40px;position:relative;z-index:1}
@media(min-width:768px){.seo-grid{grid-template-columns:repeat(2,1fr);gap:48px 60px}}
.seo-item{display:flex;gap:16px}
.seo-item-icon{width:48px;height:48px;border-radius:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:1.3rem}
.seo-item h3{font-size:1.08rem;font-weight:700;color:#0f172a;margin-bottom:6px;line-height:1.3}
.seo-item p{font-size:0.9rem;color:#475569;line-height:1.7}
.tag-bar{display:flex;flex-wrap:wrap;gap:8px;margin-top:32px;padding-top:24px;border-top:1px solid #f1f5f9}
.tag-bar span{padding:5px 14px;background:#f8fafc;color:#475569;font-size:0.8rem;font-weight:600;border-radius:8px;border:1px solid #e2e8f0;transition:all .2s}
.tag-bar span:hover{border-color:#93c5fd;color:#2563eb}

/* ===== FAQ ===== */
.faq-wrap{max-width:720px;margin:0 auto}
.faq-box{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:8px 28px}
.faq-item{border-bottom:1px solid #f1f5f9}
.faq-item:last-child{border-bottom:none}
.faq-btn{width:100%;display:flex;justify-content:space-between;align-items:center;padding:20px 0;background:none;border:none;font-family:inherit;font-size:1rem;font-weight:600;color:#0f172a;cursor:pointer;text-align:left;gap:16px}
.faq-btn:hover{color:#2563eb}
.faq-btn .arrow{font-size:0.8rem;color:#94a3b8;transition:transform .3s;flex-shrink:0}
.faq-btn.open .arrow{transform:rotate(180deg);color:#2563eb}
.faq-answer{overflow:hidden;max-height:0;transition:max-height .35s ease,padding .35s ease;padding:0}
.faq-answer.open{max-height:300px;padding-bottom:20px}
.faq-answer p{font-size:0.92rem;color:#475569;line-height:1.7}

/* ===== AD BANNER ===== */
.ad-wrap{max-width:728px;margin:0 auto 24px}
.ad-wrap a{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px;padding:16px 24px;min-height:90px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;text-decoration:none;transition:all .3s}
.ad-wrap a:hover{border-color:#93c5fd;box-shadow:0 8px 16px rgba(37,99,235,.06);transform:translateY(-2px)}
.ad-badge{display:inline-flex;align-items:center;gap:4px;background:#2563eb;color:#fff;font-size:0.62rem;font-weight:800;padding:3px 8px;border-radius:4px;text-transform:uppercase;letter-spacing:.04em;vertical-align:middle}
.ad-title{font-size:1rem;font-weight:700;color:#1e293b}
.ad-desc{font-size:0.78rem;color:#64748b}
.ad-cta{background:#2563eb;color:#fff;padding:10px 22px;border-radius:10px;font-weight:700;font-size:0.85rem;display:flex;align-items:center;gap:8px;transition:all .2s;white-space:nowrap}
.ad-wrap a:hover .ad-cta{background:#1d4ed8;transform:scale(1.03)}

/* ===== NEWSLETTER MODAL ===== */
.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:200;display:none;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(4px)}
.modal-box{background:#fff;border-radius:24px;max-width:420px;width:100%;padding:40px 32px 32px;position:relative;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);animation:modalIn .3s ease}
@keyframes modalIn{from{opacity:0;transform:scale(.92) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}
.modal-close{position:absolute;top:16px;right:16px;background:none;border:none;cursor:pointer;font-size:1.4rem;color:#94a3b8;padding:4px;line-height:1;border-radius:8px;transition:all .2s}
.modal-close:hover{color:#1a2332;background:#f1f5f9}
.modal-icon-wrap{width:56px;height:56px;background:#e2e8f0;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:1.4rem;color:#2563eb}
.modal-box h2{text-align:center;font-size:1.5rem;font-weight:800;color:#0f172a;margin-bottom:6px}
.modal-box .modal-sub{text-align:center;color:#64748b;font-size:0.9rem;margin-bottom:24px}
.modal-form{display:flex;flex-direction:column;gap:14px}
.modal-form input{width:100%;padding:14px 18px;border:1px solid #e2e8f0;border-radius:12px;font-size:0.92rem;font-family:inherit;outline:none;transition:all .2s;background:#f8fafc}
.modal-form input:focus{border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.modal-form button[type="submit"]{width:100%;padding:14px;border:none;border-radius:12px;background:linear-gradient(135deg,#1e3a5f,#2563eb);color:#fff;font-weight:700;font-size:0.92rem;cursor:pointer;font-family:inherit;transition:all .2s}
.modal-form button[type="submit"]:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(37,99,235,.3)}
.modal-form button[type="submit"]:disabled{opacity:.5;cursor:not-allowed;transform:none}
.modal-error{display:none;align-items:center;gap:8px;padding:12px 16px;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;color:#dc2626;font-size:0.85rem;font-weight:500}
.modal-success{text-align:center;padding:20px 0}
.modal-success .check{width:64px;height:64px;background:#dcfce7;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:2rem;color:#16a34a}
.modal-success h3{font-size:1.4rem;font-weight:800;color:#0f172a;margin-bottom:6px}
.modal-skip{display:block;text-align:center;color:#94a3b8;font-size:0.85rem;cursor:pointer;background:none;border:none;font-family:inherit;font-weight:500}
.modal-skip:hover{color:#475569}
.modal-privacy{text-align:center;color:#cbd5e1;font-size:0.75rem;margin-top:16px}

/* ===== CTA ===== */
.cta-block{background:radial-gradient(circle at top left,#1e293b,#0f172a);padding:72px 24px;border-radius:28px;text-align:center;max-width:900px;margin:0 auto 60px}
.cta-block h2{font-size:2rem;font-weight:800;color:#fff;margin-bottom:12px}
.cta-block p{color:#94a3b8;max-width:460px;margin:0 auto 28px;font-size:1rem;line-height:1.7}
.cta-block .btn{background:linear-gradient(135deg,#2563eb,#3b82f6);box-shadow:0 10px 25px -5px rgba(37,99,235,.4)}

/* ===== FOOTER ===== */
.site-footer{background:#fff;padding:80px 24px 32px;border-top:1px solid #e2e8f0}
.footer-inner{max-width:1100px;margin:0 auto}
.footer-grid{display:grid;grid-template-columns:1fr;gap:48px;padding-bottom:48px;border-bottom:1px solid #f1f5f9}
@media(min-width:768px){.footer-grid{grid-template-columns:2fr 1fr 1fr}}
.footer-brand .brand-top{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.footer-brand img{height:36px}
.footer-brand .brand-name{font-size:1.2rem;font-weight:800;color:#0f172a}
.footer-brand p{color:#64748b;font-size:0.88rem;line-height:1.7;max-width:320px}
.footer-social{display:flex;gap:12px;margin-top:20px}
.footer-social a{width:40px;height:40px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;color:#64748b;text-decoration:none;transition:all .2s;font-size:1rem;font-weight:700}
.footer-social a:hover{background:#2563eb;color:#fff}
.footer-col h4{font-size:0.72rem;font-weight:800;color:#0f172a;margin-bottom:20px;text-transform:uppercase;letter-spacing:.08em}
.footer-col a{display:block;color:#64748b;text-decoration:none;font-size:0.88rem;margin-bottom:12px;font-weight:500;transition:color .2s}
.footer-col a:hover{color:#2563eb}
.footer-bottom{display:flex;flex-direction:column;gap:8px;padding-top:24px;font-size:0.82rem;color:#94a3b8;font-weight:500}
@media(min-width:640px){.footer-bottom{flex-direction:row;justify-content:space-between}}

/* ===== PAGES (about, contact, tools) ===== */
.page-hero{text-align:center;padding:80px 24px 48px;max-width:780px;margin:0 auto}
.page-hero h1{font-size:2.8rem;font-weight:800;line-height:1.2;margin-bottom:16px;color:#1a2332}
.page-hero h1 span{background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 50%,#60a5fa 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.page-hero p{font-size:1.05rem;color:#475569;max-width:580px;margin:0 auto 24px;line-height:1.7}
.page-wrap{max-width:780px;margin:0 auto;padding:0 24px 80px}

.content-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:40px 36px;margin-bottom:28px;box-shadow:0 4px 6px -1px rgba(0,0,0,.02)}
.content-card h2{font-size:1.6rem;font-weight:800;color:#0f172a;margin-bottom:16px;line-height:1.3}
.content-card h3{font-size:1.1rem;font-weight:700;color:#0f172a;margin-bottom:10px;margin-top:24px}
.content-card p{font-size:0.95rem;color:#475569;line-height:1.7;margin-bottom:14px}

.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px;margin:24px 0 8px}
.stat-card{background:#f8fafc;border-radius:14px;padding:24px 16px;text-align:center;border:1px solid #f1f5f9}
.stat-card .num{font-size:2rem;font-weight:800;color:#2563eb;line-height:1}
.stat-card .label{font-size:0.82rem;color:#64748b;margin-top:8px;font-weight:500}

.mission-list{list-style:none;margin:16px 0}
.mission-list li{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid #f1f5f9;font-size:0.95rem;color:#475569;line-height:1.6}
.mission-list li:last-child{border-bottom:none}
.mission-list .ico{font-size:1.3rem;flex-shrink:0;margin-top:2px}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr;gap:28px;margin-bottom:28px}
@media(min-width:768px){.contact-grid{grid-template-columns:1fr 1fr}}
.contact-info-item{display:flex;gap:14px;margin-bottom:20px}
.contact-info-item:last-child{margin-bottom:0}
.contact-info-item .ico{font-size:1.4rem;flex-shrink:0;margin-top:2px}
.contact-info-item .label{font-size:0.78rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.contact-info-item .value{font-size:0.95rem;color:#1a2332;line-height:1.5}
.contact-info-item .value a{color:#2563eb;text-decoration:none;font-weight:600}
.contact-info-item .value a:hover{text-decoration:underline}
.contact-form{display:flex;flex-direction:column;gap:16px}
.contact-form input,.contact-form textarea{padding:14px 18px;border-radius:10px;border:1px solid #e2e8f0;background:#f8fafc;font-size:0.95rem;font-family:inherit;outline:none;transition:border .2s}
.contact-form input:focus,.contact-form textarea:focus{border-color:#2563eb;background:#fff}
.contact-form button{align-self:flex-start}

/* Tools page */
.tools-page-grid{display:grid;grid-template-columns:1fr;gap:24px;max-width:900px;margin:0 auto;padding:0 24px 80px}
@media(min-width:640px){.tools-page-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}}
.tool-page-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:32px 28px;transition:all .4s cubic-bezier(.16,1,.3,1);position:relative;overflow:hidden;display:flex;flex-direction:column}
.tool-page-card:hover{transform:translateY(-6px);border-color:#93c5fd;box-shadow:0 20px 25px -5px rgba(37,99,235,.08)}
.tool-page-card .icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(37,99,235,.1),rgba(96,165,250,.1));border-radius:14px;font-size:1.6rem;margin-bottom:20px}
.tool-page-card h3{font-size:1.15rem;font-weight:700;color:#0f172a;margin-bottom:10px}
.tool-page-card p{font-size:0.88rem;color:#475569;line-height:1.6;flex:1;margin-bottom:20px}
.tool-page-card .tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.tool-page-card .tags span{display:inline-block;padding:4px 12px;border-radius:999px;font-size:0.72rem;font-weight:600;background:#e2e8f0;color:#1e3a5f;letter-spacing:.02em}
.tool-page-card .badge{position:absolute;top:20px;right:24px;font-size:0.68rem;font-weight:800;color:#94a3b8;background:#f1f5f9;padding:3px 10px;border-radius:99px;text-transform:uppercase;letter-spacing:.05em}
.tool-page-card .badge-new{color:#2563eb;background:#dbeafe}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px){
  .header-actions button{font-size:0.78rem;padding:5px 8px}
}
@media(max-width:768px){
  .header-subtitle{display:none}
  .header-brand{font-size:1rem}
}
@media(max-width:640px){
  .header-inner{padding:0 8px;height:52px;gap:6px}
  .header-left{flex:0 1 auto}
  .header-logo{height:26px}
  .header-brand{font-size:0.88rem}
  .header-subtitle{display:none}
  .header-nav a{font-size:0.72rem;padding:4px 6px}
  .header-actions{gap:2px}
  .header-actions button{font-size:0.72rem;padding:4px 6px}
  .header-actions .btn-run{padding:6px 12px;font-size:0.78rem}
  .app-main{padding:8px}
  .editor-row{min-height:auto}
  .editor-panel{height:300px;min-height:0}
  .preview-panel{height:260px;min-height:0}
  .page-hero h1{font-size:1.8rem}
  .page-hero{padding:48px 20px 32px}
  .section{padding:40px 0}
  .section-header h2{font-size:1.5rem}
  .seo-wrap{padding:24px 16px}
  .faq-box{padding:4px 16px}
  .content-card{padding:24px 20px}
  .cta-block{padding:48px 20px}
  .cta-block h2{font-size:1.5rem}
}
@media(max-width:400px){
  .header-actions .btn-outline span.desktop-only,.header-actions .btn-ghost span.desktop-only{display:none}
  .header-actions .btn-outline span.mobile-only,.header-actions .btn-ghost span.mobile-only{display:inline}
  .header-nav a{font-size:0.68rem;padding:3px 5px}
}
