:root {
  --bg-canvas: #fff8ec;
  --bg-soft: #fff2d8;
  --ink: #1d1d1b;
  --ink-muted: #4d4a41;
  --brand: #ff5a3d;
  --brand-deep: #d63f26;
  --accent: #0f8d9b;
  --accent-soft: #d6f0f3;
  --line: #f1d8b8;
  --card: rgba(255, 255, 255, 0.84);
  --shadow: 0 16px 40px rgba(140, 80, 30, 0.16);
  --radius: 22px;
  --danger: #a82b12;
  --success: #0b7f47;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 185, 96, 0.3), transparent 38%),
    radial-gradient(circle at 90% 14%, rgba(16, 141, 155, 0.22), transparent 35%),
    linear-gradient(125deg, var(--bg-canvas) 0%, #fffdf7 38%, var(--bg-soft) 100%);
  min-height: 100vh;
}

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

i[class*="fa-"] {
  margin-right: 0.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 2.5vw, 2.5rem);
  background: rgba(255, 251, 244, 0.9);
  border-bottom: 1px solid rgba(240, 201, 153, 0.7);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(197, 73, 39, 0.28);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255, 90, 61, 0.1);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  background: linear-gradient(120deg, var(--brand), #ff8c42);
  color: #fff;
  box-shadow: 0 10px 20px rgba(214, 63, 38, 0.25);
}

.site-nav .nav-cta:hover {
  background: linear-gradient(120deg, var(--brand-deep), #f36f27);
}

.site-main {
  padding: 2rem 1rem 3rem;
}

.home-root {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.section {
  padding: clamp(1.3rem, 3vw, 2.1rem);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 127, 80, 0.28), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(15, 141, 155, 0.17), transparent 30%),
    linear-gradient(135deg, #fff9ef, #fff0d6 65%, #ffe2c2);
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-corner-logo {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  width: clamp(180px, 21vw, 200px);
  height: auto;
  z-index: 1;
  opacity: 0.92;
  pointer-events: none;
  border-radius: 12px;
  filter: drop-shadow(0 8px 18px rgba(157, 59, 30, 0.2));
}

.hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 13rem;
  height: 13rem;
  border-radius: 35% 65% 68% 32% / 34% 37% 63% 66%;
  background: linear-gradient(180deg, rgba(15, 141, 155, 0.23), rgba(255, 127, 80, 0.26));
  filter: blur(1px);
}

.kicker {
  margin: 0 0 0.75rem;
  display: inline-block;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 141, 155, 0.14);
  color: #0a5d66;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin-bottom: 0.85rem;
}

h2 i {
  color: var(--brand-deep);
}

.lead {
  margin: 1rem 0;
  max-width: 72ch;
  color: var(--ink-muted);
  line-height: 1.7;
}

.hero-note {
  margin: 1rem 0 0;
  max-width: 72ch;
  line-height: 1.6;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.72rem 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #ff8c42);
  box-shadow: 0 10px 20px rgba(214, 63, 38, 0.28);
}

.btn-secondary {
  color: #14545c;
  background: var(--accent-soft);
}

.bubble-section {
  background: linear-gradient(150deg, #f8fcff, #fff5e6 60%, #fffef9);
}

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

.speech-bubble {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.65rem;
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid #f2dac0;
  background: #fffef9;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #fffef9;
  border-right: 1px solid #f2dac0;
  border-bottom: 1px solid #f2dac0;
  transform: rotate(45deg);
}

.speech-bubble i {
  color: var(--accent);
  margin-top: 0.12rem;
}

.speech-bubble p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #ffd7a1;
  background: #fffaf0;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.pill i {
  color: #d6492a;
}

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

.engagement-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #fffef9, #fff3df);
  border-radius: 16px;
  padding: 1rem;
}

.engagement-card h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.engagement-card h3 i {
  color: #cd482b;
}

.engagement-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--ink-muted);
}

.ai-block {
  border-left: 5px solid var(--accent);
  background: linear-gradient(140deg, #f4fcfd, #fffef8 60%, #fff3e3);
}

.ai-block p {
  margin: 0.85rem 0 0;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 76ch;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
}

.tech-chip {
  border-radius: 12px;
  border: 1px solid #f2dac0;
  background: #fffef9;
  font-size: 0.82rem;
  padding: 0.48rem 0.56rem;
  text-align: center;
  color: #3c372f;
}

.tech-chip i {
  color: #19676f;
}

.contact p,
.schedule p {
  margin: 0.5rem 0 1rem;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 76ch;
}

.contact-panel {
  border-radius: 16px;
  border: 1px solid #f3dab7;
  background: linear-gradient(150deg, #fffdf8, #fff5e3);
  padding: 1rem;
}

.contact-panel.is-submitting {
  opacity: 0.85;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.form-field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #50493d;
}

.form-field i {
  color: #cc4c2f;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #e9cfa8;
  border-radius: 12px;
  padding: 0.65rem 0.72rem;
  font: inherit;
  color: #27231d;
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #ff9158;
  outline: 2px solid rgba(255, 145, 88, 0.15);
}

.form-field textarea {
  resize: vertical;
}

.form-field-wide {
  grid-column: span 2;
}

.field-error {
  min-height: 1.05rem;
  color: var(--danger);
  font-size: 0.78rem;
}

.validation-summary {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.72rem;
  border-radius: 10px;
  border: 1px solid #ffc5ba;
  background: #fff3f0;
  color: var(--danger);
}

.validation-summary:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.contact-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

.thankyou-bubble {
  margin-top: 1rem;
  border: 1px solid #cdebd8;
  background: #f4fff8;
  border-radius: 16px;
  padding: 1rem;
}

.thankyou-bubble i {
  color: var(--success);
}

.thankyou-bubble h3 {
  margin-top: 0.2rem;
}

.thankyou-bubble p {
  margin: 0.55rem 0 0.9rem;
}

.calendly-inline-widget {
  min-height: 860px;
  width: 100%;
  border: 1px solid #f0d1a8;
  border-radius: 16px;
  background: #fff;
}

.calendly-missing {
  margin: 0;
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff4ec;
  border: 1px solid #f7c695;
}

.calendly-missing code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.thanks-page {
  max-width: 860px;
  margin: 0 auto;
}

.site-footer {
  padding: 0 1rem 2rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #6f6656;
  font-size: 0.88rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .bubble-grid,
  .engagement-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: span 1;
  }

  .calendly-inline-widget {
    min-height: 980px;
  }

  .hero-corner-logo {
    width: clamp(150px, 34vw, 185px);
    opacity: 0.78;
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 1.2rem 0.5rem 2rem;
  }

  .home-root {
    width: calc(100% - 0.6rem);
  }

  .section {
    border-radius: 18px;
    padding: 1.05rem;
  }

  .site-nav a {
    font-size: 0.84rem;
    padding: 0.48rem 0.7rem;
  }

  .calendly-inline-widget {
    min-height: 1060px;
  }

  .hero-corner-logo {
    width: 145px;
    top: 0.45rem;
    right: 0.45rem;
    opacity: 0.66;
  }
}
