/* ============================================================
   FENIX SOFTWARE SOLUTIONS — styles.css
   ============================================================ */

/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:          #040d1a;
  --bg-alt:      #07142a;
  --bg-card:     rgba(8, 18, 38, 0.75);
  --bg-glass:    rgba(255, 255, 255, 0.03);

  /* Brand — Phoenix Fire */
  --orange:      #f97316;
  --red:         #dc2626;
  --gold:        #f59e0b;
  --amber:       #d97706;

  /* Text */
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #475569;

  /* Borders */
  --border:      rgba(255, 255, 255, 0.07);
  --border-glow: rgba(249, 115, 22, 0.35);

  /* Gradients */
  --grad-fire:   linear-gradient(135deg, #dc2626 0%, #f97316 50%, #f59e0b 100%);
  --grad-bg:     linear-gradient(160deg, #040d1a 0%, #07142a 100%);

  /* Shadows */
  --shadow-sm:   0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md:   0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-fire: 0 0 40px rgba(249, 115, 22, 0.18);

  /* Fonts */
  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Mono', monospace;

  /* Layout */
  --max-w:       1200px;
  --gutter:      clamp(16px, 4vw, 32px);
  --section-py:  clamp(64px, 8vw, 112px);

  /* Radius */
  --r-sm:        8px;
  --r-md:        14px;
  --r-lg:        20px;

  /* Transitions */
  --t-base:      0.25s ease;
  --t-smooth:    0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ============================================================
   4. UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.text-gradient {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* Fade-in animation via IntersectionObserver */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: var(--r-sm);
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base), opacity var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--sm { padding: 8px 18px; font-size: 0.875rem; }
.btn:not(.btn--lg):not(.btn--sm) { padding: 11px 24px; }

.btn--primary {
  background: var(--grad-fire);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(249, 115, 22, 0.5);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: var(--bg-glass);
}

.btn--full { width: 100%; justify-content: center; }

.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   6. HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--t-smooth), box-shadow var(--t-smooth);
}
.header.scrolled {
  background: rgba(4, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__icon { width: 28px; height: 34px; }
.logo__text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo__text strong {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Nav */
.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-base), background var(--t-base);
}
.nav__link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.header__cta { flex-shrink: 0; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-base), background var(--t-base);
}
.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.lang-btn--active {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.12);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(249, 115, 22, 0.07) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 55%),
              var(--grad-bg);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: 48px;
  padding-bottom: 80px;
}

.hero__content { max-width: 580px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.hero__badge-dot {
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

.hero__title {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero__title-sub {
  color: var(--text-muted);
  font-weight: 300;
}

.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero__trust li svg {
  width: 14px; height: 14px;
  color: var(--orange);
  flex-shrink: 0;
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Terminal */
.terminal {
  width: 100%;
  max-width: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-fire);
  border: 1px solid var(--border);
  animation: float-card 6s ease-in-out infinite;
}

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

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid var(--border);
}

.term-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.term-dot--red    { background: #ff5f57; }
.term-dot--yellow { background: #febc2e; }
.term-dot--green  { background: #28c840; }

.terminal__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.terminal__live {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #28c840;
  letter-spacing: 0.08em;
  animation: live-blink 1.8s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.terminal__body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  background: rgba(0,0,0,0.25);
}

/* Terminal line animations */
.tl { opacity: 0; transform: translateX(-6px); }
.tl-1 { animation: tl-appear 0.35s ease 0.7s  forwards; }
.tl-2 { animation: tl-appear 0.35s ease 1.3s  forwards; }
.tl-3 { animation: tl-appear 0.35s ease 1.9s  forwards; }
.tl-4 { animation: tl-appear 0.35s ease 2.5s  forwards; }
.tl-5 { animation: tl-appear 0.35s ease 3.1s  forwards; }
.tl-6 { animation: tl-appear 0.35s ease 3.7s  forwards; }
.tl-7 { animation: tl-appear 0.35s ease 4.3s  forwards; }
.tl-8 { animation: tl-appear 0.35s ease 4.9s  forwards; }

@keyframes tl-appear {
  to { opacity: 1; transform: translateX(0); }
}

.tc-prompt  { color: var(--text-dim); }
.tc-cmd     { color: var(--text); }
.tc-info    { color: #64748b; }
.tc-ok      { color: #4ade80; }
.tc-warn    { color: var(--gold); }
.tc-approved {
  color: #4ade80;
  font-weight: 500;
  font-size: 0.82rem;
}

.terminal__metrics {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
}
.tm {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border-right: 1px solid var(--border);
}
.tm:last-child { border-right: none; }
.tm__label {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.tm__val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Floating badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(8, 18, 38, 0.9);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.float-badge svg { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }

.float-badge--1 {
  top: 10%;
  right: -8%;
  animation: float-a 5s ease-in-out infinite;
}
.float-badge--2 {
  bottom: 12%;
  left: -6%;
  animation: float-a 5s ease-in-out 2.5s infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Hero scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
  animation: scroll-cue 2.5s ease-in-out infinite;
}
.hero__scroll svg { width: 20px; height: 20px; }
@keyframes scroll-cue {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.8; transform: translateX(-50%) translateY(4px); }
}

/* ============================================================
   8. SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: clamp(24px, 3vw, 36px);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-fire);
  opacity: 0;
  transition: opacity var(--t-base);
}
.svc-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 40px rgba(249, 115, 22, 0.1);
  transform: translateY(-4px);
}
.svc-card:hover::before { opacity: 1; }

.svc-card--highlight {
  border-color: rgba(249, 115, 22, 0.2);
  background: rgba(249, 115, 22, 0.04);
}

.svc-card__icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: var(--r-sm);
  margin-bottom: 20px;
  color: var(--orange);
  transition: background var(--t-base);
}
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card__icon--fire {
  background: rgba(249, 115, 22, 0.15);
  color: var(--gold);
}

.svc-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text);
}
.svc-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

/* ============================================================
   9. PAYMENTS
   ============================================================ */
.payments__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.pay-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.pay-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pay-feature__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.1);
  border-radius: var(--r-sm);
  color: var(--orange);
  margin-top: 2px;
}
.pay-feature__icon svg { width: 18px; height: 18px; }

.pay-feature h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.pay-feature p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Payment flow card */
.pay-flow {
  padding: 28px;
}

.pay-flow__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pf-dot-live {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.pay-flow__steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.pf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  min-width: 64px;
}
.pf-step__icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-step--ok .pf-step__icon {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
  font-size: 1rem;
  font-weight: 700;
}
.pf-step__name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
}
.pf-step__detail {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.pf-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Code block */
.pay-flow__code {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.9;
}
.cl { display: block; }
.cl--ok .cv { color: #4ade80; }
.ck { color: var(--orange); }
.cv { color: var(--text-muted); }

/* ============================================================
   10. CLOUD & AI
   ============================================================ */
.cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.cloud-feat {
  padding: clamp(24px, 3vw, 32px);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t-base), transform var(--t-base);
}
.cloud-feat:hover {
  border-color: rgba(249, 115, 22, 0.2);
  transform: translateY(-3px);
}

.cloud-feat__icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.08);
  border-radius: var(--r-sm);
  color: var(--orange);
  margin-bottom: 16px;
}
.cloud-feat__icon svg { width: 22px; height: 22px; }
.cloud-feat h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.cloud-feat p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.cloud-ai__cta {
  text-align: center;
}

/* ============================================================
   11. WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base);
}
.why-card:hover {
  border-color: rgba(249, 115, 22, 0.2);
  transform: translateY(-3px);
}

.why-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
  opacity: 0.8;
}
.why-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.why-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   12. CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

.contact__info .section-title {
  text-align: left;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact__detail svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }
.contact__detail a { transition: color var(--t-base); }
.contact__detail a:hover { color: var(--orange); }

.contact__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--text-muted);
  border-radius: 100px;
  padding: 5px 14px;
}

/* Contact form */
.contact-form {
  padding: clamp(24px, 3vw, 36px);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group:last-of-type { margin-bottom: 20px; }

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.req { color: var(--orange); }

.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--t-base), box-shadow var(--t-base);
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-select option { background: #07142a; }

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

.form-err {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 1em;
  display: block;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Success state */
.form-success {
  text-align: center;
  padding: 48px 32px;
}
.form-success__check {
  width: 64px; height: 64px;
  background: rgba(74, 222, 128, 0.1);
  border: 2px solid rgba(74, 222, 128, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #4ade80;
}
.form-success__check svg { width: 28px; height: 28px; }
.form-success h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.form-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 7, 14, 0.9);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-top: 56px;
  padding-bottom: 56px;
  align-items: start;
}

.footer__logo { margin-bottom: 16px; }
.footer__desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 380px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.footer__col li { margin-bottom: 10px; }
.footer__col a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color var(--t-base);
}
.footer__col a:hover { color: var(--orange); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__loc {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer__loc svg { width: 14px; height: 14px; }

/* ============================================================
   14. RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .services__grid  { grid-template-columns: repeat(2, 1fr); }
  .cloud-grid      { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }

  .payments__grid  {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pay-flow { max-width: 600px; margin: 0 auto; }

  .footer__top   { grid-template-columns: 1fr; }
  .footer__cols  { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   15. RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .header__cta { display: none; }

  /* Push lang-switcher to right; hamburger follows it */
  .lang-switcher { margin-left: auto; }
  .hamburger { margin-left: 0; }

  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: rgba(4, 13, 26, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--t-smooth);
    margin: 0;
  }
  .nav.open { transform: translateX(0); }
  .nav__list {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .nav__link {
    font-size: 1.25rem;
    padding: 12px 24px;
    display: block;
  }

  .hamburger { display: flex; }

  .hero__container {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }
  .hero__visual { display: none; }
  .hero__title { font-size: clamp(2.4rem, 8vw, 3.4rem); }

  .services__grid { grid-template-columns: 1fr; }
  .cloud-grid     { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .pay-features   { grid-template-columns: 1fr; }

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

  .footer__top    { padding-top: 40px; padding-bottom: 40px; }
  .footer__cols   { grid-template-columns: repeat(2, 1fr); }

  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .footer__cols  { grid-template-columns: 1fr; }
}

/* ============================================================
   16. HONEYPOT (anti-spam)
   ============================================================ */
.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ============================================================
   17. CHAT WIDGET
   ============================================================ */
.chat-toggle {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 950;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--grad-fire);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.4);
  border: none; cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(249, 115, 22, 0.6);
}
.chat-toggle svg {
  width: 22px; height: 22px;
  stroke: #fff; position: absolute;
  transition: opacity var(--t-base), transform var(--t-base);
}
.chat-toggle__close { opacity: 0; transform: rotate(-90deg); }
.chat-toggle.open .chat-toggle__open  { opacity: 0; transform: rotate(90deg); }
.chat-toggle.open .chat-toggle__close { opacity: 1; transform: rotate(0deg); }

.chat-panel {
  position: fixed;
  bottom: 94px; right: 28px;
  z-index: 950;
  width: 360px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-fire);
  transform-origin: bottom right;
  transform: scale(0.88) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}
.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-avatar { width: 32px; height: 32px; flex-shrink: 0; }
.chat-avatar svg { width: 32px; height: 32px; }
.chat-header__meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chat-header__name {
  font-family: var(--font-head);
  font-size: 0.875rem; font-weight: 600;
}
.chat-header__sub {
  font-size: 0.68rem; font-family: var(--font-mono);
  color: var(--text-dim);
  display: flex; align-items: center; gap: 5px;
}
.chat-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.chat-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  transition: background var(--t-base), color var(--t-base);
}
.chat-close:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.chat-close svg { width: 16px; height: 16px; }

.chat-messages {
  flex: 1;
  min-height: 220px; max-height: 300px;
  overflow-y: auto;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.84rem; line-height: 1.55;
  word-break: break-word;
}
.chat-msg--bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat-msg--user {
  align-self: flex-end;
  background: var(--grad-fire);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing dots */
.chat-typing {
  padding: 12px 13px !important;
  display: flex !important; align-items: center; gap: 4px;
}
.chat-typing span {
  display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
  animation: typing-dot 1.2s 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 typing-dot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-5px); opacity: 1; }
}

.chat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 14px 4px;
  flex-shrink: 0;
}
.chat-chip {
  font-size: 0.71rem; font-weight: 500;
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--text-muted);
  border-radius: 100px;
  padding: 4px 10px;
  cursor: pointer; white-space: nowrap;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}
.chat-chip:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--text);
}

.chat-form {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 0.85rem; color: var(--text);
  transition: border-color var(--t-base);
  outline: none;
}
.chat-input::placeholder { color: var(--text-dim); }
.chat-input:focus { border-color: var(--orange); }

.chat-send {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-fire);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-base), opacity var(--t-base);
}
.chat-send:hover  { transform: scale(1.1); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.chat-send svg { width: 15px; height: 15px; fill: #fff; }

@media (max-width: 480px) {
  .chat-panel  { width: calc(100vw - 24px); right: 12px; bottom: 80px; }
  .chat-toggle { right: 12px; bottom: 14px; }
}
