:root {
  --ink: #07111f;
  --ink-2: #182a44;
  --muted: #607086;
  --line: rgba(137, 158, 185, .24);
  --line-strong: rgba(137, 158, 185, .42);
  --bg: #f5f8fc;
  --surface: #ffffff;
  --navy: #07172e;
  --navy-2: #0c2447;
  --blue: #1769ff;
  --cyan: #12c8df;
  --teal: #06a6a6;
  --green: #13a36f;
  --amber: #f5b84b;
  --coral: #ef6f4f;
  --shadow: 0 22px 55px rgba(7, 23, 46, .12);
  --shadow-strong: 0 36px 90px rgba(7, 23, 46, .24);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, #f1f7fb 420px, #f8fafc 100%),
    var(--bg);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(7, 23, 46, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(7, 23, 46, .95);
  box-shadow: 0 18px 40px rgba(7, 23, 46, .18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.brand small {
  margin-top: -2px;
  color: rgba(255, 255, 255, .64);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  font-weight: 850;
}

.site-nav a {
  padding: 9px 0;
  transition: color .2s ease, background .2s ease, border .2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav .admin-menu {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #c7f8ff;
  background: rgba(255, 255, 255, .07);
}

.site-nav .nav-cta {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 16px 30px rgba(18, 200, 223, .22);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(820px, calc(100vh - 76px));
  padding: clamp(78px, 9vw, 130px) clamp(18px, 4vw, 56px) clamp(40px, 6vw, 70px);
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 23, 46, .98) 0%, rgba(7, 23, 46, .92) 42%, rgba(7, 23, 46, .44) 76%, rgba(7, 23, 46, .24) 100%),
    url("../images/hero/software-studio.png?v=20260624-studio") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 200, 223, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, rgba(7, 23, 46, .56));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(46px, 6vw, 78px);
  text-shadow: 0 4px 18px rgba(0, 0, 0, .42);
}

.hero-lead {
  max-width: 720px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(18px, 2.2vw, 22px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .36);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #06111f;
  background: linear-gradient(135deg, #ffffff, #bff8ff);
  box-shadow: 0 18px 38px rgba(18, 200, 223, .28);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
  margin-top: 34px;
}

.hero-stack span {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.quick-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--max);
  margin: -34px auto 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-strong);
}

.quick-metrics div {
  min-height: 126px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, rgba(7, 23, 46, .98), rgba(12, 36, 71, .96));
}

.quick-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: 14px;
  letter-spacing: .08em;
}

.quick-metrics span {
  display: block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(82px, 9vw, 124px) clamp(18px, 4vw, 0px) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  color: var(--ink);
  font-size: 22px;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: var(--max);
  margin: 34px auto 0;
  padding: 0 clamp(18px, 4vw, 0px);
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 23, 46, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 105, 255, .14), transparent 68%);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card-large {
  grid-column: span 2;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 23, 46, .95), rgba(23, 105, 255, .74)),
    url("../images/hero/saas-dashboard.png?v=20260624-studio") center / cover no-repeat;
}

.service-card-large h3,
.service-card-large p {
  color: #fff;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-card-large .card-kicker {
  color: var(--cyan);
}

.service-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.service-card-large p {
  color: rgba(255, 255, 255, .82);
}

.video-showcase {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(430px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: var(--max);
  margin: clamp(86px, 10vw, 128px) auto 0;
  padding: 0 clamp(18px, 4vw, 0px);
}

.video-copy p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.video-slider {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow-strong);
}

.video-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .5s ease, transform .5s ease;
}

.video-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.video-slide img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.video-slide div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 23, 46, .82);
  backdrop-filter: blur(12px);
}

.video-slide span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.video-slide strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.video-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.video-controls button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  font-weight: 900;
}

.video-controls button.is-active {
  color: var(--navy);
  background: #fff;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, .86fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: var(--max);
  margin: clamp(86px, 10vw, 128px) auto 0;
  padding: 0 clamp(18px, 4vw, 0px);
}

.platform-copy p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.platform-actions .button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.platform-actions .button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}

.platform-visual {
  position: relative;
}

.platform-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(137, 158, 185, .28);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.dashboard-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 280px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 23, 46, .88);
  backdrop-filter: blur(14px);
}

.dashboard-card span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-card strong {
  display: block;
  margin-top: 5px;
  line-height: 1.35;
}

.admin-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr);
  gap: 34px;
  max-width: var(--max);
  margin: clamp(82px, 10vw, 126px) auto 0;
  padding: clamp(30px, 5vw, 48px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 23, 46, .98), rgba(23, 105, 255, .80)),
    var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
}

.admin-band h2 {
  color: #fff;
}

.admin-band p {
  max-width: 780px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .75);
}

.admin-band ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-band li {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font-weight: 900;
}

.portfolio-panel {
  max-width: var(--max);
  margin: 34px auto 0;
  padding: 0 clamp(18px, 4vw, 0px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filters button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  background: #fff;
  font-weight: 900;
}

.filters button.is-active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(7, 23, 46, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.portfolio-card div {
  padding: 20px;
}

.portfolio-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.quote-builder {
  max-width: none;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.quote-heading {
  max-width: var(--max);
  margin: 0 auto 26px;
}

.quote-heading .section-lead {
  max-width: 780px;
  margin-top: 14px;
}

.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  align-items: start;
}

.estimate-form {
  display: grid;
  gap: 14px;
}

fieldset {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 23, 46, .05);
}

legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 950;
}

.estimate-form fieldset:first-child,
.estimate-form fieldset:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.estimate-form label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 760;
}

.estimate-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.range-row input {
  accent-color: var(--blue);
}

.range-row output {
  min-width: 86px;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.estimate-result {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 23, 46, .98), rgba(23, 105, 255, .92)),
    var(--navy);
  box-shadow: var(--shadow-strong);
}

.estimate-result span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.estimate-result strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.2;
}

.estimate-result p {
  margin-top: 12px;
  color: rgba(255, 255, 255, .78);
}

.estimate-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.estimate-result .button.primary {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.estimate-result .button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
}

.workflow-section {
  max-width: var(--max);
}

.workflow-heading {
  max-width: 820px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.workflow article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 23, 46, .06);
}

.workflow span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
}

.workflow p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.chatbot-service {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, .7fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
}

.chatbot-preview {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.bot-message,
.user-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.bot-message {
  color: var(--ink-2);
  background: #edf6fb;
}

.user-message {
  justify-self: end;
  color: #fff;
  background: var(--blue);
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, .56fr) minmax(380px, 1fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 23, 46, .04);
}

summary {
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

details p {
  padding: 0 20px 18px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(430px, .8fr);
  gap: clamp(28px, 5vw, 70px);
  max-width: var(--max);
  margin: clamp(88px, 10vw, 128px) auto 0;
  padding: clamp(32px, 5vw, 54px) clamp(18px, 4vw, 54px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 23, 46, .98), rgba(12, 36, 71, .94)),
    url("../images/hero/contact-cloud.png?v=20260624-studio") center / cover no-repeat;
  box-shadow: var(--shadow-strong);
}

.contact-copy h2 {
  color: #fff;
}

.contact-copy p {
  margin-top: 16px;
  color: rgba(255, 255, 255, .78);
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-direct a,
.contact-direct div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.contact-direct span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-direct strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.contact-note {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.contact-note strong,
.contact-note span {
  display: block;
}

.contact-note span {
  margin-top: 6px;
  color: rgba(255, 255, 255, .74);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 255, .12);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .full,
.form-note,
.quote-output {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form-note,
.quote-output {
  color: var(--muted);
  font-size: 14px;
}

.quote-output {
  padding: 12px;
  border-radius: 8px;
  background: #edf6fb;
}

.chatbot-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(23, 105, 255, .22));
  font-weight: 950;
}

.chatbot-character {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.chatbot-bubble-label {
  max-width: 190px;
  padding: 10px 13px;
  border: 1px solid rgba(137, 158, 185, .26);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 23, 46, .12);
  font-size: 13px;
  line-height: 1.35;
}

.chatbot-lottie {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .72), rgba(18, 200, 223, .18) 44%, rgba(23, 105, 255, .06) 68%, transparent 72%);
}

.chatbot-lottie svg {
  display: block;
}

.chatbot-fallback {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 86px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
}

.robot-wave {
  position: relative;
  display: block;
  width: 112px;
  height: 112px;
}

.robot-body,
.robot-hand {
  position: absolute;
  display: block;
  pointer-events: none;
}

.robot-body {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: robotFloat 3.2s ease-in-out infinite;
}

.robot-hand {
  left: 9%;
  top: 29%;
  width: 33%;
  height: auto;
  transform-origin: 72% 78%;
  animation: robotHandWave 1.05s ease-in-out infinite;
}

.wave-ring {
  position: absolute;
  left: 2%;
  top: 26%;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(18, 200, 223, .65);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-24deg) scale(.7);
  animation: robotWaveRing 1.4s ease-out infinite;
}

.ring-two {
  animation-delay: .36s;
}

@keyframes robotFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes robotHandWave {
  0%, 100% {
    transform: rotate(-10deg);
  }
  25% {
    transform: rotate(13deg);
  }
  50% {
    transform: rotate(-7deg);
  }
  75% {
    transform: rotate(11deg);
  }
}

@keyframes robotWaveRing {
  0% {
    opacity: 0;
    transform: rotate(-24deg) scale(.62);
  }
  24% {
    opacity: .95;
  }
  100% {
    opacity: 0;
    transform: rotate(-24deg) scale(1.55);
  }
}

.chatbot-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 46;
  width: min(370px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: #fff;
  background: var(--navy);
}

.chatbot-head strong,
.chatbot-head span {
  display: block;
}

.chatbot-head span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.chatbot-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-size: 20px;
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 16px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.quick-questions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-2);
  background: #f7fbfc;
  font-size: 13px;
  font-weight: 900;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}

.chatbot-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.chatbot-form button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.floating-quote {
  display: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 30px clamp(18px, 4vw, 0px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong,
.site-footer span,
.site-footer small {
  display: block;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer small {
  margin-top: 6px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 12px;
    font-size: 14px;
  }

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

  .platform-section,
  .video-showcase,
  .contact-section,
  .section-intro,
  .quote-panel,
  .chatbot-service,
  .faq-section {
    grid-template-columns: 1fr;
  }

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

  .estimate-result {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(7, 23, 46, .98);
    box-shadow: var(--shadow-strong);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .admin-menu,
  .site-nav .nav-cta {
    padding: 12px;
    border-radius: 8px;
  }

  .site-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    min-height: 720px;
    padding: 76px 16px 34px;
    background:
      linear-gradient(180deg, rgba(7, 23, 46, .96) 0%, rgba(7, 23, 46, .86) 48%, rgba(7, 23, 46, .64) 100%),
      url("../images/hero/software-studio.png?v=20260624-studio") center / cover no-repeat;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .platform-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-stack {
    margin-top: 24px;
  }

  .hero-stack span {
    font-size: 12px;
  }

  .quick-metrics {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 16px;
    transform: translateY(-18px);
  }

  .quick-metrics div {
    min-height: 112px;
    padding: 18px;
  }

  .quick-metrics span {
    font-size: 15px;
  }

  .section {
    padding-top: 66px;
    padding-left: 16px;
    padding-right: 16px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 20px;
  }

  .service-grid,
  .portfolio-panel,
  .platform-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-grid,
  .portfolio-grid,
  .workflow,
  .admin-band,
  .estimate-form fieldset:first-child,
  .estimate-form fieldset:last-child,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card-large {
    grid-column: auto;
  }

  .service-card,
  .workflow article {
    min-height: auto;
  }

  .platform-section,
  .admin-band,
  .contact-section {
    margin-top: 70px;
  }

  .dashboard-card {
    position: static;
    max-width: none;
    margin-top: 10px;
  }

  fieldset,
  .admin-band,
  .contact-form,
  .chatbot-preview {
    padding: 18px;
  }

  .range-row {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 26px 16px;
    border-radius: 0;
  }

  .chatbot-toggle {
    right: 14px;
    bottom: 14px;
  }

  .chatbot-bubble-label {
    display: none;
  }

  .chatbot-lottie {
    width: 68px;
    height: 68px;
  }
  .robot-wave {
    width: 72px;
    height: 72px;
  }

  .chatbot-panel {
    right: 14px;
    bottom: 92px;
  }

  .floating-quote {
    position: fixed;
    left: 14px;
    right: 94px;
    bottom: 14px;
    z-index: 44;
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 8px;
    color: #fff;
    background: var(--navy);
    box-shadow: var(--shadow);
    font-weight: 950;
  }

  .site-footer {
    display: grid;
    margin-top: 44px;
    padding: 24px 16px;
  }
}
