/* ==========================================================================
   TischFlow — Design tokens
   ========================================================================== */
:root {
  /* Color */
  --ink: #0B1220;
  --ink-soft: #141D33;
  --paper: #F6F8FC;
  --paper-dim: #EDF1F9;
  --indigo: #5B5BF0;
  --indigo-light: #8B8CFF;
  --cyan: #14C7CF;
  --cyan-light: #4CE0E6;
  --coral: #FF6152;
  --coral-light: #FF8A72;
  --slate: #475569;
  --slate-light: #94A3B8;
  --line: rgba(11, 18, 32, 0.09);
  --line-dark: rgba(246, 248, 252, 0.12);

  --grad-flow: linear-gradient(135deg, var(--indigo) 0%, var(--cyan) 100%);
  --grad-flow-soft: linear-gradient(135deg, rgba(91,91,240,0.12) 0%, rgba(20,199,207,0.12) 100%);
  --grad-coral: linear-gradient(135deg, var(--coral) 0%, #FF8A72 100%);

  /* Type */
  --font-display: 'Space Grotesk', 'Arial', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 50px -20px rgba(11, 18, 32, 0.25);
  --shadow-glow: 0 0 0 1px rgba(91,91,240,0.08), 0 20px 60px -25px rgba(91,91,240,0.45);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--grad-flow);
  border-radius: 2px;
}

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--indigo-light); outline-offset: 3px; }
.btn-primary {
  background: var(--grad-flow);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -20px rgba(91,91,240,0.55); }

.btn-coral {
  background: var(--grad-coral);
  color: #fff;
  box-shadow: 0 16px 40px -18px rgba(255,97,82,0.6);
}
.btn-coral:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

.btn-ghost-dark {
  background: rgba(246,248,252,0.06);
  color: var(--paper);
  border: 1.5px solid var(--line-dark);
}
.btn-ghost-dark:hover { border-color: var(--cyan-light); color: var(--cyan-light); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,248,252,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
  position: relative;
}
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; gap: 2px; background: var(--paper-dim); border-radius: 999px; padding: 3px; }
.lang-switch a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--slate);
  transition: all 0.2s ease;
}
.lang-switch a.active { background: var(--ink); color: #fff; }
.lang-switch a:not(.active):hover { color: var(--indigo); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s ease;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .header-actions .btn-primary { display: none; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav .btn { margin-top: 16px; }

/* ==========================================================================
   Hero + flow diagram
   ========================================================================== */
.hero {
  padding: 76px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.hero h1 .grad-text {
  background: var(--grad-flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--slate);
  max-width: 46ch;
  margin: 22px 0 34px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.flow-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.flow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,178,91,0.22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,97,82,0.18), transparent 45%);
  pointer-events: none;
}
.flow-svg { position: relative; width: 100%; height: auto; }

.candle-flame {
  transform-origin: center;
  animation: flicker 2.6s ease-in-out infinite;
}
.candle-flame-inner {
  transform-origin: center;
  animation: flicker 2.6s ease-in-out infinite reverse;
}
@keyframes flicker {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: 1; }
  30% { transform: scaleY(1.08) scaleX(0.95); opacity: 0.92; }
  55% { transform: scaleY(0.94) scaleX(1.05); opacity: 1; }
  80% { transform: scaleY(1.05) scaleX(0.97); opacity: 0.95; }
}

.hero-mini-stats {
  display: flex;
  gap: 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.hero-mini-stat .num { font-family: var(--font-mono); font-size: 20px; color: #fff; font-weight: 600; }
.hero-mini-stat .label { font-size: 12px; color: #9AA5BD; margin-top: 2px; }

/* ==========================================================================
   Stat bar
   ========================================================================== */
.stat-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stat-bar .container { grid-template-columns: repeat(2, 1fr); } }
.stat-item .num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  background: var(--grad-flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-item .label { font-size: 13px; color: var(--slate); margin-top: 6px; }

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--slate); font-size: 16px; margin-top: 14px; }

/* ==========================================================================
   Solutions / features grid
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 940px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .solutions-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-flow-soft);
  color: var(--indigo);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--slate); margin: 0; }

/* ==========================================================================
   How it works — real sequence, numbered
   ========================================================================== */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
@media (max-width: 860px) { .how-steps { grid-template-columns: 1fr; } }

.how-step { position: relative; padding-left: 4px; }
.how-step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  background: var(--ink);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-weight: 600;
}
.how-step h3 { font-size: 17.5px; margin-bottom: 10px; }
.how-step p { font-size: 14.5px; color: var(--slate); }

.how-wrap {
  background: var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.how-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(20,199,207,0.18), transparent 40%);
}
.how-wrap .section-head h2,
.how-wrap .eyebrow { color: #fff; }
.how-wrap .section-head p { color: #A9B2C6; }
.how-wrap .how-step h3 { color: #fff; }
.how-wrap .how-step p { color: #A9B2C6; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 940px) { .testimonial-track { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper-dim);
  border-radius: var(--radius-md);
  padding: 28px;
}
.testimonial-card blockquote {
  margin: 0 0 20px;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.6;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-flow);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  flex-shrink: 0;
  object-fit: cover;
}
.testimonial-author .name { font-weight: 600; font-size: 14px; }
.testimonial-author .role { font-size: 12.5px; color: var(--slate); }

/* ==========================================================================
   News slider
   ========================================================================== */
.news-slider-wrap { position: relative; }
.news-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.news-slider::-webkit-scrollbar { display: none; }
.news-card {
  scroll-snap-align: start;
  flex: 0 0 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.news-card .thumb {
  height: 160px;
  background: var(--grad-flow-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 20px; }
.news-card .date { font-family: var(--font-mono); font-size: 11.5px; color: var(--indigo); font-weight: 600; }
.news-card h3 { font-size: 16px; margin: 8px 0 8px; }
.news-card p { font-size: 13.5px; color: var(--slate); margin: 0; }
.news-nav { display: flex; gap: 10px; margin-top: 24px; justify-content: flex-end; }
.news-nav button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.news-nav button:hover { border-color: var(--indigo); color: var(--indigo); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.contact-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 90%, rgba(91,91,240,0.25), transparent 45%);
}
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; padding: 40px 26px; } }

.contact-info { position: relative; }
.contact-info .section-head h2 { color: #fff; }
.contact-info .section-head p { color: #A9B2C6; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-links a { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14.5px; font-weight: 500; }
.contact-links a:hover { color: var(--cyan-light); }

.contact-form { position: relative; background: rgba(246,248,252,0.04); border: 1px solid var(--line-dark); border-radius: var(--radius-md); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 12.5px; color: #A9B2C6; margin-bottom: 6px; font-weight: 500; }
.form-field input, .form-field textarea {
  width: 100%;
  background: rgba(246,248,252,0.06);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--indigo-light);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #6B7691; }
.form-note { font-size: 12.5px; color: #7C89A3; margin-top: 10px; }
.form-alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.form-alert.success { background: rgba(20,199,207,0.14); color: #7FE9EF; border: 1px solid rgba(20,199,207,0.3); }
.form-alert.error { background: rgba(255,97,82,0.14); color: #FFB3A9; border: 1px solid rgba(255,97,82,0.3); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #A9B2C6; padding: 60px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 32ch; color: #7C89A3; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 13.5px; margin-bottom: 10px; color: #A9B2C6; }
.footer-col a:hover { color: var(--cyan-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  font-size: 12.5px;
  color: #6B7691;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   WhatsApp float button
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,0.6);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
