:root {
  --bg-main: #0b0b0d;
  --bg-soft: #121216;
  --text-main: #f5f5f7;
  --text-muted: #b7b7bf;
  --brand: #ff7a00;
  --brand-2: #ffae42;
  --border-soft: rgba(255, 255, 255, 0.12);
  --radius-lg: 1.25rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 12% 10%, rgba(0, 60, 255, 0.2), transparent 35%),
    radial-gradient(circle at 88% 22%, rgba(29, 62, 88, 0.15), transparent 30%),
    var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.navbar {
  padding: 1rem 0;
  transition: all 0.25s ease;
  background: rgba(10, 10, 12, 0.35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 12, 0.92);
  border-color: var(--border-soft);
  padding: 0.65rem 0;
}

.navbar-brand,
.nav-link {
  color: #fff !important;
}

.brand-accent {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  opacity: 1;
}

.btn-brand {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border: none;
  color: #000;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-brand:hover,
.btn-brand:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.35);
  color: #000;
}

.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
}

.hero-tag {
  width: fit-content;
  border: 1px solid var(--border-soft);
  color: #ffd9b2;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.text-gradient {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-kpis .kpi-card {
  border: 1px solid var(--border-soft);
  border-radius: 0.95rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.kpi-card h3 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--brand-2);
}

.kpi-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 122, 0, 0.08));
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.timeline-item {
  display: flex;
  gap: 0.95rem;
  margin-bottom: 1.2rem;
}

.timeline-item span {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  flex-shrink: 0;
}

.timeline-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section-space {
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.section-title {
  max-width: 780px;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.4rem);
}

.section-text {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.chip {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.about-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
}

.about-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.about-box li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.about-box i {
  color: var(--brand-2);
}

.service-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 174, 66, 0.5);
}

.service-card i {
  font-size: 1.5rem;
  color: var(--brand-2);
}

.service-card h3 {
  margin-top: 0.9rem;
  font-size: 1.08rem;
}

.service-card p {
  color: var(--text-muted);
  margin: 0;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #111;
  height: 100%;
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-media .carousel,
.project-media .carousel-inner,
.project-media .carousel-item {
  height: 100%;
}

.project-body {
  padding: 1rem;
}

.project-body h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.project-body p {
  margin: 0;
  color: var(--text-muted);
}

.content-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
}

.content-badge {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.8rem;
  background: rgba(255, 174, 66, 0.15);
  color: #ffdcb7;
}

.content-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}

.content-card p {
  color: var(--text-muted);
}

.content-card a {
  color: var(--brand-2);
  text-decoration: none;
}

.pricing-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.03);
}

.pricing-card.featured {
  border-color: rgba(255, 174, 66, 0.6);
  box-shadow: 0 14px 35px rgba(255, 122, 0, 0.15);
}

.pricing-card h3 {
  margin-bottom: 0.35rem;
}

.price {
  color: var(--brand-2);
  margin-bottom: 0.8rem;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.pricing-card li {
  margin-bottom: 0.45rem;
}

.contact-list p {
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.contact-list i {
  color: var(--brand-2);
  margin-right: 0.4rem;
}

.contact-form {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.03);
}

.chatbot-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 1.3rem;
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #111;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.35);
  z-index: 1025;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 34px rgba(255, 122, 0, 0.45);
}

.chatbot-widget {
  position: fixed;
  right: 1.2rem;
  bottom: 5.6rem;
  width: min(380px, calc(100vw - 1.5rem));
  z-index: 1024;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.chatbot-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  background: rgba(16, 16, 22, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.chatbot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.chatbot-head small {
  color: var(--text-muted);
}

.chatbot-close {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text-main);
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.chatbot-close:hover,
.chatbot-close:focus {
  border-color: rgba(255, 174, 66, 0.6);
  background-color: rgba(255, 174, 66, 0.12);
}

.chat-messages {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  padding: 0.8rem;
  height: 220px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chat-msg {
  width: fit-content;
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.chat-msg.bot {
  background: rgba(255, 174, 66, 0.14);
  border: 1px solid rgba(255, 174, 66, 0.25);
  color: #ffe5c6;
}

.chat-msg.user {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-input-wrap {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.chat-input-wrap .btn {
  white-space: nowrap;
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 174, 66, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.form-select option {
  background: #1b1b1f;
  color: #fff;
}

.footer {
  border-top: 1px solid var(--border-soft);
  background: #09090b;
}

.footer p {
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--brand-2);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 7rem;
  }

  .section-space {
    padding: 4.2rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero-card,
  .service-card,
  .project-card,
  .content-card,
  .pricing-card,
  .about-box,
  .contact-form {
    border-radius: 1rem;
  }

  .chatbot-widget {
    right: 0.75rem;
    bottom: 5.3rem;
    width: calc(100vw - 1.5rem);
  }

  .chat-messages {
    height: 200px;
  }
}
