:root {
  --bg: #070b2c;
  --bg-soft: #121a4f;
  --text: #ecf0ff;
  --text-dark: #1c2354;
  --primary: #5e7bff;
  --secondary: #ff5fc4;
  --accent: #38e0c2;
  --card: #ffffff;
  --border: #d7ddff;
  --shadow: 0 18px 45px rgba(13, 18, 60, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(145deg, #eef2ff, #fdf0ff 45%, #e9fffb);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: rgba(7, 11, 44, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(94, 123, 255, 0.45);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  color: #dbe2ff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(94, 123, 255, 0.3);
}

.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 95, 196, 0.32), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(56, 224, 194, 0.28), transparent 33%),
    linear-gradient(125deg, var(--bg), var(--bg-soft));
  color: var(--text);
  padding: 4.8rem 0 3.7rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(94, 123, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  margin: 0.7rem 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
}

.lead {
  max-width: 63ch;
  color: #d8dfff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 0.72rem 1.25rem;
  border-radius: 0.7rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 95, 196, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-large {
  padding: 0.95rem 1.65rem;
  font-size: 1.05rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1rem;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.hero-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.float {
  animation: floatY 5.8s ease-in-out infinite;
}

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

.section {
  padding: 4.2rem 0;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #1a1c55;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.about-content {
  grid-column: 1 / 2;
}

.brand-card {
  grid-column: 2 / 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(27, 36, 99, 0.1);
  text-align: center;
}

.brand-tag {
  margin: 0;
  font-size: 0.8rem;
  color: #5d66a4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-badge {
  margin: 0.75rem auto 0.55rem;
  width: 100px;
  height: 100px;
  position: relative;
}

.photo-badge img,
.photo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.photo-badge img {
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 10px 22px rgba(27, 36, 99, 0.18);
  opacity: 0;
}

.photo-badge img.ready {
  opacity: 1;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
  border: 3px solid #fff;
  box-shadow: 0 10px 22px rgba(27, 36, 99, 0.18);
}

.photo-fallback.hide {
  display: none;
}

.brand-name {
  margin: 0.2rem 0 0;
}

.brand-role {
  margin: 0.2rem 0 0.4rem;
  color: #525ca0;
}

.brand-note {
  margin: 0;
  font-size: 0.86rem;
}

.section-accent {
  background: linear-gradient(165deg, #f2f3ff, #ffffff 58%, #ebfffa);
}

.card-grid {
  margin-top: 1.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(27, 36, 99, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(27, 36, 99, 0.14);
}

.card h3 {
  margin: 0.1rem 0 0.4rem;
  color: #2a2f76;
}

.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.3rem;
}

.check-list {
  padding-left: 1.2rem;
}

.check-list li {
  margin-bottom: 0.45rem;
}

.steps {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 28px rgba(33, 42, 115, 0.12);
}

.steps h3 {
  margin-top: 0;
  color: #2d2f6d;
}

.section-form {
  background: linear-gradient(165deg, #f6f8ff, #fff 55%, #ecfff9);
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.delivery-box {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(27, 36, 99, 0.08);
}

.delivery-box h3 {
  margin: 0 0 0.35rem;
}

.application-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(27, 36, 99, 0.14);
}

.application-form label {
  display: block;
  margin: 0.55rem 0 0.2rem;
  font-weight: 600;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 0.72rem 0.78rem;
  border: 1px solid #cbd4ff;
  border-radius: 0.64rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 123, 255, 0.2);
}

.application-form button {
  margin-top: 0.95rem;
}

.section-cta {
  text-align: center;
  background: linear-gradient(125deg, #071145, #202a83, #1f8f8d);
  color: #edf3ff;
}

.section-cta h2 {
  color: #fff;
}

.section-cta p {
  max-width: 70ch;
  margin: 0.6rem auto 1.1rem;
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #d7e3ff;
}

.site-footer {
  padding: 1.2rem 0;
  background: #03061f;
  color: #c5d0ff;
  font-size: 0.93rem;
  text-align: center;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .form-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    grid-column: auto;
  }

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

@media (max-width: 640px) {
  .main-nav {
    gap: 0.4rem;
  }

  .main-nav a {
    font-size: 0.86rem;
    padding: 0.25rem 0.45rem;
  }

  .section {
    padding: 3.3rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .logo span {
    font-size: 0.9rem;
  }
}

/* ── AI Chat Widget ────────────────────────── */

.chat-widget {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 9999;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(94, 123, 255, 0.45);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(94, 123, 255, 0.55);
}

.chat-toggle .chat-icon-close { display: none; }
.chat-widget.open .chat-toggle .chat-icon-open { display: none; }
.chat-widget.open .chat-toggle .chat-icon-close { display: block; }

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  animation: badgePulse 2s ease-in-out infinite;
}

.chat-widget.open .chat-badge,
.chat-badge.hide { display: none; }

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.chat-window {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 370px;
  max-height: 520px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(13, 18, 60, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-widget.open .chat-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #0a1150, #1e2a8a);
  color: #fff;
}

.chat-header strong {
  display: block;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.76rem;
  color: #9fefcf;
}

.chat-header-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.chat-header-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.chat-online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0a1150;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 240px;
  max-height: 300px;
}

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
  background: #f0f2ff;
  color: #1c2354;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg.user {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.6rem 0.85rem;
  align-self: flex-start;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a0a8d4;
  animation: typingDot 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.9rem 0.5rem;
}

.chat-suggestions button {
  background: #eef0ff;
  color: #3b44a0;
  border: 1px solid #d0d5ff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.chat-suggestions button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.chat-input-wrap {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.8rem;
  border-top: 1px solid #e8ecff;
  background: #fafbff;
}

.chat-input-wrap input {
  flex: 1;
  border: 1px solid #d0d6ff;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  outline: 0;
  transition: border-color 0.2s;
}

.chat-input-wrap input:focus {
  border-color: var(--primary);
}

.chat-input-wrap button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.chat-input-wrap button:hover {
  transform: scale(1.08);
}

@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 2rem);
    right: -0.4rem;
    max-height: 70vh;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
