:root {
  --bg: #f4f7ff;
  --bg-soft: #eaf0ff;
  --card: #ffffff;
  --line: #d7e2ff;
  --text: #111933;
  --muted: #4b5a80;
  --primary: #3558ff;
  --primary-strong: #7049ff;
  --accent: #17b977;
  --danger: #e94f62;
  --radius: 20px;
  --shadow: 0 18px 42px rgba(26, 44, 103, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background:
    radial-gradient(1100px 500px at -10% -5%, rgba(53, 88, 255, 0.18), transparent 55%),
    radial-gradient(1000px 460px at 110% -10%, rgba(23, 185, 119, 0.16), transparent 55%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 34%, #f5f8ff 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

.section { padding: 92px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(237, 244, 255, 0.68));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1, h2, h3 {
  line-height: 1.14;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.5rem); }
h3 { font-size: clamp(1.08rem, 1.6vw, 1.36rem); }

p { margin: 0 0 14px; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.lead {
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  color: #2c3d69;
}

.section-lead {
  max-width: 76ch;
  color: #3f507d;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(251, 253, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0d1738;
}

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

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: #32446f;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(92deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 14px 28px rgba(53, 88, 255, 0.26);
}

.btn-ghost {
  border-color: #b8c8f8;
  color: #21366e;
  background: rgba(255, 255, 255, 0.86);
}

.hero {
  padding-top: 104px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 34px;
  align-items: start;
}

.hero h1 span {
  background: linear-gradient(90deg, #1538c7, #6439ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-cta {
  margin: 24px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 21px;
  color: #334776;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card,
.card,
.feature,
.contact-form,
.subdomain-table,
.contact-grid {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.hero-card dt {
  color: #17244d;
  font-weight: 700;
}

.hero-card dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.bento-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 22px;
}

.feature-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 22px;
}

.card h3,
.feature h3 {
  margin-bottom: 10px;
}

.pill-grid {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-grid span {
  border: 1px solid #c9d6ff;
  background: #eef3ff;
  padding: 8px 12px;
  border-radius: 999px;
  color: #20386d;
  font-size: 0.95rem;
  font-weight: 600;
}

.subdomain-table {
  margin-top: 24px;
  overflow: hidden;
  background: #fff;
}

.subdomain-table > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.subdomain-table > div:last-child { border-bottom: 0; }
.subdomain-table strong { color: #15234b; }
.subdomain-table span { color: var(--muted); }

.note {
  margin-top: 14px;
}

.contact-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 100%);
}

.contact-form {
  padding: 18px;
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
}

label {
  font-size: 0.9rem;
  color: #1f325f;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c8d7ff;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(53, 88, 255, 0.28);
  outline-offset: 1px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: #45557f;
  background: rgba(255, 255, 255, 0.68);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.chat-launch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  border: 1px solid #b8c9ff;
  border-radius: 999px;
  background: linear-gradient(92deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  box-shadow: 0 14px 32px rgba(41, 71, 199, 0.36);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-launch .icon {
  font-size: 1.2em;
}

.chat-launch.voice-enabled {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 14px 32px rgba(41, 71, 199, 0.36); }
  50% { box-shadow: 0 14px 48px rgba(41, 71, 199, 0.58); }
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: min(390px, calc(100vw - 26px));
  height: min(560px, calc(100vh - 112px));
  background: #ffffff;
  border: 1px solid #c7d6ff;
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(20, 37, 86, 0.24);
  z-index: 150;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.chat-head {
  padding: 12px 14px;
  border-bottom: 1px solid #d8e2ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #f8fbff, #eef3ff);
}

.chat-head strong {
  font-size: 0.95rem;
  color: #162751;
}

.chat-log {
  padding: 14px;
  overflow: auto;
  display: grid;
  gap: 10px;
  background: #ffffff;
}

.chat-msg {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #1f2b50;
}

.chat-msg.user {
  background: #e8efff;
  border: 1px solid #c8d7ff;
}

.chat-msg.bot {
  background: #f6f9ff;
  border: 1px solid #d9e4ff;
}

.chat-form {
  border-top: 1px solid #d8e2ff;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 46px 46px auto;
  gap: 8px;
  background: #fcfdff;
  align-items: center;
}

.btn-voice-record,
.btn-call-mode {
  border: 1px solid #b8c9ff;
  border-radius: 12px;
  background: #eef3ff;
  color: #3558ff;
  font-size: 1.2rem;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-voice-record:hover,
.btn-call-mode:hover {
  background: #dce7ff;
}

.btn-call-mode.active {
  background: #e8f5e9;
  border-color: #5fbf6a;
  color: #1d7d2a;
}

.btn-voice-record.recording {
  background: #ffebee;
  border-color: #e94f62;
  color: #e94f62;
  animation: recording-pulse 1s infinite;
}

.btn-send {
  min-width: 88px;
}

@keyframes recording-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.chat-status {
  padding: 8px 14px;
  background: #f8fbff;
  border-top: 1px solid #d8e2ff;
  font-size: 0.88rem;
  color: #3f507d;
  display: none;
}

.chat-status.recording {
  background: #fff3e0;
  color: #e65100;
  font-weight: 700;
}

.chat-status.processing {
  background: #e3f2fd;
  color: #1976d2;
}

.chat-status.error {
  background: #ffebee;
  color: #c62828;
}

.chat-status.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.chat-head .controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-voice {
  font-size: 1.2em;
}

.btn-voice.active {
  background: #e8f5e9;
  border-color: #66bb6a;
}

.btn-audio-play {
  border: none;
  background: transparent;
  font-size: 1.2em;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}

.btn-audio-play:hover {
  transform: scale(1.1);
}

.msg-time {
  display: block;
  font-size: 0.72rem;
  color: #7b8db5;
  margin-top: 4px;
  text-align: right;
}

.msg-content {
  flex: 1;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .feature-list,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .nav-list { display: none; }
  .section { padding: 74px 0; }

  .chat-form {
    grid-template-columns: 1fr 44px 44px auto;
  }

  .btn-voice-record,
  .btn-call-mode {
    width: 44px;
    height: 44px;
  }
}
