/* ═══ Reset ═══ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --black:#111;
  --gray-900:#1a1a1a;
  --gray-800:#2a2a2a;
  --gray-700:#3a3a3a;
  --gray-600:#555;
  --gray-500:#777;
  --gray-400:#999;
  --gray-300:#c4c4c4;
  --gray-200:#e5e5e5;
  --gray-100:#f5f5f5;
  --gray-50:#fafafa;
  --white:#fff;
  --blue:#2563eb;
  --violet:#7c3aed;
  --green:#059669;
  --orange:#ea580c;
  --amber:#d97706;
  --pink:#db2777;
  --radius:10px;
  --radius-lg:16px;
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --shadow:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04);
  --shadow-md:0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:0 10px 40px rgba(0,0,0,.1);
}

html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{font-family:var(--font);color:var(--black);background:var(--white);line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer}
::selection{background:rgba(37,99,235,.15)}

.contain{max-width:1060px;margin:0 auto;padding:0 24px}

/* ═══ Typography ═══ */
.section-header{text-align:center;margin-bottom:56px}
.section-label{
  font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:1.5px;
  color:var(--gray-500);margin-bottom:10px;
}
.section-title{font-size:clamp(1.75rem,3.5vw,2.4rem);font-weight:800;line-height:1.15;letter-spacing:-.02em;margin-bottom:12px;color:var(--black)}
.section-desc{font-size:1.02rem;color:var(--gray-600);max-width:500px;margin:0 auto;line-height:1.65}

/* ═══ Buttons ═══ */
.btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:12px 24px;border-radius:var(--radius);font-size:.9rem;font-weight:600;
  border:none;transition:all .15s ease;cursor:pointer;
}
.btn-sm{padding:8px 18px;font-size:.84rem}
.btn-dark{background:var(--black);color:var(--white)}
.btn-dark:hover{background:var(--gray-800)}
.btn-outline{background:var(--white);color:var(--black);border:1px solid var(--gray-200)}
.btn-outline:hover{border-color:var(--gray-300);background:var(--gray-50)}

/* ═══ Animations ═══ */
.fade-up{opacity:0;transform:translateY(20px);transition:opacity .5s ease,transform .5s ease}
.fade-up.show{opacity:1;transform:translateY(0)}
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}

/* ═══ Nav ═══ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:rgba(255,255,255,.88);backdrop-filter:blur(12px);
  border-bottom:1px solid transparent;transition:border-color .2s;
}
.nav.scrolled{border-bottom-color:var(--gray-200)}
.nav-inner{
  max-width:1060px;margin:0 auto;padding:0 24px;
  display:flex;align-items:center;justify-content:space-between;height:56px;
}
.logo{display:flex;align-items:center;gap:7px;font-size:1.05rem;font-weight:700;color:var(--black);letter-spacing:-.01em}
.logo-mark{flex-shrink:0}
.nav-links{display:flex;gap:28px}
.nav-links a{font-size:.86rem;font-weight:500;color:var(--gray-600);transition:color .15s}
.nav-links a:hover{color:var(--black)}
.nav-actions{display:flex;align-items:center;gap:12px}
.nav-link-login{font-size:.86rem;font-weight:500;color:var(--gray-600);transition:color .15s}
.nav-link-login:hover{color:var(--black)}

.burger{display:none;background:none;border:none;width:22px;height:18px;position:relative}
.burger span{position:absolute;left:0;width:100%;height:1.5px;background:var(--black);border-radius:1px;transition:.25s}
.burger span:first-child{top:2px}
.burger span:last-child{bottom:2px}
.burger.open span:first-child{transform:rotate(45deg);top:8px}
.burger.open span:last-child{transform:rotate(-45deg);bottom:8px}

.mob-menu{
  display:none;position:fixed;top:56px;left:0;right:0;z-index:99;
  background:var(--white);border-bottom:1px solid var(--gray-200);
  padding:16px 24px;flex-direction:column;gap:10px;
}
.mob-menu.open{display:flex}
.mob-menu a{font-size:.92rem;font-weight:500;color:var(--gray-600);padding:6px 0}

/* ═══ Hero ═══ */
.hero{padding:128px 0 80px}
.hero-content{text-align:center;max-width:680px;margin:0 auto 56px}
.hero-h1{
  font-size:clamp(2rem,5vw,3.2rem);font-weight:800;line-height:1.1;
  letter-spacing:-.03em;margin-bottom:20px;color:var(--black);
}
.hero-sub{font-size:1.1rem;color:var(--gray-600);max-width:540px;margin:0 auto 32px;line-height:1.7}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.hero-credit{font-size:.82rem;color:var(--gray-500);margin-top:14px;text-align:center}

/* ═══ Product Preview ═══ */
.hero-preview{max-width:820px;margin:0 auto}
.preview-window{
  border:1px solid var(--gray-200);border-radius:var(--radius-lg);overflow:hidden;
  box-shadow:var(--shadow-lg);background:var(--white);
}
.preview-bar{
  display:flex;align-items:center;gap:12px;padding:10px 16px;
  background:var(--gray-50);border-bottom:1px solid var(--gray-200);
}
.preview-dots{display:flex;gap:5px}
.preview-dots span{width:8px;height:8px;border-radius:50%;background:var(--gray-300)}
.preview-dots span:first-child{background:#ff5f57}
.preview-dots span:nth-child(2){background:#febc2e}
.preview-dots span:last-child{background:#28c840}
.preview-title{font-size:.72rem;color:var(--gray-400);font-weight:500;margin-left:auto;margin-right:auto}
.preview-body{display:grid;grid-template-columns:1.3fr 1fr;min-height:280px}

/* Preview doc */
.preview-doc{padding:20px;border-right:1px solid var(--gray-200)}
.pdoc-header{font-size:.72rem;font-weight:500;color:var(--gray-400);margin-bottom:14px;padding-bottom:8px;border-bottom:1px solid var(--gray-100)}
.pdoc-content{display:flex;flex-direction:column;gap:6px}
.pdoc-line{height:7px;border-radius:4px;background:var(--gray-100)}
.pdoc-line.w80{width:80%}.pdoc-line.w55{width:55%}.pdoc-line.w90{width:90%}.pdoc-line.w70{width:70%}.pdoc-line.w60{width:60%}
.pdoc-spacer{height:8px}
.pdoc-table{border:1px solid var(--gray-200);border-radius:6px;overflow:hidden}
.pdoc-row{display:flex;border-bottom:1px solid var(--gray-100)}
.pdoc-row:last-child{border-bottom:none}
.pdoc-row span{flex:1;height:14px;border-right:1px solid var(--gray-100)}
.pdoc-row span:last-child{border-right:none}
.pdoc-row:first-child span{background:var(--gray-50);height:12px}
.pdoc-img-block{
  display:flex;align-items:center;justify-content:center;
  padding:16px;border:1px dashed var(--gray-200);border-radius:6px;color:var(--gray-300);
}

/* Real text in preview */
.pdoc-real-text{display:flex;flex-direction:column;gap:6px}
.pdoc-txt-head{font-size:.78rem;font-weight:700;color:var(--black)}
.pdoc-txt{font-size:.7rem;color:var(--gray-600);line-height:1.6}
.pdoc-txt.dim{font-size:.62rem;color:var(--gray-400);margin-top:4px}

.pdoc-img-label{font-size:.55rem;color:var(--gray-400);display:block;margin-bottom:4px}

.pdoc-img-thumb.img-blue{background:#eff6ff;color:#2563eb}
.pdoc-img-thumb.img-green{background:#ecfdf5;color:#059669}
.pdoc-img-thumb.img-violet{background:#f5f3ff;color:#7c3aed}
.pdoc-img-thumb.img-orange{background:#fff7ed;color:#ea580c}

/* Real table in preview */
.pdoc-real-table{overflow:hidden;border:1px solid var(--gray-200);border-radius:6px}
.pdoc-real-table table{width:100%;border-collapse:collapse;font-size:.65rem}
.pdoc-real-table th{background:var(--gray-50);padding:5px 8px;text-align:left;font-weight:600;color:var(--gray-600);border-bottom:1px solid var(--gray-200)}
.pdoc-real-table td{padding:5px 8px;border-bottom:1px solid var(--gray-100);color:var(--gray-600)}
.pdoc-real-table tr:last-child td{border-bottom:none}

/* Translate preview with real text */
.pdoc-translate-preview{display:flex;flex-direction:column;gap:4px}
.pdoc-tp-row{display:flex;align-items:center;gap:8px}
.pdoc-tp-label{font-size:.55rem;font-weight:700;color:var(--gray-400);width:18px;flex-shrink:0;text-transform:uppercase}
.pdoc-tp-text{font-size:.7rem;color:var(--gray-600)}
.pdoc-tp-row.translated{padding:4px 8px;background:#ecfdf5;border-radius:4px}
.pdoc-tp-row.translated .pdoc-tp-text{color:var(--green)}

/* Edit highlight in preview */
.pdoc-edit-hl{background:#fef3c7;padding:0 3px;border-radius:2px;color:var(--amber);font-weight:600}

/* Preview views */
.pdoc-view{display:none}
.pdoc-view.active{display:flex;animation:fadeView .3s ease}
@keyframes fadeView{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

.pdoc-img-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.pdoc-img-thumb{
  display:flex;align-items:center;justify-content:center;
  padding:20px;border:1px dashed var(--gray-200);border-radius:6px;color:var(--gray-300);
  background:var(--gray-50);aspect-ratio:4/3;
}

.pdoc-translate-pair{display:flex;flex-direction:column;gap:6px}
.pdoc-lang-label{font-size:.6rem;font-weight:700;color:var(--gray-400);text-transform:uppercase;letter-spacing:1px}
.pdoc-line.highlight-blue{background:#dbeafe}
.pdoc-line.highlight-green{background:#d1fae5}
.pdoc-line.highlight-amber{background:#fef3c7}

.pdoc-edit-toolbar{display:flex;gap:4px;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--gray-100)}
.pdoc-edit-toolbar span{
  width:22px;height:20px;display:flex;align-items:center;justify-content:center;
  border-radius:3px;font-size:.65rem;font-weight:700;color:var(--gray-400);background:var(--gray-50);
}

.pdoc-chat-bubble{
  padding:8px 12px;border-radius:10px;font-size:.7rem;line-height:1.5;
  max-width:85%;margin-bottom:8px;
}
.pdoc-chat-user{
  background:var(--black);color:var(--white);margin-left:auto;border-bottom-right-radius:3px;
}
.pdoc-chat-ai{
  background:var(--gray-100);color:var(--gray-700);border-bottom-left-radius:3px;
}

.psvc{cursor:pointer}

/* Preview services */
.preview-services{padding:12px;display:flex;flex-direction:column;gap:6px}
.psvc{
  display:flex;align-items:center;gap:8px;padding:10px 12px;
  border-radius:8px;border:1px solid var(--gray-100);
  font-size:.82rem;font-weight:500;color:var(--gray-600);
  transition:all .15s;position:relative;
}
.psvc:hover{border-color:var(--gray-200);background:var(--gray-50)}
.psvc.active{border-color:var(--black);background:var(--gray-50)}
.psvc.active .psvc-check{display:flex}
.psvc-icon{width:28px;height:28px;border-radius:6px;background:var(--gray-50);display:flex;align-items:center;justify-content:center;color:var(--gray-500);flex-shrink:0}
.psvc.active .psvc-icon{background:var(--black);color:var(--white)}
.psvc small{margin-left:auto;color:var(--gray-400);font-size:.72rem;font-weight:600}
.psvc-check{
  display:none;width:16px;height:16px;border-radius:50%;background:var(--green);
  color:var(--white);align-items:center;justify-content:center;flex-shrink:0;
}

/* ═══ Features ═══ */
.features{padding:100px 0;background:var(--gray-50)}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

.feature-card{
  padding:28px 24px;border-radius:var(--radius-lg);
  background:var(--white);border:1px solid var(--gray-200);
  transition:border-color .2s,box-shadow .2s;
}
.feature-card:hover{border-color:var(--gray-300);box-shadow:var(--shadow-md)}

.fc-icon{
  width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
}
.fc-blue{background:#eff6ff;color:var(--blue)}
.fc-violet{background:#f5f3ff;color:var(--violet)}
.fc-green{background:#ecfdf5;color:var(--green)}
.fc-orange{background:#fff7ed;color:var(--orange)}
.fc-amber{background:#fffbeb;color:var(--amber)}
.fc-pink{background:#fdf2f8;color:var(--pink)}

.fc-price{font-size:1.3rem;font-weight:800;margin-bottom:6px;color:var(--black)}
.fc-price small{font-size:.72rem;font-weight:500;color:var(--gray-500)}
.fc-free{color:var(--green)}
.feature-card h3{font-size:.95rem;font-weight:700;margin-bottom:6px;letter-spacing:-.01em}
.feature-card p{font-size:.86rem;color:var(--gray-600);line-height:1.6}

/* ═══ How it works ═══ */
.how{padding:100px 0}
.steps-wrap{max-width:560px;margin:0 auto}
.steps{display:flex;flex-direction:column;gap:0}
.step{display:flex;gap:20px;align-items:flex-start}
.step-num{
  width:36px;height:36px;border-radius:50%;background:var(--black);color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-size:.82rem;font-weight:700;flex-shrink:0;
}
.step-content h3{font-size:1rem;font-weight:700;margin-bottom:4px}
.step-content p{font-size:.88rem;color:var(--gray-600);line-height:1.6}
.step-line{width:1px;height:32px;background:var(--gray-200);margin-left:18px}

/* ═══ Showcase ═══ */
.showcase{padding:80px 0;background:var(--gray-50)}
.showcase-intro{text-align:center;margin-bottom:40px}
.showcase-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}

.showcase-card{
  padding:32px 28px;border-radius:var(--radius-lg);
  background:var(--white);border:1px solid var(--gray-200);
}
.sc-label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:1.5px;color:var(--gray-400);margin-bottom:10px}
.sc-title{font-size:1.3rem;font-weight:800;line-height:1.2;letter-spacing:-.02em;margin-bottom:10px}
.sc-desc{font-size:.86rem;color:var(--gray-600);line-height:1.65;margin-bottom:24px}

/* Editor demo */
.sc-editor{border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden}
.sc-toolbar{
  display:flex;gap:2px;padding:6px 10px;background:var(--gray-50);
  border-bottom:1px solid var(--gray-200);
}
.sc-tool{
  width:28px;height:26px;display:flex;align-items:center;justify-content:center;
  border-radius:4px;font-size:.75rem;font-weight:700;color:var(--gray-400);
  transition:all .1s;
}
.sc-tool.active{background:var(--gray-200);color:var(--black)}
.sc-sep{width:1px;height:20px;background:var(--gray-200);margin:3px 4px}
.sc-editor-body{padding:16px}
.sc-editable{font-size:.88rem;color:var(--gray-600);line-height:1.7}
.sc-highlight{
  background:#eff6ff;color:var(--blue);padding:1px 5px;border-radius:3px;
  border:1px solid #dbeafe;outline:none;cursor:text;transition:background .15s;
}
.sc-highlight:focus{background:#dbeafe;border-color:var(--blue)}
.sc-hint{font-size:.72rem;color:var(--gray-400);margin-top:12px;font-style:italic}

/* Translate demo */
.sc-translate{
  display:flex;align-items:center;gap:12px;padding:16px;
  background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius);
  margin-bottom:14px;
}
.sc-t-from,.sc-t-to{flex:1}
.sc-t-from small,.sc-t-to small{font-size:.65rem;color:var(--gray-400);text-transform:uppercase;letter-spacing:1px;display:block;margin-bottom:4px}
.sc-t-from p,.sc-t-to p{font-size:.88rem;font-weight:600}
.sc-t-to{
  padding:12px;background:var(--white);border:1px solid var(--gray-200);border-radius:8px;
  transition:opacity .3s,transform .3s;
}
.sc-t-arrow{color:var(--gray-300);font-size:1.2rem;font-weight:700;flex-shrink:0}

.sc-lang-btns{display:flex;gap:5px;flex-wrap:wrap}
.sc-lang{
  width:34px;height:28px;border-radius:6px;border:1px solid var(--gray-200);
  background:var(--white);color:var(--gray-500);font-size:.68rem;font-weight:700;
  transition:all .15s;
}
.sc-lang:hover{border-color:var(--gray-300)}
.sc-lang.active{background:var(--black);border-color:var(--black);color:var(--white)}

/* ═══ Pricing ═══ */
.pricing{padding:100px 0}

.pricing-card{
  max-width:560px;margin:0 auto;border:1px solid var(--gray-200);
  border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md);
  background:var(--white);
}
.pc-top{padding:28px 28px 0;text-align:center}
.pc-top h3{font-size:1.2rem;font-weight:800;margin-bottom:4px}
.pc-top p{font-size:.88rem;color:var(--gray-500)}

.pc-table{padding:20px 28px}
.pc-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 0;border-bottom:1px solid var(--gray-100);
  font-size:.88rem;
}
.pc-row:last-child{border-bottom:none}
.pc-row.pc-header{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:var(--gray-400)}
.pc-row.pc-header span{font-size:.72rem}
.pc-price{font-weight:700}
.pc-free{color:var(--green)}

.pc-calc{
  margin:0 28px;padding:24px;background:var(--gray-50);border:1px solid var(--gray-200);
  border-radius:var(--radius);
}
.pc-calc-header{display:flex;justify-content:space-between;font-size:.85rem;margin-bottom:12px}
.pc-page-count{font-weight:700}

.pc-slider{
  -webkit-appearance:none;width:100%;height:4px;border-radius:2px;
  background:var(--gray-200);outline:none;
}
.pc-slider::-webkit-slider-thumb{
  -webkit-appearance:none;width:18px;height:18px;border-radius:50%;
  background:var(--black);cursor:pointer;border:2px solid var(--white);
  box-shadow:0 1px 4px rgba(0,0,0,.2);
}
.pc-slider::-moz-range-thumb{
  width:18px;height:18px;border-radius:50%;background:var(--black);
  cursor:pointer;border:2px solid var(--white);
}
.pc-calc-range{display:flex;justify-content:space-between;font-size:.7rem;color:var(--gray-400);margin-top:4px;margin-bottom:16px}

.pc-calc-checks{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.pc-calc-checks label{
  display:flex;align-items:center;gap:8px;font-size:.84rem;color:var(--gray-600);
  cursor:pointer;
}
.pc-calc-checks input[type="checkbox"]{
  width:16px;height:16px;accent-color:var(--black);cursor:pointer;
}

.pc-calc-total{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;background:var(--white);border:1px solid var(--gray-200);
  border-radius:8px;
}
.pc-calc-total span:first-child{font-size:.85rem;color:var(--gray-500)}
.pc-total{font-size:1.6rem;font-weight:800;color:var(--black)}

.pc-bottom{padding:24px 28px;text-align:center}
.pc-note{font-size:.78rem;color:var(--gray-400);margin-top:8px}

/* ═══ CTA ═══ */
.cta{padding:60px 0 100px}
.cta-box{
  text-align:center;padding:56px 32px;border-radius:var(--radius-lg);
  background:var(--black);color:var(--white);
}
.cta-box h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:800;margin-bottom:12px;letter-spacing:-.02em}
.cta-box p{color:rgba(255,255,255,.6);margin-bottom:24px;font-size:.95rem}
.cta-box .btn-dark{background:var(--white);color:var(--black)}
.cta-box .btn-dark:hover{background:var(--gray-100)}

/* ═══ Footer ═══ */
.footer{padding:48px 0 28px;border-top:1px solid var(--gray-200)}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:32px;margin-bottom:32px}
.footer-brand .logo{margin-bottom:10px}
.footer-brand p{font-size:.82rem;color:var(--gray-500);line-height:1.6;max-width:240px}
.footer-col h4{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:1.5px;color:var(--gray-400);margin-bottom:12px}
.footer-col a{display:block;font-size:.84rem;color:var(--gray-500);margin-bottom:7px;transition:color .15s}
.footer-col a:hover{color:var(--black)}
.footer-bottom{padding-top:20px;border-top:1px solid var(--gray-100);text-align:center;font-size:.75rem;color:var(--gray-400)}

/* ═══ Responsive ═══ */
@media(max-width:768px){
  .nav-links,.nav-actions{display:none}
  .burger{display:block}
  .features-grid{grid-template-columns:1fr}
  .showcase-grid{grid-template-columns:1fr}
  .preview-body{grid-template-columns:1fr}
  .preview-doc{border-right:none;border-bottom:1px solid var(--gray-200)}
  .preview-services{flex-direction:row;flex-wrap:wrap;gap:4px;padding:10px}
  .psvc{flex:1;min-width:calc(50% - 4px)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero{padding:100px 0 60px}
  .hero-h1{font-size:1.8rem}
  .sc-translate{flex-direction:column;gap:8px}
  .sc-t-arrow{transform:rotate(90deg)}
}
