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

:root {
  --navy: #0a1628;
  --navy-2: #111f3a;
  --teal: #00c4a0;
  --teal-dim: #00c4a018;
  --cream: #f5f0e8;
  --cream-2: #ede7d9;
  --text: #1a2a42;
  --muted: #6b7a92;
  --red: #e84f4f;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: var(--navy);
}

.logo-img {
  height: 62px;
  width: auto;
  display: block;
}

.logo-tag {
  font-size: 0.62rem;
  color: #62748f;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 8px;
}

.nav-cta {
  background: var(--navy);
  color: var(--white);
  border: 0;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--teal);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.nav-contact {
  color: #34435b;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(10, 22, 40, 0.08);
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-contact:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 196, 160, 0.18);
}

.nav-login {
  color: #34435b;
  font-weight: 600;
}

.nav-login:hover {
  color: var(--navy);
}

.profile-menu {
  position: relative;
}

.profile-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(10, 22, 40, 0.12);
  transition: transform 0.15s, background 0.2s;
}

.profile-trigger:hover .profile-avatar {
  background: var(--teal);
  color: var(--navy);
  transform: translateY(-1px);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--cream-2);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(10, 22, 40, 0.14);
  padding: 0.8rem;
  display: none;
  z-index: 200;
  backdrop-filter: blur(14px);
}

.profile-menu.open .profile-dropdown {
  display: block;
}

.profile-meta {
  padding: 0.45rem 0.5rem 0.7rem;
}

.profile-meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.profile-meta-email {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  word-break: break-word;
}

.profile-divider {
  height: 1px;
  background: var(--cream-2);
  margin: 0.2rem 0 0.4rem;
}

.profile-link {
  display: block;
  padding: 0.82rem 0.9rem;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.profile-link:hover {
  background: var(--cream);
  color: var(--navy);
}

.profile-logout {
  color: var(--red);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #d4f5ee 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 80%, #e8e0f0 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.hero-badge::before {
  content: "●";
  font-size: 0.5rem;
}

.hero h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 800px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero h1 em {
  color: var(--teal);
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-sm);
  border: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #00c4a044;
}

.btn-secondary {
  background: rgba(10, 22, 40, 0.08);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(10, 22, 40, 0.08);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(0, 196, 160, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cream-2);
  transition: border-color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--navy);
}

.trust-line {
  margin-top: 1.8rem;
  font-size: 0.94rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.demo-section {
  background: var(--navy);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 200px;
  background: radial-gradient(ellipse, #00c4a020 0%, transparent 70%);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

.section-label.muted {
  color: var(--muted);
}

.section-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title.dark {
  color: var(--navy);
}

.section-sub {
  color: #92a7c2;
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
}

.demo-box {
  background: #0f1e36;
  border: 1px solid #1e3250;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.demo-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  background: #0d1a2e;
  border-bottom: 1px solid #1e3250;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: #ff5f56;
}

.dot-y {
  background: #ffbd2e;
}

.dot-g {
  background: #27c93f;
}

.demo-label {
  color: #8ca3c2;
  font-size: 0.92rem;
  margin-left: 0.5rem;
}

.demo-input-area {
  padding: 1.5rem;
}

.demo-input-area label {
  display: block;
  color: #9eb3cc;
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
}

.demo-textarea {
  width: 100%;
  background: #0a1628;
  border: 1px solid #1e3250;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1.02rem;
  padding: 1rem;
  resize: none;
  height: 80px;
  outline: none;
  transition: border-color 0.2s;
}

.demo-textarea:focus {
  border-color: var(--teal);
}

.demo-textarea::placeholder {
  color: #3a5070;
}

.demo-run {
  margin-top: 0.8rem;
  background: var(--teal);
  color: var(--navy);
  border: 0;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.2s;
}

.demo-run:hover {
  opacity: 0.85;
}

.demo-run:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-output {
  padding: 0 1.5rem 1.5rem;
  display: none;
}

.demo-output.visible {
  display: block;
}

.output-divider {
  border: 0;
  border-top: 1px solid #1e3250;
  margin-bottom: 1.5rem;
}

.output-block {
  margin-bottom: 1.4rem;
}

.output-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.tag-diff {
  background: #00c4a018;
  color: var(--teal);
}

.tag-red {
  background: #e84f4f18;
  color: var(--red);
}

.tag-soap {
  background: #7c6af018;
  color: #a899f5;
}

.output-content {
  color: #c8d8e8;
  font-size: 1rem;
  line-height: 1.7;
}

.output-content strong {
  color: var(--white);
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #1e3250;
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 1rem auto;
}

.spinner.active {
  display: block;
}

.features-section {
  padding: 6rem 2rem;
  background: var(--cream);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px #0a162812;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
}

.who-section {
  background: var(--cream-2);
  padding: 5rem 2rem;
  text-align: center;
}

.who-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.pill {
  background: var(--white);
  border: 1px solid var(--cream-2);
  color: var(--navy);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
}

.not-pill {
  background: transparent;
  border: 1px dashed #ccc;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
}

.pricing-section {
  padding: 6rem 2rem;
  background: var(--navy);
  text-align: center;
}

.pricing-sub {
  color: #4a6080;
  margin-bottom: 3rem;
}

.price-card {
  max-width: 420px;
  margin: 0 auto;
  background: #0f1e36;
  border: 1px solid #1e3250;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #00e6b8);
}

.price-badge {
  display: inline-block;
  background: var(--teal-dim);
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-family: "Instrument Serif", serif;
  font-size: 4.5rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.price-amount sup {
  font-size: 1.8rem;
  vertical-align: top;
  margin-top: 0.8rem;
  display: inline-block;
}

.price-period {
  color: #7c96ba;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.price-features li {
  color: #c8d8e8;
  font-size: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1a2f4a;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.price-features li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.price-cta {
  display: block;
  width: 100%;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 0;
  transition: opacity 0.2s, transform 0.15s;
  text-align: center;
}

.price-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.price-note {
  color: #6f89ac;
  font-size: 0.92rem;
  margin-top: 1rem;
}

.site-footer {
  background: #07101f;
  color: #7a95b8;
  text-align: center;
  padding: 2rem;
  font-size: 0.94rem;
}

.site-footer a {
  color: #9ab1cd;
}

.footer-inner p + p {
  margin-top: 0.5rem;
}

.contact-page {
  padding-top: 6.8rem;
}

.public-contact-hero {
  position: relative;
  overflow: hidden;
  padding: 2rem 2rem 4rem;
}

.public-contact-shell {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 1.4rem;
  align-items: start;
}

.public-contact-copy {
  padding: 3rem 0 1rem;
}

.contact-badge {
  opacity: 1;
  animation: none;
  margin-bottom: 1.4rem;
}

.public-contact-copy h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 5.8vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.public-contact-copy .hero-sub {
  opacity: 1;
  animation: none;
  max-width: 620px;
  margin-bottom: 0;
}

.public-contact-quicklinks {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.quicklink-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 22, 40, 0.08);
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.08);
}

.quicklink-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 196, 160, 0.2);
}

.quicklink-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.quicklink-card strong {
  color: var(--navy);
  font-size: 1rem;
}

.public-contact-card {
  border-radius: 24px;
  border: 1px solid rgba(10, 22, 40, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 60px rgba(10, 22, 40, 0.11);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.public-card-eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a6654;
  margin-bottom: 0.7rem;
}

.public-card-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 3.3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.public-card-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.public-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.public-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.public-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.public-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #435670;
}

.public-field input,
.public-field select,
.public-field textarea {
  width: 100%;
  border: 1px solid rgba(10, 22, 40, 0.1);
  border-radius: 14px;
  background: rgba(245, 240, 232, 0.48);
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.public-field textarea {
  min-height: 170px;
  resize: vertical;
}

.public-field input:focus,
.public-field select:focus,
.public-field textarea:focus {
  border-color: rgba(0, 196, 160, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 196, 160, 0.12);
  background: var(--white);
}

.public-form-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.public-form-actions .btn-ghost {
  background: rgba(245, 240, 232, 0.6);
}

.public-form-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
}

.public-contact-notes {
  padding: 0 2rem 4rem;
}

.public-note-grid {
  max-width: 1120px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-note-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 22, 40, 0.08);
  padding: 1.2rem;
}

.public-note-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
  color: var(--navy);
}

.public-note-card p {
  color: var(--muted);
  line-height: 1.65;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, 94vw);
  }

  .site-nav {
    padding-inline: 0.4rem;
  }

  .logo-img {
    height: 50px;
  }

  .logo-tag {
    display: none;
  }

  .hero {
    padding-inline: 1rem;
  }

  .nav-inner {
    gap: 0.9rem;
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .nav-actions {
    gap: 12px;
    flex-wrap: wrap;
  }

  .public-contact-hero,
  .public-contact-notes {
    padding-inline: 1rem;
  }

  .public-contact-shell,
  .public-note-grid,
  .public-form-row {
    grid-template-columns: 1fr;
  }

  .public-contact-copy {
    padding-top: 1.5rem;
  }

  .price-card {
    padding: 2.4rem 1.3rem;
  }

  .profile-dropdown {
  right: 0;
  min-width: 220px;
  }
}

@media (max-width: 520px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
