:root {
  color-scheme: light;
  --ink: #11161f;
  --muted: #657080;
  --line: rgba(18, 27, 41, 0.10);
  --paper: #f4f7fb;
  --glass: rgba(255, 255, 255, 0.72);
  --blue: #246df5;
  --blue-soft: #dceaff;
  --orange: #f07828;
  --orange-soft: #ffeadc;
  --purple: #7655df;
  --purple-soft: #e9e2ff;
  --radius: 28px;
  --shadow: 0 22px 70px rgba(47, 62, 85, 0.12), 0 2px 8px rgba(47, 62, 85, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.ambient { position: fixed; z-index: -1; border-radius: 999px; filter: blur(1px); opacity: .64; }
.ambient-one { width: 340px; height: 340px; background: #dfeaff; top: 120px; right: -140px; }
.ambient-two { width: 260px; height: 260px; background: #f1e9ff; top: 620px; left: -130px; }

.topbar {
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--ink); border-radius: 10px; box-shadow: 0 7px 16px rgba(17,22,31,.16); }
.brand-mark svg { width: 22px; }
.brand-mark path:first-child { fill: #6aa6ff; stroke: none; }
.brand-mark path:last-child { fill: none; stroke: white; stroke-width: 1.7; stroke-linejoin: round; }
nav { display: flex; gap: 8px; padding: 5px; background: rgba(255,255,255,.56); border: 1px solid rgba(255,255,255,.88); border-radius: 14px; box-shadow: 0 4px 18px rgba(47,62,85,.05); backdrop-filter: blur(18px); }
nav a { padding: 8px 14px; color: #586272; font-size: .92rem; font-weight: 600; border-radius: 9px; transition: .2s ease; }
nav a:hover, nav a:focus-visible { background: white; color: var(--ink); }
.day-chip { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: #55606f; font-size: .86rem; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34b777; box-shadow: 0 0 0 4px rgba(52,183,119,.12); }

.hero { min-height: 600px; padding: 80px 0 100px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: center; }
.eyebrow { display: inline-block; color: #6e7887; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 18px 0 24px; max-width: 740px; font-size: clamp(3.6rem, 7vw, 6.7rem); line-height: .93; letter-spacing: -.072em; font-weight: 600; }
h1 span { color: var(--blue); }
.hero-copy > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 1.14rem; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 52px; padding: 0 21px; border-radius: 15px; font-weight: 700; box-shadow: 0 9px 22px rgba(17,22,31,.14); transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 28px rgba(17,22,31,.18); }
.button.primary { color: white; background: var(--ink); }
.privacy-note { display: flex; align-items: center; gap: 8px; color: #697483; font-size: .87rem; font-weight: 600; }
.privacy-note svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ship-card { position: relative; padding: 18px; background: var(--glass); border: 1px solid rgba(255,255,255,.9); border-radius: 34px; box-shadow: var(--shadow); backdrop-filter: blur(24px); transform: rotate(1.5deg); }
.ship-card::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(17,22,31,.055); border-radius: 27px; pointer-events: none; }
.ship-card-top { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px 0; color: #758090; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c7ced8; }
.package-visual { position: relative; height: 286px; display: grid; place-items: center; }
.package-visual svg { position: relative; z-index: 1; width: 76%; overflow: visible; filter: drop-shadow(0 24px 18px rgba(48,70,102,.12)); animation: float 5s ease-in-out infinite; }
.package-shadow { position: absolute; left: 24%; right: 24%; bottom: 35px; height: 19px; background: rgba(28,45,70,.12); border-radius: 50%; filter: blur(12px); }
.box-left { fill: #4b88f7; }
.box-right { fill: #2d70eb; }
.box-top { fill: #84b2ff; }
.box-tape { fill: rgba(255,255,255,.45); }
.box-line { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 2.3; stroke-linejoin: round; }
.ship-status { margin: 0 2px 2px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95); border-radius: 19px; }
.ship-status div { display: grid; gap: 3px; }
.ship-status strong { font-size: .96rem; }
.ship-status div span { color: #7a8492; font-size: .78rem; }
.status-pill { padding: 6px 10px; color: #147249; background: #daf5e8; border-radius: 999px; font-size: .76rem; font-weight: 700; }

.tool-section { padding: 80px 0 115px; }
.section-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h2 { margin: 9px 0 0; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.05em; line-height: 1.05; }
.tool-count { padding-bottom: 8px; color: #788392; font-size: .9rem; font-weight: 600; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-card { position: relative; min-height: 365px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--ink); background: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.95); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(47,62,85,.075); cursor: pointer; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.tool-card::after { content: ""; position: absolute; width: 210px; height: 210px; border-radius: 50%; right: -86px; top: -95px; opacity: .62; transition: transform .3s ease; }
.tool-card.blue::after { background: var(--blue-soft); }
.tool-card.orange::after { background: var(--orange-soft); }
.tool-card.purple::after { background: var(--purple-soft); }
.tool-card:hover, .tool-card:focus-visible { transform: translateY(-7px); background: white; box-shadow: 0 24px 60px rgba(47,62,85,.13); outline: none; }
.tool-card:hover::after { transform: scale(1.12); }
.tool-icon { position: relative; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; margin-bottom: 54px; }
.blue .tool-icon { color: var(--blue); background: var(--blue-soft); }
.orange .tool-icon { color: var(--orange); background: var(--orange-soft); }
.purple .tool-icon { color: var(--purple); background: var(--purple-soft); }
.tool-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-meta { margin-bottom: 9px; color: #87909d; font-size: .69rem; font-weight: 700; letter-spacing: .11em; }
.tool-card strong { font-size: 1.45rem; letter-spacing: -.03em; }
.tool-card > span:nth-of-type(3) { max-width: 270px; margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.open-label { margin-top: auto; padding-top: 25px; display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 700; }
.open-label b { font-size: 1rem; }

.principle { margin-bottom: 100px; padding: 55px 60px; display: grid; grid-template-columns: .6fr 1.35fr .85fr; align-items: end; gap: 40px; color: white; background: var(--ink); border-radius: 34px; box-shadow: 0 22px 60px rgba(17,22,31,.18); }
.principle-number { align-self: start; color: #8793a6; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
blockquote { margin: 0; font-size: clamp(2.2rem, 4.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.06em; font-weight: 500; }
blockquote em { color: #76aaff; font-style: normal; }
.principle p { margin: 0; color: #aab3c1; font-size: .93rem; line-height: 1.65; }

footer { min-height: 100px; padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; color: #7b8593; border-top: 1px solid var(--line); font-size: .82rem; }

dialog { width: min(660px, calc(100% - 28px)); padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 30px; overflow: visible; }
dialog::backdrop { background: rgba(12,17,24,.46); backdrop-filter: blur(10px); }
.dialog-shell { padding: 28px; background: rgba(250,252,255,.96); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: 0 30px 90px rgba(9,15,24,.30); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.dialog-kicker { color: #7e8794; font-size: .69rem; font-weight: 700; letter-spacing: .11em; }
.dialog-head h2 { font-size: 2rem; }
.icon-button { width: 40px; height: 40px; color: #66717f; background: #e9edf3; border: 0; border-radius: 13px; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.tool-field { width: 100%; min-height: 180px; padding: 16px; color: var(--ink); background: white; border: 1px solid #dfe4ec; border-radius: 16px; outline: none; resize: vertical; line-height: 1.55; }
.tool-field:focus { border-color: #8db5ff; box-shadow: 0 0 0 4px rgba(36,109,245,.09); }
.field-label { display: block; margin-bottom: 8px; color: #626e7e; font-size: .8rem; font-weight: 700; }
.tool-actions { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.action-button { min-height: 44px; padding: 0 16px; color: white; background: var(--ink); border: 0; border-radius: 13px; font-weight: 700; cursor: pointer; }
.action-button.secondary { color: #4e5a69; background: #e9edf3; }
.result-line { margin-top: 14px; padding: 14px 16px; color: #445160; background: #eef2f7; border-radius: 14px; font-size: .9rem; word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.stat { padding: 16px; background: white; border: 1px solid #e1e6ed; border-radius: 15px; }
.stat strong { display: block; font-size: 1.4rem; }
.stat span { color: #788392; font-size: .76rem; }
.error { color: #b93a3a; background: #ffe8e8; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 24px); padding: 12px 16px; color: white; background: var(--ink); border-radius: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: .85rem; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-11px) rotate(1deg); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 55px; padding: 65px 0 90px; }
  .hero-copy { max-width: 720px; }
  .ship-card { max-width: 500px; margin-inline: auto; transform: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 300px; }
  .tool-icon { margin-bottom: 38px; }
  .principle { grid-template-columns: 1fr; align-items: start; }
  .principle-number { margin-bottom: 25px; }
  .principle p { max-width: 430px; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1160px); }
  .topbar { height: 76px; }
  .brand { font-size: .93rem; }
  .day-chip { font-size: 0; }
  .day-chip .live-dot { display: block; }
  .hero { padding: 47px 0 72px; }
  h1 { margin-top: 15px; font-size: clamp(3.1rem, 15vw, 4.6rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .button { width: 100%; }
  .package-visual { height: 230px; }
  .tool-section { padding: 64px 0 80px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .tool-count { padding: 0; }
  .tool-card { min-height: 310px; padding: 24px; }
  .principle { margin-bottom: 70px; padding: 36px 28px; border-radius: 28px; }
  footer { flex-direction: column; justify-content: center; }
  .dialog-shell { padding: 22px; border-radius: 24px; }
  .stats { grid-template-columns: 1fr; }
}
