:root {
  /* COLOR SYSTEM – dark LinkedIn + green */
  --bg-1: #04101f;
  --bg-2: #022f49;
  --bg-3: #0a66c2;      /* LinkedIn blue */
  --bg-4: #16a34a;      /* green accent */

  --text-main: #f9fafb;
  --text-muted: rgba(226, 232, 240, 0.78);

  --card: rgba(15, 23, 42, 0.98);
  --card-soft: rgba(17, 24, 39, 0.96);
  --border-soft: rgba(148, 163, 184, 0.7);

  --accent: #0a66c2;
  --accent-blue: #0a66c2;
  --accent-green: #22c55e;

  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-small: 0 16px 40px rgba(15, 23, 42, 0.55);

  --transition-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  background: transparent;
}

/* GLOBAL BACKGROUND – dark blue + green */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.35) 0, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(10, 102, 194, 0.6) 0, transparent 40%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 35%, var(--bg-3) 70%, var(--bg-4) 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.06),
      transparent 40%,
      rgba(15, 23, 42, 0.8)
    );
  mix-blend-mode: soft-light;
  opacity: 0.75;
  pointer-events: none;
}

.bg-layer {
  display: none;
}

/* LAYOUT */

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.9)
  );
  border-bottom: 1px solid rgba(30, 64, 175, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.08em;
  color: #e5e7eb;
  text-decoration: none;
}

.logo span {
  color: var(--accent);
  margin-left: 2px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
  color: rgba(226, 232, 240, 0.75);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.nav a:hover {
  background: rgba(10, 102, 194, 0.22);
  color: #f9fafb;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: #e5e7eb;
}

/* MAIN TOOL */

.tool-main {
  padding-bottom: 70px;
}

.tool-hero {
  padding-top: 110px;
  padding-bottom: 24px;
}

.tool-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(191, 219, 254, 0.9);
  margin-bottom: 8px;
}

.tool-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 2.6vw, 2.7rem);
  letter-spacing: -0.06em;
}

.tool-subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 1rem;
  color: var(--text-muted);
}

/* TOOL LAYOUT */

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: flex-start;
}

.tool-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 20px 22px 22px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--shadow-soft);
}

.tool-card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

/* FORM */

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.96);
}

input,
textarea,
select {
  border-radius: 14px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.9rem;
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background 160ms ease-out;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(10, 102, 194, 0.5);
  background: rgba(15, 23, 42, 1);
}

textarea {
  resize: vertical;
}

.field-hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(156, 163, 175, 0.9);
}

.field-with-counter {
  position: relative;
}

.char-counter {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 0.76rem;
  color: rgba(209, 213, 219, 0.9);
  background: rgba(17, 24, 39, 0.98);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* BUTTONS */

.btn {
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, #0a66c2, #16a34a);
  color: #f9fafb;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  box-shadow: var(--shadow-small);
  border: 1px solid rgba(55, 65, 81, 0.95);
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 0.92);
  transform: translateY(-1px);
}

/* PREVIEW CARD */

.preview-card {
  background: var(--card-soft);
}

.post-preview {
  margin-top: 6px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #ffffff;
  padding: 12px 14px 10px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(209, 213, 219, 0.95);
  color: #111827;
}

/* LinkedIn-style header */

.post-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #22c55e, #0a66c2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #f9fafb;
}

.user-meta {
  flex: 1;
}

.user-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.user-headline {
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
}

.user-extra {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
}

/* POST TEXT */

.post-text {
  font-size: 0.9rem;
  color: #111827;
  line-height: 1.5;
}

.post-text p {
  margin: 4px 0;
}

.post-hook {
  font-weight: 600;
}

.post-cta {
  margin-top: 6px;
}

.post-hashtags {
  color: #0a66c2;
  font-size: 0.85rem;
}

/* POST FOOTER */

.post-footer {
  border-top: 1px solid rgba(229, 231, 235, 0.95);
  margin-top: 8px;
  padding-top: 4px;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: #4b5563;
}

.post-meta-bottom {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: #6b7280;
}

.dot-separator::before {
  content: "•";
}

/* AIDA GRID */

.aida-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.aida-block {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  font-size: 0.86rem;
  color: rgba(209, 213, 219, 0.98);
}

.aida-block h3 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--accent-green);
}

/* TIPS */

.tips-card {
  margin-top: 12px;
  padding: 10px 12px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b1120, #020617);
  color: #e5e7eb;
  font-size: 0.86rem;
}

.tips-card h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
}

.tips-card ul {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

/* FOOTER */

.site-footer {
  padding: 22px 0 26px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(30, 64, 175, 0.9);
  backdrop-filter: blur(18px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.84rem;
  color: rgba(209, 213, 219, 0.96);
}

.footer-tagline {
  margin: 0;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .tool-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: 54px;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 24px 14px;
    background: rgba(15, 23, 42, 0.98);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 220ms ease-out, opacity 200ms ease-out;
  }

  .nav.open {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tool-hero {
    padding-top: 96px;
  }

  .tool-layout {
    gap: 18px;
  }
}