:root {
  color-scheme: light;
  --navy: #071d49;
  --blue: #155eef;
  --blue-dark: #0b3fb3;
  --cyan: #12bde9;
  --paper: #f6f9ff;
  --white: #fff;
  --ink: #11213d;
  --muted: #56657d;
  --line: #d7e2f4;
  --success: #087443;
  --danger: #b42318;
  --shadow: 0 16px 45px rgba(7, 29, 73, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue-dark); }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .75rem 1rem; background: white; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.nav { max-width: 1160px; margin: auto; min-height: 70px; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; color: var(--navy); text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border: 2px solid var(--blue); border-radius: 50%; position: relative; background: radial-gradient(circle, var(--cyan) 0 17%, transparent 19%); }
.brand-mark::after { content: ""; position: absolute; inset: 5px -7px; border: 2px solid var(--cyan); border-radius: 50%; transform: rotate(-25deg); }
.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 650; }
.hero { background: linear-gradient(145deg, var(--navy), #0b3185 65%, #075cb9); color: white; overflow: hidden; }
.hero-inner { max-width: 1160px; margin: auto; padding: 5.5rem 1.25rem 4.5rem; position: relative; }
.hero-inner::after { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid rgba(51,208,255,.35); border-radius: 50%; right: -130px; top: -170px; box-shadow: 0 0 0 70px rgba(51,208,255,.06), 0 0 0 140px rgba(51,208,255,.035); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: #86e7ff; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; color: var(--navy); }
.hero h1 { color: white; max-width: 750px; font-size: clamp(2.5rem, 7vw, 5.3rem); margin: .5rem 0 1.2rem; }
.hero p { max-width: 680px; color: #d9e7ff; font-size: 1.15rem; }
.trust-row { display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; margin-top: 2rem; color: white; font-weight: 700; }
.trust-row span::before { content: "✓"; color: #69e3ff; margin-right: .45rem; }
.wrap { max-width: 1160px; margin: auto; padding: 4rem 1.25rem; }
.section-head { max-width: 700px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .3rem 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { display: block; padding: 1.4rem; color: var(--ink); text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 18px rgba(7,29,73,.05); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: #8bb2ff; }
.card-number { color: var(--blue); font-size: .8rem; font-weight: 850; }
.card h3 { margin: .55rem 0 .4rem; font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }
.tool-hero { padding: 3.5rem 1.25rem 2.5rem; text-align: center; background: linear-gradient(#edf4ff, var(--paper)); }
.tool-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: .45rem auto 1rem; }
.tool-hero p { max-width: 720px; margin: auto; color: var(--muted); font-size: 1.08rem; }
.tool-shell { max-width: 980px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.tool-panel { background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 2rem); }
.dropzone { display: grid; place-items: center; min-height: 190px; padding: 1.5rem; text-align: center; border: 2px dashed #8db0ef; border-radius: 16px; background: #f7faff; cursor: pointer; }
.dropzone[data-drag=true] { border-color: var(--cyan); background: #eefcff; }
.dropzone strong { display: block; font-size: 1.15rem; color: var(--navy); }
.dropzone input { max-width: 100%; margin-top: .8rem; }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 1.4rem 0; }
.field { display: grid; gap: .35rem; font-weight: 700; }
.field small { color: var(--muted); font-weight: 450; }
input, select, button { font: inherit; }
input[type=number], input[type=color], select { width: 100%; min-height: 46px; padding: .6rem .75rem; color: var(--ink); background: white; border: 1px solid #a9bad4; border-radius: 9px; }
input[type=color] { padding: .25rem; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.check input { width: 1.15rem; height: 1.15rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.2rem; border: 0; border-radius: 10px; color: white; background: var(--blue); text-decoration: none; font-weight: 800; cursor: pointer; }
.button:hover { background: var(--blue-dark); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.status { min-height: 1.6rem; margin: .8rem 0; color: var(--muted); }
.status[data-kind=success] { color: var(--success); }
.status[data-kind=error] { color: var(--danger); }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.preview { min-height: 160px; padding: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background-color: #edf2f9; background-image: linear-gradient(45deg,#dfe7f2 25%,transparent 25%),linear-gradient(-45deg,#dfe7f2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe7f2 75%),linear-gradient(-45deg,transparent 75%,#dfe7f2 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; }
.preview h3 { margin-top: 0; font-size: 1rem; }
.preview img { display: block; width: 100%; max-height: 330px; object-fit: contain; margin: auto; }
.meta { display: block; padding-top: .6rem; color: var(--muted); font-size: .9rem; }
.content { max-width: 780px; margin: auto; padding: 3.5rem 1.25rem; }
.content h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.content li + li { margin-top: .6rem; }
.notice { padding: 1rem 1.2rem; border-left: 4px solid var(--cyan); background: #ecfaff; border-radius: 8px; }
.ad-slot { max-width: 970px; min-height: 110px; margin: 2.5rem auto; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); background: #f2f5fa; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.ad-slot[data-active=false] { display: none; }
.ad-separation { padding: 0 1.25rem; }
.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { max-width: 1160px; margin: auto; padding: 2rem 1.25rem; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .preview-grid, .controls { grid-template-columns: 1fr; }
  .nav-links a:not(:first-child) { display: none; }
  .hero-inner { padding-top: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
