:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --soft: #f6faf8;
  --line: #dbe7e2;
  --teal: #0f766e;
  --teal-2: #0b5f59;
  --mint: #dff8ef;
  --gold: #d6a84f;
  --navy: #162033;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 24, 39, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
a { color: inherit; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px min(5vw, 72px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #1e40af);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .22);
}
.brand strong { display: block; font-size: 19px; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a, .ghost-button, .link-button {
  color: #334155;
  background: transparent;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.menu-button { display: none; }
.primary-button, .secondary-button, .tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.primary-button {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 18px 36px rgba(15, 118, 110, .2);
}
.primary-button:hover { background: var(--teal-2); }
.secondary-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}
.small { min-height: 40px; padding: 0 15px; border-radius: 12px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 64px min(5vw, 72px);
  background:
    radial-gradient(circle at 15% 12%, rgba(15, 118, 110, .14), transparent 30rem),
    radial-gradient(circle at 85% 18%, rgba(214, 168, 79, .16), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f8fbfa 100%);
}
.hero h1 {
  max-width: 740px;
  margin: 0 0 22px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: .9;
  letter-spacing: 0;
}
.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-panel {
  padding: 28px;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 28px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
}
.timer-card {
  padding: 26px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}
.timer-card span { display: block; color: rgba(255,255,255,.72); font-weight: 800; }
.timer-card strong { display: block; margin: 18px 0; font-size: 64px; line-height: 1; letter-spacing: 0; }
.timer-actions { display: flex; gap: 10px; }
.timer-actions button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.12);
  font-weight: 900;
  cursor: pointer;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.mini-grid div, .check-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.mini-grid strong { display: block; color: var(--teal); font-size: 28px; }
.mini-grid span { color: var(--muted); font-size: 13px; font-weight: 800; }
.check-card { display: grid; gap: 10px; color: #334155; font-weight: 700; }

.section { padding: 86px min(5vw, 72px); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section h2, .split-section h2, .pro-section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .96;
}
.section p, .split-section p, .pro-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, .06);
}
.tool-card h3 { margin: 0 0 8px; font-size: 24px; }
.tool-card p { min-height: 76px; margin: 0 0 16px; font-size: 15px; }
.tool-card input, .tool-card textarea, .comment-form textarea, .auth-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  outline: 0;
  background: #fbfdfc;
}
.tool-card textarea { min-height: 104px; resize: vertical; }
.tool-button {
  width: 100%;
  margin-top: 12px;
  color: #fff;
  background: var(--teal);
}
.tool-output {
  margin-top: 14px;
  padding: 14px;
  min-height: 74px;
  border-radius: 14px;
  color: #334155;
  background: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}
.tool-output:empty::before { content: "Your result will appear here."; color: #94a3b8; }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
  background: var(--soft);
}
.article-list, .article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  display: block;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(17, 24, 39, .06);
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(17, 24, 39, .09);
}
.article-thumb {
  display: block;
  height: 168px;
  background-color: var(--soft);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}
.article-card-body {
  display: block;
  padding: 22px 24px 24px;
}
.article-card small { color: var(--teal); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.article-card h3 { margin: 14px 0 10px; font-size: 23px; line-height: 1.12; }
.article-card p { margin: 0; font-size: 15px; }

.templates-section { background: #fff; }
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.template-grid button {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, var(--soft));
  font-weight: 900;
  font-size: 22px;
  cursor: pointer;
}
.pro-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 72px min(5vw, 72px);
  padding: 44px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}
.pro-section p { color: rgba(255,255,255,.78); max-width: 760px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px min(5vw, 72px);
  border-top: 1px solid var(--line);
}
.footer span { display: block; color: var(--muted); margin-top: 5px; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: #334155; text-decoration: none; font-weight: 800; }

.blog-shell { padding: 54px min(5vw, 72px); }
.blog-hero {
  max-width: 900px;
  margin-bottom: 38px;
}
.blog-hero h1, .article-view h1 {
  margin: 0 0 16px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: .92;
}
.blog-hero p { color: var(--muted); font-size: 20px; line-height: 1.6; }
.article-view {
  max-width: 860px;
  margin: 0 auto;
}
.back-link { display: inline-block; margin-bottom: 24px; color: var(--teal); font-weight: 900; text-decoration: none; }
.article-meta { margin-bottom: 34px; color: var(--muted); font-weight: 800; }
.article-hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  margin: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 20px 56px rgba(17, 24, 39, .08);
}
.article-body {
  font-size: 19px;
  line-height: 1.78;
  color: #273244;
}
.article-body h2 { margin-top: 36px; font-size: 32px; line-height: 1.1; }
.article-body h3 { margin-top: 28px; font-size: 24px; }
.comments {
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.comment-list { display: grid; gap: 14px; margin: 22px 0; }
.comment {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.comment strong { display: block; margin-bottom: 6px; }
.comment span { color: var(--muted); font-size: 13px; }
.comment-form { display: grid; gap: 12px; }
.comment-form textarea { min-height: 110px; }

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, .42);
}
.auth-modal[hidden] {
  display: none !important;
}
.auth-card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0 0 8px; font-size: 30px; }
.auth-card p { color: var(--muted); line-height: 1.5; }
.auth-card form { display: grid; gap: 12px; margin-top: 18px; }
.close-button {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.link-button { margin-top: 14px; color: var(--teal); }
.form-note { margin-top: 12px; color: var(--muted); font-weight: 800; }
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
  font-size: 18px;
  line-height: 1.7;
}
.legal-page h1 { font-size: 52px; line-height: 1; }

@media (max-width: 960px) {
  .hero, .split-section { grid-template-columns: 1fr; }
  .tool-grid, .article-list, .article-grid, .template-grid { grid-template-columns: 1fr 1fr; }
  .section-head, .pro-section, .footer { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; gap: 14px; padding: 14px 18px; }
  .menu-button { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; font-weight: 900; }
  .nav { display: none; position: absolute; left: 14px; right: 14px; top: 76px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav.visible { display: flex; width: 100%; position: static; padding: 0; border: 0; box-shadow: none; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .nav.visible .primary-button { min-height: 38px; padding: 0 14px; }
  .nav.open { display: flex; }
  .hero { padding-top: 44px; min-height: auto; }
  .hero h1 { font-size: 56px; }
  .hero p { font-size: 18px; }
  .tool-grid, .article-list, .article-grid, .template-grid, .mini-grid { grid-template-columns: 1fr; }
  .timer-card strong { font-size: 52px; }
  .section { padding: 58px 18px; }
  .blog-shell { padding: 38px 18px; }
}
