/* ================================================================
   1. CUSTOM PROPERTIES
================================================================ */
:root {
  --primary:        #0ea5e9;
  --primary-dark:   #0369a1;
  --primary-light:  #38bdf8;
  --accent:         #06b6d4;
  --bg-light:       #f0f9ff;
  --bg-white:       #ffffff;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --border:         #e0f2fe;
  --border-strong:  #bae6fd;
  --error:          #ef4444;
  --footer-bg:      #0c1a2e;

  --shadow-sm:  0 1px 3px  rgba(14,165,233,.08);
  --shadow-md:  0 4px 16px rgba(14,165,233,.12);
  --shadow-lg:  0 8px 32px rgba(14,165,233,.18);
  --shadow-xl:  0 16px 48px rgba(14,165,233,.22);

  --radius-sm:  0.5rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;

  --ease:       cubic-bezier(.4,0,.2,1);
  --dur:        .3s;
}


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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4 { line-height: 1.2; }


/* ================================================================
   3. LAYOUT
================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }


/* ================================================================
   4. BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 3rem;
  font-size: .9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: background var(--dur) var(--ease),
              color     var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform  .18s var(--ease);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0);    }

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(14,165,233,.35);
}

.btn--white {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
}
.btn--white:hover {
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn--block {
  width: 100%;
}


/* ================================================================
   5. SCROLL REVEAL ANIMATIONS
================================================================ */
.reveal-fade,
.reveal-slide-up {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-fade {
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal-slide-up {
  transform: translateY(44px);
  transition:
    opacity  .7s  var(--ease),
    transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal-fade.is-visible,
.reveal-slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   6. SECTION HEADER
================================================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-dark);
  border: 1px solid var(--border-strong);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2rem;
  margin-bottom: .85rem;
}

.bg-light .section-tag {
  background: #fff;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ================================================================
   7. NAVBAR
================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
              box-shadow    var(--dur) var(--ease);
}

.navbar--scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1rem;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.logo-icon { flex-shrink: 0; }

.logo-text {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}

/* Desktop nav */
.navbar__nav {
  display: none;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  padding: .45rem .85rem;
  border-radius: .5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--bg-light);
}

/* Right group */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher,
.mobile-lang {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.lang-btn {
  background: none;
  border: none;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .3rem .45rem;
  border-radius: .4rem;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.lang-btn:hover {
  color: var(--primary);
  background: var(--bg-light);
}

.lang-btn[aria-pressed="true"] {
  color: var(--primary);
  background: var(--bg-light);
}

.lang-sep {
  color: var(--border-strong);
  font-size: .8rem;
  user-select: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: .5rem;
  transition: background var(--dur) var(--ease);
}

.hamburger:hover {
  background: var(--bg-light);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0);          }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg);}

/* Mobile menu */
.mobile-menu {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  animation: menuSlide .24s var(--ease);
}

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0);     }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1rem;
}

.mobile-nav-link {
  padding: .75rem 1rem;
  border-radius: .625rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.mobile-nav-link:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.mobile-lang {
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}


/* ================================================================
   8. HERO
================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(140deg, #0ea5e9 0%, #06b6d4 45%, #0891b2 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1.25rem 8rem;
}

/* Hero stagger animations */
.a1, .a2, .a3, .a4, .a5 {
  opacity: 0;
  animation: heroFadeUp .7s var(--ease) both;
}
.a1 { animation-delay: .15s; }
.a2 { animation-delay: .3s;  }
.a3 { animation-delay: .45s; }
.a4 { animation-delay: .6s;  }
.a5 { animation-delay: .75s; }

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.025em;
  max-width: 780px;
  margin: 0 auto .75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.12);
}

.hero__sub {
  font-size: clamp(.9375rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.88);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875rem;
}

/* Floating formula badge */
.hero__formula {
  position: absolute;
  bottom: 30%;
  right: 6%;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.9);
  font-size: clamp(.9rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: .03em;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-md);
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 2;
  display: none;
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  animation: bounce 2s ease-in-out infinite;
  transition: background var(--dur) var(--ease);
}

.hero__scroll:hover {
  background: rgba(255,255,255,.3);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);    }
  50%       { transform: translateX(-50%) translateY(7px);  }
}

/* Bottom wave */
.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 70px;
}


/* ================================================================
   9. FORMULA CARD
================================================================ */
.formula-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-md);
}

.formula-card__formula {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: .4rem;
}

.formula-card__name {
  font-size: .9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.formula-card__props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
}

.prop-row {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.prop-key {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.prop-val {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
}


/* ================================================================
   10. BENEFITS GRID
================================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.benefit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 2.25rem;
  margin-bottom: .9rem;
  line-height: 1;
}

.benefit-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}

.benefit-card p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ================================================================
   11. APPLICATIONS
================================================================ */
.applications {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.apps-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 1rem .75rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: default;
}

.app-item:hover {
  background: #e0f2fe;
  box-shadow: var(--shadow-sm);
}

.app-item span:first-child {
  font-size: 1.625rem;
  line-height: 1;
}


/* ================================================================
   12. COMPANY — PIONEER BANNER + STATS
================================================================ */
.pioneer-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(14,165,233,.07) 0%, rgba(6,182,212,.04) 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 3rem;
}

.pioneer-banner__flag {
  font-size: 2.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .15rem;
}

.pioneer-banner__body strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .45rem;
}

.pioneer-banner__body span {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.stat-label {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Company story */
.company-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.story-text h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.story-text p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.molecule-wrap {
  width: 100%;
  max-width: 320px;
}

.molecule-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(14,165,233,.25));
  animation: molRotate 12s linear infinite;
}

@keyframes molRotate {
  0%   { transform: rotate(0deg);  }
  100% { transform: rotate(360deg);}
}


/* ================================================================
   13. PRICING GRID
================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.pricing-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 0 0 .6rem .6rem;
}

.pricing-vol {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: .3rem;
}

.pricing-sub {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9375rem;
  color: var(--text);
  line-height: 1.45;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  font-size: .9rem;
  margin-top: .05em;
}

.pricing-price {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-dark);
  font-size: .875rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 2rem;
  border: 1px solid var(--border-strong);
  align-self: flex-start;
}

/* Flexible pickup block */
.flex-pickup {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.flex-pickup__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}

.flex-pickup__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}

.flex-pickup__body p {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.flex-pickup__example {
  display: inline-block;
  background: var(--bg-light);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}


/* ================================================================
   14. INQUIRY FORM
================================================================ */
.inquiry-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

.inquiry-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 0;
}

.inquiry-form > .form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-group 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.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.15);
}

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

.field-error {
  display: none;
  font-size: .8125rem;
  color: var(--error);
  font-weight: 500;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.form-group.error .field-error {
  display: block;
}

.inquiry-form .btn--block {
  margin-top: 1.25rem;
  font-size: 1rem;
}

/* Ensure [hidden] always hides elements regardless of CSS display rules */
[hidden] { display: none !important; }

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1rem;
  text-align: center;
  animation: fadeInUp .5s var(--ease);
}

.form-success__icon {
  font-size: 3rem;
  line-height: 1;
}

.form-success p {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

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


/* ================================================================
   15. DOCS / CERTIFICATES
================================================================ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.doc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.doc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.doc-icon {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: .85rem;
}

.doc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}

.doc-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.docs-cta {
  text-align: center;
}

@media (min-width: 640px) {
  .docs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ================================================================
   16. FLOATING CONTACT BUTTONS
================================================================ */
.float-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  z-index: 900;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.float-btn--wa {
  background: #25d366;
}

.float-btn--tg {
  background: #2aabee;
}

.float-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}


/* ================================================================
   17. CONTACTS
================================================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.contact-text strong {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}

.contact-text span,
.contact-text a {
  font-size: .9375rem;
  color: var(--text);
}

.contact-link {
  color: var(--primary);
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
}


/* ================================================================
   16. FOOTER
================================================================ */
.footer {
  background: var(--footer-bg);
  padding: 3rem 0;
  color: rgba(255,255,255,.7);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer__name {
  display: block;
  font-size: 1.1875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .3rem;
  letter-spacing: -.02em;
}

.footer__tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
}

.footer__nav a {
  font-size: .9375rem;
  color: rgba(255,255,255,.6);
  transition: color var(--dur) var(--ease);
}

.footer__nav a:hover {
  color: #fff;
}

.footer__copy {
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}

.footer__producer {
  font-size: .8125rem;
  color: rgba(255,255,255,.3);
  margin-top: .25rem;
}

.footer__producer strong {
  color: rgba(255,255,255,.5);
  font-weight: 600;
}


/* ================================================================
   17. RESPONSIVE — 640px (sm)
================================================================ */
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .formula-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .formula-card__left {
    flex: 0 0 auto;
    min-width: 220px;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border);
  }

  .formula-card__props {
    flex: 1;
  }

  .hero__formula {
    display: block;
  }

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

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

  .stats-row .stat-item {
    padding: 2.5rem 1.5rem;
  }
}


/* ================================================================
   18. RESPONSIVE — 768px (md)
================================================================ */
@media (min-width: 768px) {
  /* Show desktop nav, hide hamburger */
  .navbar__nav   { display: flex; }
  .hamburger     { display: none; }

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

  .apps-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .app-item {
    padding: 1.25rem .75rem;
  }

  .contacts-grid {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer__nav {
    justify-content: flex-end;
  }
}


/* ================================================================
   19. RESPONSIVE — 1024px (lg)
================================================================ */
@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  .company-story {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
  }

  .formula-card {
    padding: 2.5rem;
  }

  .inquiry-block {
    padding: 3rem;
  }

  .map-wrap {
    aspect-ratio: auto;
  }
}


/* ================================================================
   20. ACCESSIBILITY — FOCUS STYLES
================================================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ================================================================
   21. REDUCED MOTION
================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal-fade,
  .reveal-slide-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .molecule-svg {
    animation: none;
  }

  #particle-canvas {
    display: none;
  }

  @keyframes bounce { }
}
