/* ===================================================
   WOLFIAX – Intelligent Automation Solutions
   Design System & Styles
   =================================================== */

/* — Local Fonts — */
@font-face {
  font-family: 'Pattanakarn';
  src: url('fonts/pattanakarn/pattanakarn-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Pattanakarn';
  src: url('fonts/pattanakarn/pattanakarn-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Pattanakarn';
  src: url('fonts/pattanakarn/pattanakarn-black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Saira';
  src: url('fonts/saira/saira-variable.ttf') format('truetype');
}

/* — Custom Properties — */
:root {
  /* Colors - Default (Dark) */
  --clr-bg: #0B0B0B;
  --clr-bg-card: #141414;
  --clr-surface: #1A1A1A;
  --clr-graphite: #2E2E2E;
  --clr-accent: #1F6FFF;
  --clr-accent-2: #3D8BFF;
  --clr-glow: rgba(31, 111, 255, .35);
  --clr-text: #FFFFFF;
  --clr-text-dim: #A0A0A0;
  --clr-border: rgba(255, 255, 255, .06);
  --clr-glass: rgba(11, 11, 11, .75);
  --clr-glass-scrolled: rgba(11, 11, 11, .92);

  --ff-primary: 'Pattanakarn', 'Inter', system-ui, sans-serif;
  --ff-secondary: 'Saira', sans-serif;

  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

/* — Light Theme — */
[data-theme="light"] {
  --clr-bg: #F8FAFC;
  --clr-bg-card: #FFFFFF;
  --clr-surface: #F1F5F9;
  --clr-graphite: #E2E8F0;
  --clr-text: #0F172A;
  --clr-text-dim: #475569;
  --clr-border: rgba(0, 0, 0, .08);
  --clr-glow: rgba(31, 111, 255, .15);
  --clr-glass: rgba(248, 250, 252, .75);
  --clr-glass-scrolled: rgba(248, 250, 252, .95);
}

/* — Preloader — */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0B0B0B;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .8s ease, visibility .8s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.scanner-line {
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-accent);
  box-shadow: 0 0 20px var(--clr-accent);
  animation: scan 2s linear infinite;
  opacity: .5;
}

@keyframes scan {
  0% {
    top: -40px;
  }

  50% {
    top: 180px;
  }

  100% {
    top: -40px;
  }
}

.preloader-logo {
  margin-bottom: 30px;
}

.preloader-logo img {
  width: 60px;
  margin: 0 auto 15px;
  filter: drop-shadow(0 0 10px var(--clr-accent));
}

.preloader-text {
  font-family: var(--ff-primary);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.loading-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, .05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: var(--clr-accent);
  box-shadow: 0 0 10px var(--clr-accent);
  transition: width .1s linear;
}

.loading-status {
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-secondary);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--clr-text-dim);
}

/* — Reset — */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden
}

body {
  font-family: var(--ff-primary);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none
}

button,
input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit
}

/* — Utility — */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-secondary);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-dim);
  max-width: 600px;
  line-height: 1.7;
}

/* — Reveal animation — */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.reveal-delay-1 {
  transition-delay: .1s
}

.reveal-delay-2 {
  transition-delay: .2s
}

.reveal-delay-3 {
  transition-delay: .3s
}

.reveal-delay-4 {
  transition-delay: .4s
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  background: var(--clr-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition);
}

.header.scrolled {
  background: var(--clr-glass-scrolled);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px
}

.logo img {
  height: 42px;
  width: 42px;
  border-radius: 50%
}

.logo-text {
  font-family: var(--ff-secondary);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 2px;
}

.logo-text span {
  color: var(--clr-accent)
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--clr-text-dim);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-text)
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  background: var(--clr-accent);
  color: var(--clr-text);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--clr-glow);
}

.btn-primary:hover::before {
  opacity: 1
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--clr-text);
  cursor: pointer;
  transition: all var(--transition);
}

[data-theme="light"] .btn-outline {
  border-color: rgba(0, 0, 0, .15);
}

.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  box-shadow: 0 0 20px rgba(31, 111, 255, .15);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
  color: var(--clr-text);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, .05)
}

.theme-toggle:hover {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 0 15px var(--clr-glow);
}

.theme-toggle .sun-icon {
  display: none
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block
}

/* Language Switcher */
.lang-switcher {
  margin: 0 10px;
}

#langSelect {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
}

[data-theme="light"] #langSelect {
  background: rgba(0, 0, 0, .05)
}

#langSelect:hover {
  border-color: var(--clr-accent);
  background: rgba(31, 111, 255, .1);
}

#langSelect option {
  background: var(--clr-bg);
  color: var(--clr-text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px)
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(31, 111, 255, .12), transparent),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(31, 111, 255, .06), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 64px;
}

.hero-text {
  flex: 1.2
}

.hero-image {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  perspective: 1000px;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
  transform-style: preserve-3d;
  transition: transform .2s ease-out;
}

@media (max-width: 1200px) {
  .image-wrapper {
    max-width: 400px;
  }
}

@media (max-width: 1100px) {
  .image-wrapper {
    max-width: 350px;
  }
}

.image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--clr-bg), transparent 40%);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-wrapper:hover img {
  transform: scale(1.05)
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(31, 111, 255, .1);
  border: 1px solid rgba(31, 111, 255, .25);
  font-family: var(--ff-secondary);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 111, 255, .5)
  }

  50% {
    box-shadow: 0 0 0 8px rgba(31, 111, 255, 0)
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--clr-accent), #60A5FA, var(--clr-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--clr-text-dim);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--clr-border);
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--ff-secondary);
  color: var(--clr-accent);
}

.hero-stat p {
  font-size: .8rem;
  color: var(--clr-text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px
}

/* ============ SOLUTIONS ============ */
.solutions {
  padding: 120px 0;
  position: relative
}

.solutions-header {
  margin-bottom: 64px
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.solution-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(31, 111, 255, .2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .1), 0 0 40px var(--clr-glow);
}

.solution-card:hover::before {
  transform: scaleX(1)
}

.solution-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(31, 111, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.solution-card:hover .solution-icon {
  background: var(--clr-accent);
  box-shadow: 0 8px 24px var(--clr-glow);
}

.solution-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: .9rem;
  color: var(--clr-text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.solution-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--clr-text-dim);
}

.solution-features li::before {
  content: '→';
  color: var(--clr-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============ INDUSTRIES ============ */
.industries {
  padding: 120px 0;
  background: var(--clr-surface);
  position: relative;
}

.industries::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
}

.industries-header {
  margin-bottom: 64px
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.industry-card {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

[data-theme="light"] .industry-card {
  background: rgba(0, 0, 0, .02);
}

.industry-card:hover {
  background: rgba(31, 111, 255, .05);
  border-color: rgba(31, 111, 255, .2);
  transform: translateY(-6px);
}

[data-theme="light"] .industry-card:hover {
  background: rgba(31, 111, 255, .03);
}

.industry-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.industry-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px
}

.industry-card p {
  font-size: .875rem;
  color: var(--clr-text-dim);
  line-height: 1.7
}

/* ============ ABOUT ============ */
.about {
  padding: 120px 0;
  position: relative
}

.about-header {
  margin-bottom: 64px
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.about-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  transition: all var(--transition);
}

.about-card:hover {
  border-color: rgba(31, 111, 255, .15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .15);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(31, 111, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--clr-accent)
}

.about-card p {
  font-size: .925rem;
  color: var(--clr-text-dim);
  line-height: 1.8
}

/* Values */
.values {
  padding-top: 32px
}

.values h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

[data-theme="light"] .value-item {
  background: rgba(0, 0, 0, .02);
}

.value-item:hover {
  background: rgba(31, 111, 255, .06);
  border-color: rgba(31, 111, 255, .2);
}

[data-theme="light"] .value-item:hover {
  background: rgba(31, 111, 255, .03);
}

.value-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--clr-accent);
  box-shadow: 0 0 10px var(--clr-glow);
}

.value-item span {
  font-size: .95rem;
  font-weight: 600
}

/* ============ CONTACT ============ */
.contact {
  padding: 120px 0;
  background: var(--clr-surface);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1rem;
  color: var(--clr-text-dim);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(31, 111, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text {
  font-size: .9rem
}

.contact-detail-text strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600
}

.contact-detail-text span {
  color: var(--clr-text-dim)
}

.contact-form {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.form-group {
  margin-bottom: 20px
}

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-dim);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--clr-text);
  transition: all var(--transition);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: rgba(0, 0, 0, .02);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 255, .15);
  background: rgba(255, 255, 255, .06);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  background: rgba(0, 0, 0, .04);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, .25)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  margin-top: 8px
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block
}

.form-success svg {
  margin: 0 auto 16px;
  color: var(--clr-accent)
}

.form-success h4 {
  font-size: 1.2rem;
  margin-bottom: 8px
}

.form-success p {
  color: var(--clr-text-dim);
  font-size: .9rem
}

/* ============ FOOTER ============ */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--clr-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px
}

.footer-logo img {
  height: 36px;
  width: 36px;
  border-radius: 50%
}

.footer-logo-text {
  font-family: var(--ff-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.footer-logo-text span {
  color: var(--clr-accent)
}

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

.footer-links a {
  font-size: .85rem;
  color: var(--clr-text-dim);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff
}

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

.footer-bottom p {
  font-size: .8rem;
  color: var(--clr-text-dim)
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: all var(--transition);
}

.footer-socials a:hover {
  border-color: var(--clr-accent);
  background: rgba(31, 111, 255, .1);
  color: var(--clr-accent);
}

/* ============ RESPONSIVE ============ */
@media(max-width:1100px) {
  .hero-main {
    gap: 30px
  }

  .image-wrapper {
    max-width: 380px
  }
}

@media(max-width:968px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 360px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: rgba(11, 11, 11, .97);
    backdrop-filter: blur(30px);
    padding: 40px;
    transition: right var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    right: 0
  }

  .nav-links a {
    font-size: 1.1rem
  }

  .hamburger {
    display: flex
  }

  .hero-main {
    flex-direction: column-reverse;
    text-align: center;
    gap: 48px;
  }

  .hero-text {
    width: 100%
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto
  }

  .hero-buttons {
    justify-content: center
  }

  .image-wrapper {
    max-width: 300px;
    margin: 0 auto
  }

  .hero-badge {
    justify-content: center
  }

  .contact-wrapper {
    grid-template-columns: 1fr
  }

  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center
  }
}

@media(max-width:640px) {
  .hero h1 {
    font-size: 2.5rem
  }

  .hero-description {
    font-size: 1rem
  }

  .hero-buttons {
    flex-direction: column
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
    justify-content: center
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .hero-stats {
    gap: 24px
  }

  .hero-stat h3 {
    font-size: 1.8rem
  }

  .section-title {
    font-size: 2.2rem
  }

  .about-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:480px) {
  .hero h1 {
    font-size: 2.2rem
  }

  .section-title {
    font-size: 1.8rem
  }

  .hero-stat {
    flex: 1 0 40%
  }
}

/* --- Inline Platform Selection --- */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-label-row label {
  margin-bottom: 0 !important;
  cursor: pointer;
}

.inline-platform-selection {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}

.inline-platform-selection:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.platform-label {
  font-size: 0.7rem;
  color: var(--clr-text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.inline-option {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 0 !important;
  /* Reset label margin if any */
}

.inline-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mini-square {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--clr-border);
  border-radius: 2px;
  transition: all var(--transition);
  display: inline-block;
}

.inline-option:hover .mini-square {
  border-color: rgba(255, 255, 255, 0.4);
}

.inline-option input:checked+.mini-square {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  box-shadow: 0 0 8px var(--clr-glow);
}

.sep {
  color: var(--clr-text-dim);
  font-size: 0.7rem;
  opacity: 0.5;
}

/* --- Tech Platform Selection --- */
.platform-selection {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  margin-top: -4px;
  /* Move closer to label */
}

.platform-option {
  position: relative;
  cursor: pointer;
}

.platform-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tech-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  font-family: var(--ff-secondary);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--clr-text-dim);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.platform-option:hover .tech-box {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--clr-text);
}

.platform-option input:checked+.tech-box {
  background: rgba(31, 111, 255, 0.1);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  box-shadow: 0 0 15px rgba(31, 111, 255, 0.2);
}

/* ============ AI CHATBOT WIDGET ============ */
#ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.chat-launcher {
  width: 50px;
  height: 50px;
  background: var(--clr-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 8px 30px var(--clr-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  pointer-events: auto;
  overflow: hidden;
}

.chat-launcher:active {
  cursor: grabbing;
}

.chat-launcher:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px var(--clr-glow);
}

.launcher-icon {
  position: relative;
  width: 24px;
  height: 24px;
  background: #fff;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>') no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  backdrop-filter: blur(20px);
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  position: relative;
  width: 34px;
  height: 34px;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--clr-accent);
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #25D366;
  border-radius: 50%;
  border: 2px solid var(--clr-bg-card);
}

.chat-info .chat-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.chat-info .chat-status {
  font-size: 0.65rem;
  color: #25D366;
  font-weight: 500;
}

.close-chat {
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--clr-text-dim);
  cursor: pointer;
  transition: color 0.3s;
}

.close-chat:hover {
  color: #fff;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ai-msg {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: var(--clr-text);
  border-bottom-left-radius: 4px;
}

.user-msg {
  align-self: flex-end;
  background: var(--clr-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-input {
  padding: 16px;
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--clr-border);
}

.chat-input input {
  flex: 1;
  font-size: 0.9rem;
  color: #fff;
}

.chat-input input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.send-msg {
  color: var(--clr-accent);
  cursor: pointer;
  transition: transform 0.3s;
}

.send-msg:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 40px);
    right: 0;
    bottom: 60px;
  }
}

/* --- Typing Indicator --- */
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-dots span {
  width: 4px;
  height: 4px;
  background: var(--clr-text-dim);
  border-radius: 50%;
  animation: typing 1.4s infinite both;
}

.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* ============ DEMO MODAL & BUTTON ============ */
.card-actions {
  margin-top: 24px;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  background: var(--clr-accent);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--clr-glow);
  background: var(--clr-accent-2);
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.demo-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 95%;
  max-width: 1000px;
  height: 90vh;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.demo-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 30px;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close:hover {
  background: #ff4d4d;
  color: #fff;
}

.modal-body {
  flex: 1;
  background: #0f172a; /* Dark background to match carnets app */
  position: relative;
}

.iframe-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#demo-iframe.loaded {
  opacity: 1;
}

.iframe-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(31, 111, 255, 0.1);
  border-top-color: var(--clr-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}