:root {
  --bg-start: #0c1220;
  --bg-end: #0b1a24;
  --muted: #8aa0b2;
  --text: #eaf2f9;
  --accent: #19c37d;
  --accent2: #60a0ff;
  --accent3: #b06dff;
  --card: #111a26;
  --border: #203042;
  --grid: rgba(255, 255, 255, 0.06);
}

body.theme-light {
  --bg-start: #f4f7fb;
  --bg-end: #eef2f7;
  --muted: #4d6478;
  --text: #0b1a24;
  --accent: #19c37d;
  --accent2: #3b7cff;
  --accent3: #7a55ff;
  --card: #ffffff;
  --border: #d6e0ea;
  --grid: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 10% 10%,
      #0f1f2e 0%,
      transparent 60%
    ),
    radial-gradient(1200px 600px at 90% 20%, #0b2532 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-start), var(--bg-end));
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
    Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, sans-serif;
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
}
body.theme-light {
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
}

/* Ensure main content takes remaining space in flex layout */
main {
  flex: 1 0 auto;
}



#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background: radial-gradient(
      600px 300px at 10% 10%,
      rgba(25, 195, 125, 0.1),
      transparent 60%
    ),
    radial-gradient(
      800px 400px at 85% 20%,
      rgba(64, 160, 255, 0.06),
      transparent 60%
    );
  filter: blur(24px);
  z-index: -1;
  animation: glowMove 24s ease-in-out infinite alternate;
}
body.theme-light::before {
  filter: blur(18px);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
      0deg,
      var(--grid) 0 1px,
      transparent 1px 120px
    ),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 120px);
  opacity: 0.16;
  mix-blend-mode: screen;
  z-index: -1;
  animation: gridShift 40s linear infinite;
}
body.theme-light::after {
  opacity: 0.12;
  mix-blend-mode: multiply;
}
@keyframes gridShift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 240px 0, 0 240px;
  }
}
@keyframes glowMove {
  0% {
    transform: translate3d(-1%, 0, 0);
  }
  100% {
    transform: translate3d(1%, 1%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  body::after,
  body::before {
    animation: none;
  }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(8px);
  background: rgba(12, 18, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-light .site-header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.body-offset {
  padding-top: 72px;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 20px;
  align-items: center;
  height: 72px;
}
.nav-right {
  text-decoration: none;
}
.logo {
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text);
}
.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  width: 100%;
}
.auth {
  display: flex;
  gap: 10px;
  align-items: center;
}
.auth .link {
  color: var(--muted);
  text-decoration: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.theme-light .btn {
  background: #f3f6fa;
  border-color: rgba(0, 0, 0, 0.06);
}
.btn.small {
  padding: 8px 12px;
}
.btn.primary {
  background: var(--accent);
  color: #072614;
  border: 1px solid #0da767;
}
.btn.primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.btn:hover {
  transform: translateY(-1px);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-light .theme-btn {
  background: #f3f6fa;
  border-color: rgba(0, 0, 0, 0.06);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.hero {
  padding: 100px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-copy h1 {
  background: linear-gradient(
    90deg,
    var(--text),
    var(--accent2),
    var(--accent3),
    var(--text)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 16s linear infinite;
}
.theme-light .hero-copy h1 {
  animation-duration: 12s;
}
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
.hero-copy .lead {
  color: var(--text);
  opacity: 0.92;
  margin: 0 0 10px;
  font-size: 18px;
}
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 6px;
}
.hero-bullets .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(25, 195, 125, 0.14),
    rgba(96, 160, 255, 0.1)
  );
  color: var(--text);
  border: 1px solid rgba(25, 195, 125, 0.24);
  font-weight: 700;
  font-size: 13px;
}
.hero-bullets .chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(25, 195, 125, 0.18);
}
.hero-bullets .chip:nth-child(2)::before {
  background: var(--accent2);
  box-shadow: 0 0 0 2px rgba(96, 160, 255, 0.18);
}
.hero-bullets .chip:nth-child(3)::before {
  background: var(--accent3);
  box-shadow: 0 0 0 2px rgba(176, 109, 255, 0.18);
}
.actions {
  margin-top: 20px;
}
.hero-copy p {
  color: var(--muted);
  margin: 0 0 14px;
}
.actions {
  margin-top: 24px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 195, 125, 0.15);
  color: var(--accent);
  border: 1px solid #0da767;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-media {
  position: relative;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}
.panel {
  position: relative;
  background: linear-gradient(180deg, #0e1826, #0b1520);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
body.theme-light .panel {
  background: #f7fafc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.panel-top .dot:nth-child(1) {
  background: var(--accent);
}
.panel-top .dot:nth-child(2) {
  background: var(--accent2);
}
.panel-top .dot:nth-child(3) {
  background: var(--accent3);
}
.url {
  color: #aec6da;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 6px;
  flex: 1;
}
.panel-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.code,
.json {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  padding: 18px;
}
.code {
  border-bottom: 1px solid var(--border);
  color: #a6c3e0;
}
.json {
  color: #9fe1bf;
}
.line {
  line-height: 1.5;
}

.phone {
  position: relative;
  right: auto;
  bottom: auto;
  width: 300px;
  min-height: 360px;
  background: #0b1a24;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: visible;
}
.phone {
  display: flex;
  flex-direction: column;
}
.phone-notch {
  height: 18px;
  width: 40%;
  margin: 8px auto 0;
  background: #071118;
  border-radius: 0 0 14px 14px;
}
.chat-header {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #071118, #0a1620);
  border-bottom: 1px solid var(--border);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0b2532;
  color: #9fb3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.contact .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.contact .presence {
  font-size: 12px;
  color: #7f93a6;
}
.header-actions {
  display: inline-flex;
  gap: 8px;
}
.icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-body {
  padding: 10px 10px 16px;
  background: #071118;
  flex: 1;
  overflow-y: auto;
}
.msg {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}
.msg .bubble {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.msg.in .bubble {
  background: #053b26;
  color: #baf3d5;
  border: 1px solid rgba(25, 195, 125, 0.25);
  border-top-left-radius: 6px;
}
.msg.out {
  justify-items: end;
}
.msg.out .bubble {
  background: #0b2532;
  color: #cfe1f4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-right-radius: 6px;
}
.bubble .otp {
  font-weight: 800;
  background: rgba(25, 195, 125, 0.18);
  color: var(--text);
  padding: 0 4px;
  border-radius: 6px;
}
.msg .meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7f93a6;
  font-size: 11px;
}
.msg .ticks {
  position: relative;
  width: 14px;
  height: 10px;
  display: inline-block;
}
.msg .ticks::before,
.msg .ticks::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 2px;
  background: #7f93a6;
  transform: skewX(-40deg);
  border-radius: 2px;
}
.msg .ticks::after {
  left: 4px;
}
.msg.read .ticks::before,
.msg.read .ticks::after {
  background: #19c37d;
}
.typing .bubble {
  width: 42px;
  display: inline-flex;
  justify-content: space-between;
  background: #0b2532;
  color: #9fb3c7;
}
.typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9fb3c7;
  animation: typing 1.2s infinite ease-in-out;
}
.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}
.hidden {
  display: none;
}
@keyframes typing {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  40% {
    transform: translateY(-2px);
    opacity: 1;
  }
}
body.theme-light .phone {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
body.theme-light .phone-notch,
body.theme-light .chat-body {
  background: #f7fafc;
}
body.theme-light .chat-header {
  background: linear-gradient(180deg, #f0f4f8, #e6edf5);
}

/* Advanced Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #0a0e1a 0%, #121a2b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 0 0;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
  display: block;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(100, 149, 237, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(138, 43, 226, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.footer-section:first-child {
  padding-right: 40px;
}

.footer-brand .logo {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: rgba(100, 149, 237, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
  border-color: rgba(100, 149, 237, 0.4);
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-hours {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.5;
}

.footer-hours span {
  display: block;
}

/* Newsletter Section */
.footer-newsletter {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.newsletter-content .footer-title {
  margin-bottom: 8px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  transition: all 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(100, 149, 237, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

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

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-section:first-child {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-form {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .footer-section:first-child {
    text-align: left;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-bottom-links {
    gap: 16px;
  }
}

/* Light Theme Support */
body.theme-light .site-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-light .site-footer::before {
  background: radial-gradient(
      circle at 20% 20%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(147, 51, 234, 0.1) 0%,
      transparent 50%
    );
}

body.theme-light .footer-brand .logo {
  color: #1e293b;
}

body.theme-light .footer-description {
  color: rgba(0, 0, 0, 0.7);
}

body.theme-light .social-link {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-light .social-link:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #1e293b;
  border-color: rgba(59, 130, 246, 0.4);
}

body.theme-light .footer-title {
  color: #1e293b;
}

body.theme-light .footer-links a {
  color: rgba(0, 0, 0, 0.7);
}

body.theme-light .footer-links a:hover {
  color: #1e293b;
}

body.theme-light .footer-hours {
  color: rgba(0, 0, 0, 0.6);
}

body.theme-light .footer-newsletter {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-light .newsletter-input {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
}

body.theme-light .newsletter-input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

body.theme-light .newsletter-input:focus {
  border-color: rgba(59, 130, 246, 0.6);
}

body.theme-light .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
}

body.theme-light .footer-bottom-content {
  color: rgba(0, 0, 0, 0.6);
}

body.theme-light .footer-bottom-links a {
  color: rgba(0, 0, 0, 0.6);
}

body.theme-light .footer-bottom-links a:hover {
  color: #1e293b;
}

/* Newsletter Success Message */
.newsletter-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  margin-top: 16px;
  display: none;
}

.newsletter-success.show {
  display: block;
  animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.theme-light .avatar {
  background: #e6edf5;
  color: #4d6478;
}
body.theme-light .msg.in .bubble {
  background: #e9faf2;
  color: #145d3b;
  border-color: rgba(25, 195, 125, 0.25);
}
body.theme-light .msg.out .bubble {
  background: #eef6ff;
  color: #0b1a24;
  border-color: rgba(0, 0, 0, 0.06);
}

.chat-footer {
  display: block;
  padding: 10px;
  background: linear-gradient(180deg, #0a1620, #09121b);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
body.theme-light .chat-footer {
  background: linear-gradient(180deg, #eef6ff, #e9f1fb);
}
.toolbar {
  display: inline-flex;
  gap: 8px;
}
.tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.theme-light .tool-btn {
  background: #f3f6fa;
  border-color: rgba(0, 0, 0, 0.06);
}
.tool-btn.attach {
  position: relative;
}
.tool-btn.attach::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 2px solid #9fb3c7;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
  border-radius: 2px;
}
.tool-btn.emoji {
  position: relative;
}
.tool-btn.emoji::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 14px;
  height: 8px;
  border-radius: 0 0 10px 10px;
  background: #9fb3c7;
}
.tool-btn.emoji::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 2px;
  height: 2px;
  background: #9fb3c7;
  box-shadow: 6px 0 0 #9fb3c7;
}
.tool-btn.mic {
  position: relative;
}
.tool-btn.mic::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 8px;
  height: 12px;
  border-radius: 6px;
  background: #9fb3c7;
}
.tool-btn.mic::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 18px;
  width: 2px;
  height: 6px;
  background: #9fb3c7;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b2532;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 8px;
}
body.theme-light .input-wrap {
  background: #eef6ff;
  border-color: rgba(0, 0, 0, 0.06);
}
.reply-input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 13px;
}
.reply-input:focus {
  outline: none;
}
.send-btn {
  width: 32px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid #0da767;
  position: relative;
}
.send-btn::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 9px;
  width: 0;
  height: 0;
  border-left: 10px solid #072614;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.section {
  padding: 80px 0;
}
.section.alt {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    rgba(13, 22, 35, 0.6),
    rgba(9, 18, 27, 0.6)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.theme-light .section.alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.6)
  );
  border-top-color: rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 20px;
  color: var(--text);
}
.section-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.card h3 {
  margin: 0 0 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.benefit {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.benefit:nth-child(odd) {
  background: linear-gradient(180deg, var(--card), rgba(25, 195, 125, 0.08));
}
.benefit:nth-child(even) {
  background: linear-gradient(180deg, var(--card), rgba(96, 160, 255, 0.08));
}
.benefit h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.benefit h3::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: radial-gradient(
    circle at 30% 30%,
    #30e69a,
    #0da767 60%,
    transparent 61%
  );
  display: inline-block;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.metric .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--accent2),
    var(--accent3)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 18s linear infinite;
}
.metric .label {
  margin-top: 6px;
  color: var(--muted);
}

.usecases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.uc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.uc {
  border-left: 3px solid var(--accent);
}
.uc:nth-child(odd) {
  border-left-color: var(--accent2);
}
.uc:nth-child(even) {
  border-left-color: var(--accent3);
}
.uc:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.quote .author {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.api-tabs {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.tab-buttons {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.tab-buttons button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.tab-buttons button.active {
  background: var(--accent);
  color: #072614;
  border-color: #0da767;
}
.tab-panels {
  padding: 16px;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(25, 195, 125, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.api {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.api-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.api-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  color: #a6c3e0;
}
.mono.small {
  font-size: 13px;
  color: #8aa0b2;
}
.codeblock {
  background: #0b1520;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
}
code .tok-key {
  color: var(--accent2);
}
code .tok-string {
  color: #9fe1bf;
}
code .tok-number {
  color: #ffd479;
}
code .tok-boolean {
  color: #ff8a8a;
}
code .tok-null {
  color: #9aa9b9;
}
code .tok-brace,
code .tok-colon,
code .tok-comma {
  color: #8aa0b2;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  justify-content: space-between;
  transform-origin: center bottom;
  box-sizing: border-box;
  min-height: 320px;
  position: relative;
}
.plan:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  border-color: #0da767;
  transform: scale(1.02);
}

.plan:hover .price {
  color: var(--accent);
}
.plan:hover .btn {
  background: var(--accent);
  color: #072614;
  border-color: #0da767;
  filter: brightness(1.05);
}
.plan .btn {
  margin-top: auto;
  align-self: flex-start;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  flex-shrink: 0;
}

.plan .price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.plan .price::after {
  content: "Best value";
  display: none;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(25, 195, 125, 0.16);
  color: var(--accent);
  font-size: 12px;
}
.plan.recommended .price::after {
  display: inline-flex;
}
.pricing-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.list-check li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  min-height: 48px;
  position: relative;
  padding-top: 24px;
  box-sizing: border-box;
}
.price {
  font-size: 28px;
  font-weight: 700;
}
.price span {
  font-size: 14px;
  color: var(--muted);
  margin-left: 6px;
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  flex: 1 0 auto;
  box-sizing: border-box;
}
.plan:hover .features-list {
  color: var(--text);
}
.plan:hover .features-list li::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: -1px;
}

.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: transparent;
  color: var(--text);
  border: 0;
  font-size: 16px;
}
.faq-question .icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}
.faq-question .icon::before,
.faq-question .icon::after {
  content: "";
  position: absolute;
  background: var(--text);
}
.faq-question .icon::before {
  width: 10px;
  height: 2px;
  top: 8px;
  left: 4px;
}
.faq-question .icon::after {
  width: 2px;
  height: 10px;
  top: 4px;
  left: 8px;
  transition: transform 0.2s;
}
.faq-item.open .faq-question .icon::after {
  transform: scaleY(0);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  color: var(--muted);
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer {
  max-height: 140px;
  padding-bottom: 16px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.footer-columns h4 {
  margin: 0 0 8px;
  color: var(--text);
}
.footer-columns a {
  color: var(--muted);
  text-decoration: none;
}
.footer-columns a:hover {
  color: var(--text);
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    min-height: 560px;
    display: block;
  }
  .phone {
    margin: 16px auto 0;
  }
  .steps,
  .api,
  .pricing,
  .benefits,
  .metrics,
  .usecases,
  .testimonials {
    grid-template-columns: 1fr 1fr;
  }
  .api-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .auth {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }
  .site-header.open .nav {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 18px 24px;
    background: rgba(12, 18, 32, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-header.open .auth {
    display: flex;
    position: absolute;
    top: 128px;
    right: 24px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .steps,
  .api,
  .pricing,
  .benefits,
  .metrics,
  .usecases,
  .testimonials {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-extra {
    grid-template-columns: 1fr;
  }
}
.cta {
  background: linear-gradient(
    90deg,
    rgba(25, 195, 125, 0.16),
    rgba(25, 195, 125, 0.06)
  );
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.cta h3 {
  margin: 0;
}
.cta p {
  margin: 0;
  color: var(--muted);
}
.form {
  display: grid;
  gap: 12px;
}
.form-row {
  display: grid;
  gap: 6px;
}
.input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 12px;
}
.input::placeholder {
  color: #98a9b9;
}
.form-row label {
  color: var(--muted);
  font-size: 14px;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(25, 195, 125, 0.18);
}
.input.invalid {
  border-color: #d66;
  box-shadow: 0 0 0 3px rgba(214, 102, 102, 0.18);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.toggle-password {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
body.theme-light .toggle-password {
  background: #f3f6fa;
  border-color: rgba(0, 0, 0, 0.06);
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.notice {
  background: rgba(25, 195, 125, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
}
