/* ==========================================================================
   HEYCON TECHNOLOGY - PREMIUM DESIGN SYSTEM v2
   Mobile-first • Dark cinematic hero • Image-led sections • Fluid type
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Montserrat:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --bg-dark: #06100b;
  --bg-dark-2: #0b1a12;
  --ink: #0b1510;
  --body: #4a5a52;
  --muted: #6b7b73;
  --line: #e3ebe6;

  --green-deep: #005a28;
  --green: #008744;
  --green-vivid: #00b45f;
  --mint: #3dffa2;
  --green-soft: rgba(0, 135, 68, .09);

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 12px rgba(6, 16, 11, .06);
  --shadow-md: 0 14px 40px rgba(6, 16, 11, .10);
  --shadow-lg: 0 30px 70px rgba(6, 16, 11, .22);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
  --pad: clamp(18px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
h1, h2 { font-family: var(--font-serif); font-weight: 400; }
h1 { font-size: clamp(2.3rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h3, h4, h5 { font-family: var(--font-head); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { font-size: clamp(.96rem, 1.5vw, 1.05rem); }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); position: relative; }
.section.soft { background: var(--bg-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 3000; background: var(--green-deep); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--green-vivid); }
.on-dark .eyebrow, .eyebrow.light { color: var(--mint); }
.on-dark .eyebrow::before, .eyebrow.light::before { background: var(--mint); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  border-radius: 999px; background: var(--green); color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 135, 68, .4); background: var(--green-vivid); }
.btn:hover svg { transform: translateX(4px); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #1b2a21; box-shadow: 0 12px 30px rgba(6, 16, 11, .35); }
.btn-ghost { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--ink); box-shadow: none; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--green); }
.link-arrow svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* ---------- Header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100; background: linear-gradient(90deg, var(--green-vivid), var(--mint)); }
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s, box-shadow .35s, height .35s;
  color: #fff;
}
.site-header.scrolled { background: rgba(6, 16, 11, .82); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 6px 30px rgba(0, 0, 0, .25); --header-h: 64px; height: 64px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--green), var(--green-vivid)); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 180, 95, .45); }
.brand-mark svg { width: 20px; height: 20px; stroke: #fff; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-text span { color: var(--mint); }

.desktop-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); }
.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: 8px 0;
  color: rgba(255, 255, 255, .78);
  transition: color .25s ease;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
  border-radius: 2px;
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  transform: scaleX(0.5);
  background: rgba(255, 255, 255, .6);
}
.nav-link.active {
  color: #fff;
  font-weight: 700;
}
.nav-link.active::after {
  transform: scaleX(1);
  background: var(--mint);
  box-shadow: 0 0 10px rgba(61, 255, 162, .7);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: rgba(255, 255, 255, .82);
  transition: color .2s ease;
}
.header-phone:hover {
  color: #fff;
}
.header-phone svg {
  width: 15px;
  height: 15px;
  stroke: var(--mint);
}
.header-cta {
  display: none;
  min-height: 42px;
  padding: 10px 22px;
  font-size: .86rem;
  box-shadow: 0 4px 16px rgba(0, 135, 68, .28);
}
.menu-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.menu-btn svg { width: 22px; height: 22px; stroke: #fff; }

/* Mobile drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .3s; z-index: 1900; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(88vw, 380px);
  background: var(--bg-dark); color: #fff; z-index: 2000; padding: 22px;
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-close { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.drawer-close svg { width: 22px; height: 22px; stroke: #fff; }
.drawer-links a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.drawer-links a::after { content: '→'; color: var(--mint); }
.drawer-actions { margin-top: auto; padding-top: 26px; display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--bg-dark); padding: calc(var(--header-h) + 36px) 0 120px; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; transform: scale(1.08); animation: kenburns 24s ease-in-out infinite alternate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 16, 11, .75) 0%, rgba(6, 16, 11, .55) 40%, rgba(6, 16, 11, .95) 100%), radial-gradient(60% 80% at 15% 50%, rgba(6, 16, 11, .75), transparent 70%); }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: 40px; align-items: end; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); font-size: .8rem; font-weight: 600; margin-bottom: 22px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(61, 255, 162, .7); animation: pulse 2s infinite; }
.hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2.2rem, 6vw, 4.2rem); }
.hero h1 .rot { display: inline-block; color: var(--mint); font-style: italic; transition: opacity .35s, transform .35s var(--ease); }
.hero-lead { margin-top: 22px; max-width: 54ch; color: rgba(255, 255, 255, .8); font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(18px); border-radius: var(--r-lg); padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-glass .item { text-align: center; }
.hero-glass strong { display: block; font-family: var(--font-serif); font-size: clamp(1.5rem, 5vw, 2.2rem); color: var(--mint); line-height: 1; }
.hero-glass span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px; display: none; }
.scroll-cue::after { content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--mint); animation: scrollcue 1.8s infinite; }

/* ---------- Marquee ---------- */
.marquee { background: var(--bg-dark); color: #fff; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: '◆'; color: var(--green-vivid); font-size: .6rem; }

/* ---------- Stats ---------- */
.stats { margin-top: -1px; background: var(--bg-dark); color: #fff; padding: clamp(40px, 6vw, 70px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.stat { text-align: center; }
.stat strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.4rem, 8vw, 4rem); line-height: 1; background: linear-gradient(180deg, #fff, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; font-size: .82rem; color: rgba(255, 255, 255, .65); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- About Section (Editorial & Accordion) ---------- */
.about-grid {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.about-media-col {
  position: relative;
}
.about-photo-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
}
.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.about-photo-frame:hover img {
  transform: scale(1.03);
}
.about-photo-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  background: rgba(6, 16, 11, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.about-photo-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}
.about-photo-badge span {
  display: block;
  font-size: .76rem;
  color: var(--mint);
  margin-top: 2px;
}

.about-lead {
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--body);
  margin-top: 14px;
  margin-bottom: 24px;
}

/* Accordion */
.about-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.accordion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.accordion-item.active {
  border-color: rgba(0, 135, 68, .4);
  box-shadow: 0 8px 24px rgba(0, 135, 68, .07);
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  color: var(--ink);
  transition: color .25s ease;
}
.accordion-header:hover {
  color: var(--green);
}
.accordion-num {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 800;
  color: var(--green-vivid);
  letter-spacing: .05em;
  flex-shrink: 0;
}
.accordion-title {
  flex: 1;
}
.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .35s var(--ease), background .3s;
}
.accordion-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink);
  transition: transform .35s var(--ease), stroke .3s;
}
.accordion-item.active .accordion-header .accordion-title {
  color: var(--green-deep);
}
.accordion-item.active .accordion-icon {
  background: var(--green-soft);
}
.accordion-item.active .accordion-icon svg {
  stroke: var(--green-deep);
  transform: rotate(45deg);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.accordion-body > p {
  overflow: hidden;
  margin: 0;
  padding: 0 22px;
  font-size: .92rem;
  line-height: 1.68;
  color: var(--body);
  opacity: 0;
  transition: opacity .3s var(--ease), padding-bottom .35s var(--ease);
}
.accordion-item.active .accordion-body {
  grid-template-rows: 1fr;
}
.accordion-item.active .accordion-body > p {
  padding-bottom: 20px;
  opacity: 1;
}

.about-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}


/* ---------- Services (bento) ---------- */
.bento { display: grid; gap: 18px; }
.bento-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px;
  background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  display: flex; flex-direction: column; gap: 12px; min-height: 260px;
}
.bento-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, var(--green-soft), transparent 60%); opacity: 0; transition: opacity .4s; }
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-vivid); }
.bento-card:hover::before { opacity: 1; }
.bento-card > * { position: relative; }
.bento-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--green-vivid)); box-shadow: 0 10px 24px rgba(0, 135, 68, .3); }
.bento-icon svg { width: 26px; height: 26px; stroke: #fff; }
.bento-card p { font-size: .95rem; flex: 1; }
.bento-card.feature { background: var(--bg-dark); border-color: transparent; color: #fff; }
.bento-card.feature h3 { color: #fff; }
.bento-card.feature p { color: rgba(255, 255, 255, .72); }
.bento-card.feature .link-arrow { color: var(--mint); }
.bento-card.feature .bento-bg { position: absolute; inset: 0; opacity: .35; }
.bento-card.feature .bento-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sectors ---------- */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { flex: none; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--body); transition: all .25s; }
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(0, 135, 68, .3); }
.sector-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.sector-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4/3.4; color: #fff; isolation: isolate;
  background: var(--bg-dark); cursor: pointer; text-align: left; display: block; width: 100%;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.sector-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 16, 11, .05) 15%, rgba(6, 16, 11, .6) 50%, rgba(6, 16, 11, .95) 100%); transition: background .4s; }
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sector-card:hover img { transform: scale(1.1); }
.sector-card:hover::before { background: linear-gradient(180deg, rgba(0, 90, 40, .25) 0%, rgba(6, 16, 11, .95) 100%); }
.sector-info { position: absolute; inset: auto 0 0 0; padding: 22px; }
.sector-num { font-family: var(--font-serif); font-size: .95rem; color: var(--mint); }
.sector-info h3 { color: #fff; font-size: 1.12rem; margin: 4px 0 8px; }
.sector-info p { font-size: .85rem; color: rgba(255, 255, 255, .78); line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sector-tags span { padding: 4px 11px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.sector-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--mint); }
.sector-card.hide { display: none; }
.sector-card.show-in { animation: fadeUp .6s var(--ease) both; }
/* On touch/mobile show description always */
.sector-card .sector-info p { max-height: 120px; opacity: 1; }

/* ---------- Process ---------- */
.process { background: var(--bg-dark); color: #fff; }
.process h2 { color: #fff; }
.process .section-head p { color: rgba(255, 255, 255, .65); }
.steps { display: grid; gap: 18px; counter-reset: step; position: relative; }
.step { position: relative; padding: 28px 24px 26px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: all .35s var(--ease); counter-increment: step; }
.step:hover { background: rgba(255, 255, 255, .08); border-color: var(--green-vivid); transform: translateY(-4px); }
.step::before { content: '0' counter(step); font-family: var(--font-serif); font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--mint); display: block; margin-bottom: 14px; }
.step h3 { color: #fff; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, .68); font-size: .93rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; isolation: isolate; padding-block: clamp(70px, 11vw, 140px); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 16, 11, .8), rgba(0, 60, 28, .75)); }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto 28px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Schneider ---------- */
.schn-top { display: grid; gap: 32px; align-items: center; margin-bottom: 44px; }
.schn-top img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.schn-badge { display: inline-block; padding: 6px 14px; border-radius: 6px; background: #3dcd58; color: #06100b; font-family: var(--font-head); font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.schn-top .check-grid { margin-bottom: 26px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.product-grid { display: grid; gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: all .4s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-vivid); }
.product-photo { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover img { transform: scale(1.08); }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body .sub { color: var(--green); font-weight: 600; font-size: .85rem; }
.product-body ul { display: grid; gap: 6px; font-size: .88rem; margin-bottom: 8px; flex: 1; }
.product-body li { padding-left: 22px; position: relative; }
.product-body li::before { content: '✓'; position: absolute; left: 0; color: var(--green-vivid); font-weight: 800; }

/* ---------- Smart factory ---------- */
.factory-frame { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff; padding: clamp(8px, 2vw, 20px); margin-bottom: 30px; }
.pillars { display: grid; gap: 16px; }
.pillar { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: all .35s var(--ease); }
.pillar:hover { transform: translateY(-4px); border-color: var(--green-vivid); box-shadow: var(--shadow-md); }
.pillar-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.pillar-title svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--green-soft); stroke: var(--green); }
.pillar p { font-size: .92rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-dark); position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; background: radial-gradient(circle, rgba(0, 180, 95, .25), transparent 65%); pointer-events: none; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: rgba(255, 255, 255, .65); }
.contact-card { position: relative; display: grid; background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info { padding: clamp(24px, 4vw, 44px); background: linear-gradient(160deg, #0b1a12, #00351a); color: #fff; }
.contact-info h3 { color: #fff; font-size: 1.5rem; }
.contact-info > p { color: rgba(255, 255, 255, .7); margin-top: 8px; font-size: .95rem; }
.channels { display: grid; gap: 18px; margin: 28px 0; }
.channel { display: flex; gap: 14px; }
.channel-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(61, 255, 162, .12); }
.channel-icon svg { width: 21px; height: 21px; stroke: var(--mint); }
.channel h5 { color: #fff; font-size: .95rem; }
.channel p, .channel a { color: rgba(255, 255, 255, .72); font-size: .9rem; line-height: 1.5; word-break: break-word; }
.channel a:hover { color: var(--mint); }
.map-box { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/10; border: 1px solid rgba(255, 255, 255, .15); }
.map-box iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.contact-form { padding: clamp(24px, 4vw, 44px); }
.contact-form h3 { font-size: 1.5rem; }
.contact-form > p { margin: 8px 0 24px; color: var(--muted); font-size: .95rem; }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .78rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px 16px; font: inherit; font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--ink); background: var(--bg-soft); border: 1.5px solid transparent; border-radius: 12px; transition: all .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--green-vivid); box-shadow: 0 0 0 4px var(--green-soft); }
.form-status { display: none; margin-top: 14px; padding: 13px 16px; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.form-status.success { display: block; background: #e6f9ef; color: #04683a; }
.form-status.error { display: block; background: #fdecec; color: #a11b1b; }

/* ---------- Footer ---------- */
.site-footer { background: #040b07; color: rgba(255, 255, 255, .65); padding-top: clamp(50px, 7vw, 80px); }
.footer-grid { display: grid; gap: 34px; padding-bottom: 44px; }
.footer-grid p { font-size: .92rem; margin-top: 14px; max-width: 36ch; }
.footer-title { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: .92rem; transition: all .2s; }
.footer-links a:hover { color: var(--mint); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; display: flex; flex-direction: column; gap: 10px; font-size: .82rem; }

/* ---------- Floating actions ---------- */
.fab-stack { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .3s var(--ease), opacity .3s; }
.fab:hover { transform: scale(1.1); }
.fab svg { width: 26px; height: 26px; }
.fab-wa { background: #25d366; }
.fab-wa svg { fill: #fff; }
.fab-top { background: var(--ink); opacity: 0; visibility: hidden; transform: translateY(10px); width: 46px; height: 46px; }
.fab-top svg { stroke: #fff; fill: none; width: 20px; height: 20px; }
.fab-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 2500; background: rgba(4, 11, 7, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: .3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: var(--r-xl); padding: clamp(22px, 4vw, 36px); transform: translateY(24px) scale(.97); transition: transform .4s var(--ease); }
.modal-overlay.active .modal-box { transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; }
.modal-close svg { width: 20px; height: 20px; stroke: var(--ink); }
.modal-box h3 { font-size: 1.5rem; margin: 4px 0 6px; padding-right: 40px; }
.modal-box > p { font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.modal-box .field { margin-bottom: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.18) translate3d(-1.5%, -1%, 0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 255, 162, .6); } 70% { box-shadow: 0 0 0 12px rgba(61, 255, 162, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 162, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   RESPONSIVE (mobile-first, upward)
   ========================================================================== */

/* ≥ 600px: small tablets / large phones */
@media (min-width: 600px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ≥ 900px: tablets landscape */
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .schn-top { grid-template-columns: 1.1fr .9fr; }
  .contact-card { grid-template-columns: 1fr 1.1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-glass { max-width: 520px; padding: 24px 28px; }
  .scroll-cue { display: block; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-card.feature { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* ≥ 1024px: desktop nav + header actions */
@media (min-width: 1024px) {
  .desktop-nav { display: block; }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; }
  .header-phone { display: inline-flex; }
}

/* ≥ 1100px: 3-col sectors */
@media (min-width: 1100px) {
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
@media (hover: hover) and (min-width: 1100px) {
  .sector-card .sector-info p { max-height: 0; opacity: 0; }
  .sector-card:hover .sector-info p { max-height: 140px; opacity: 1; }
}

@media (min-width: 1280px) { .sector-grid { gap: 22px; } }

/* Mobile optimizations for About Section */
@media (max-width: 640px) {
  .about-photo-frame {
    aspect-ratio: 4 / 3;
  }
  .about-photo-badge {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 10px 14px;
    gap: 10px;
  }
  .about-photo-badge strong {
    font-size: .8rem;
  }
  .about-photo-badge span {
    font-size: .7rem;
  }
  .accordion-header {
    padding: 14px 16px;
    font-size: .92rem;
  }
  .accordion-body > p {
    padding: 0 16px;
    font-size: .88rem;
  }
  .accordion-item.active .accordion-body > p {
    padding-bottom: 16px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .header-inner .brand-text { font-size: 1.1rem; }
  .hero-glass { padding: 16px 10px; }
  .btn { padding-inline: 20px; }
}

/* Short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: calc(var(--header-h) + 20px) 70px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
