/* ────────────────────────────────────────────────────────
   Kaviaz Technology — Emerald design system
   Palette: #0FBF62 / #8BBC3F / #D5F56A / #FAFBFC / #FFFFFF
   Light · airy · glassmorphism · isometric
──────────────────────────────────────────────────────── */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── Tokens ── */
:root {
  --green:      #0FBF62;   /* primary emerald */
  --green-d:    #0a9b4f;   /* hover / deep */
  --green-2:    #8BBC3F;   /* olive */
  --green-3:    #D5F56A;   /* lime accent */
  --green-pale: #e8faf0;   /* emerald tint */
  --green-pale2:#f1fae8;   /* lime tint */
  --bg:         #FAFBFC;   /* page off-white */
  --surface:    #f3f7f1;   /* light surface */
  --ink:        #1f2a24;   /* heading */
  --body:       #586059;   /* body text */
  --muted:      #98a39b;   /* muted */
  --line:       #e7ebe6;   /* border */
  --line-mid:   #d4dbd3;
  --glass-bg:   rgba(255,255,255,.35);
  --glass-bd:   rgba(255,255,255,.55);
  --grad:       linear-gradient(135deg, #0FBF62, #8BBC3F 60%, #D5F56A);
}


/* ════════════════════════════════════════════════════════
   BUTTONS  (primary / secondary)
════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 26px;
  background: var(--green);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,191,98,.32); }
.btn-arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-primary.on-dark { flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--line-mid);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-secondary:hover { border-color: var(--green); color: var(--green-d); transform: translateY(-2px); }

.text-link {
  display: inline-flex;
  align-items: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--green-d);
  transition: gap .2s, opacity .2s;
}
.text-link:hover { opacity: .72; }


/* ════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 600;
  height: 84px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background .35s, box-shadow .35s;
}
#navbar.at-hero { background: rgba(250,251,252,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#navbar.scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 22px rgba(30,42,28,.07); }

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 42px; width: auto; }

.nav-links { display: flex; align-items: center; list-style: none; gap: 6px; margin-left: auto; margin-right: 28px; }
.nav-links a { padding: 9px 16px; font-size: .9rem; font-weight: 600; color: var(--body); border-radius: 8px; white-space: nowrap; transition: color .2s, background .2s; }
.nav-links a:hover  { color: var(--ink); background: var(--surface); }
.nav-links a.active { color: var(--green-d); }

.nav-menu-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green);
  border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  flex-shrink: 0;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nav-menu-btn:hover { background: var(--green-d); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15,191,98,.4); }
.nav-menu-btn span { display: block; height: 2px; width: 18px; background: #fff; border-radius: 2px; transition: transform .28s, opacity .28s; }
.nav-menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-menu-btn.open span:nth-child(2) { opacity: 0; }
.nav-menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 84px; left: 0; right: 0;
  z-index: 599;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 8px 28px 24px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity .25s, transform .25s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a { display: block; padding: 14px 0; font-size: .98rem; font-weight: 600; color: var(--body); border-bottom: 1px solid var(--line); transition: color .2s; }
.mobile-menu a:last-child { border: none; }
.mobile-menu a:hover { color: var(--green-d); }


/* ════════════════════════════════════════════════════════
   HERO  (full-bleed carousel)
════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-slides,
.hero-slide,
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 5200ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img { object-fit: cover; }

.hero-vignette {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(250,251,252,.93) 0%, rgba(250,251,252,.8) 22%, rgba(250,251,252,.18) 52%, rgba(250,251,252,.32) 100%),
    radial-gradient(circle at 55% 56%, transparent 0 32%, rgba(250,251,252,.42) 72%);
}

.hero-wave {
  position: absolute;
  z-index: 5;
  inset: -35%;
  pointer-events: none;
  opacity: .42;
  filter: blur(11px);
  background:
    repeating-linear-gradient(
      112deg,
      transparent 0 34px,
      rgba(15,191,98,.22) 35px,
      rgba(255,255,255,.5) 38px,
      transparent 43px
    );
  animation: heroWaveFlow 9s linear infinite;
}

.hero-scan {
  position: absolute;
  z-index: 7;
  top: -32%; left: -50%;
  width: 34%; height: 170%;
  pointer-events: none;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), rgba(185,255,208,.7), transparent);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: heroScanMove 4.8s cubic-bezier(.36,0,.2,1) infinite;
}

.hero-scan-2 {
  width: 22%;
  opacity: .55;
  animation-duration: 6.4s;
  animation-delay: 1.35s;
  filter: blur(26px);
}

.hero-glow {
  position: absolute;
  z-index: 6;
  left: 56%; top: 54%;
  width: 520px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,191,98,.72), rgba(15,191,98,.24) 42%, transparent 72%);
  filter: blur(32px);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: heroGlowPulse 3.2s ease-in-out infinite;
}

.hero-circuit {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hroute {
  fill: none;
  stroke: rgba(15,191,98,.42);
  stroke-width: 3;
  stroke-dasharray: 14 24;
  filter: drop-shadow(0 0 10px rgba(15,191,98,.7));
  animation: heroRouteDash 10s linear infinite;
}

.hroute-muted { opacity: .5; animation-duration: 12s; }

.hflow-dot {
  fill: #b8ffd2;
  filter: drop-shadow(0 0 14px rgba(15,191,98,.9));
}

.hero-inner {
  position: relative;
  z-index: 12;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
}

.hero-copy { max-width: 520px; padding-top: 84px; }

.hero-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .22em; color: var(--green-d); margin-bottom: 22px; }

.hero-h1 {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  font-size: clamp(3.2rem, 6.6vw, 5.6rem);
  font-weight: 900; line-height: 1.08; letter-spacing: .02em;
  color: var(--ink); margin-bottom: 28px;
}

.hero-desc { font-size: 1.06rem; line-height: 2; color: var(--body); margin-bottom: 46px; }

.hero-explore { display: inline-flex; align-items: center; gap: 16px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.explore-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.hero-explore:hover .explore-circle { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,191,98,.4); }
.hero-explore:hover .explore-circle svg { transform: translateX(3px); }
.explore-circle svg { transition: transform .25s; }

.hero-arrow {
  position: absolute;
  z-index: 18;
  top: 50%;
  width: 54px; height: 54px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: var(--ink); font-size: 20px;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 18px 40px rgba(24,59,39,.1);
  backdrop-filter: blur(14px);
  transition: background .2s, transform .25s;
}
.hero-arrow:hover { background: rgba(255,255,255,.92); transform: translateY(calc(-50% - 2px)); }
.hero-prev { left: 34px; }
.hero-next { right: 34px; }

.hero-dots {
  position: absolute;
  z-index: 18;
  left: 50%; bottom: 40px;
  display: flex; gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background .25s, width .3s;
}

.hero-dot.active { background: var(--green); width: 28px; }

.hero-scroll { position: absolute; left: 48px; bottom: 60px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 12; }
.hero-scroll span { writing-mode: vertical-rl; font-size: .62rem; font-weight: 700; letter-spacing: .35em; color: var(--muted); }
.hero-scroll i { width: 1px; height: 56px; background: var(--line-mid); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; top: -40%; left: 0; width: 1px; height: 40%; background: var(--green); animation: scrolldrop 2.2s ease-in-out infinite; }
@keyframes scrolldrop { 0% { transform: translateY(0); } 100% { transform: translateY(350%); } }

@keyframes heroScanMove {
  0%   { transform: translateX(0) rotate(18deg); opacity: 0; }
  16%  { opacity: 1; }
  70%  { opacity: .78; }
  100% { transform: translateX(430%) rotate(18deg); opacity: 0; }
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: .24; transform: translate(-50%, -50%) scale(.82); }
  50%       { opacity: .9;  transform: translate(-50%, -50%) scale(1.18); }
}
@keyframes heroWaveFlow {
  from { transform: translateX(-12%) rotate(-5deg); }
  to   { transform: translateX(12%)  rotate(-5deg); }
}
@keyframes heroRouteDash { to { stroke-dashoffset: -320; } }


/* ════════════════════════════════════════════════════════
   SHARED SECTION
════════════════════════════════════════════════════════ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.sec-hd { margin-bottom: 56px; }
.sec-hd.center { text-align: center; }
.sec-eyebrow { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-d); margin-bottom: 14px; }
.sec-title { font-family: 'Noto Sans TC', 'Inter', sans-serif; font-size: clamp(1.8rem, 3.1vw, 2.6rem); font-weight: 900; letter-spacing: .01em; color: var(--ink); line-height: 1.18; margin-bottom: 16px; }
.sec-sub { font-size: 1rem; line-height: 1.8; color: var(--body); max-width: 640px; }
.sec-hd.center .sec-sub { margin: 0 auto; }

.pill-link { display: inline-flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 700; color: var(--body); white-space: nowrap; transition: color .2s; }
.pill-link:hover { color: var(--green-d); }
.circle-plus { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.pill-link:hover .circle-plus { background: var(--green-d); transform: rotate(90deg); }


/* ════════════════════════════════════════════════════════
   PARTNER LOGOS
════════════════════════════════════════════════════════ */
.partner-section { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 52px; overflow: hidden; }
.partner-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.partner-label { font-size: .82rem; font-weight: 700; color: var(--ink); }

.marquee-outer { position: relative; overflow: hidden; }
.marquee-outer + .marquee-outer { margin-top: 14px; }
.marquee-outer::before, .marquee-outer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none; }
.marquee-outer::before { left: 0;  background: linear-gradient(to right, #fff, transparent); }
.marquee-outer::after  { right: 0; background: linear-gradient(to left,  #fff, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 30s; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes slide { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; justify-content: center; padding: 0 14px; height: 78px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; width: 152px; height: 66px; display: flex; align-items: center; justify-content: center; padding: 10px 18px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.logo-tile:hover { border-color: var(--green); box-shadow: 0 6px 22px rgba(15,191,98,.12); transform: translateY(-2px); }
.logo-tile img { height: 40px; width: auto; max-width: 116px; object-fit: contain; }


/* ════════════════════════════════════════════════════════
   FUNCTION ICONS
════════════════════════════════════════════════════════ */
#functions { padding: 84px 0; background: var(--bg); }
.fn-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fn-item {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: .82rem; font-weight: 600; color: var(--body);
  transition: border-color .25s, box-shadow .25s, transform .25s, color .25s;
}
.fn-item:hover { border-color: var(--green); color: var(--green-d); transform: translateY(-4px); box-shadow: 0 14px 36px rgba(15,191,98,.12); }
.fn-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--green-pale); color: var(--green-d); display: flex; align-items: center; justify-content: center; transition: background .25s, transform .25s; }
.fn-ico svg { width: 26px; height: 26px; }
.fn-item:hover .fn-ico { background: var(--green); color: #fff; transform: scale(1.06); }


/* ════════════════════════════════════════════════════════
   PRODUCT SHOWCASE  (EDA / IP visual + capability icons)
════════════════════════════════════════════════════════ */
#eda { padding: 100px 0; background: #fff; border-top: 1px solid var(--line); }
#ip  { padding: 100px 0; background: var(--bg); border-top: 1px solid var(--line); }

.product-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.product-showcase.reverse .ps-visual { order: 2; }

.ps-visual {
  position: relative;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 70% at 50% 45%, rgba(15,191,98,.1), transparent 70%),
    linear-gradient(135deg, #f4faf0, #eafaef);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ps-visual svg { width: 100%; height: auto; filter: drop-shadow(0 20px 34px rgba(15,120,60,.16)); }

.ps-text .sec-sub { margin-bottom: 30px; }

.cap-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cap-row.ip-caps { grid-template-columns: repeat(4, 1fr); }
.cap {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 16px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cap:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,191,98,.12); }
.cap-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--green-pale); color: var(--green-d); display: flex; align-items: center; justify-content: center; }
.cap-ico svg { width: 22px; height: 22px; }
.cap b { font-size: .74rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.cap small { font-size: .64rem; color: var(--muted); }


/* ── EDA / IP detail cards ── */
.eda-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.eda-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.eda-card:hover { border-color: var(--green); box-shadow: 0 16px 48px rgba(15,191,98,.1); transform: translateY(-4px); }
.card-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 22px; transition: transform .3s; }
.eda-card:hover .card-ico, .ip-card:hover .card-ico { transform: scale(1.08) rotate(-4deg); }
.eda-card h3, .ip-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.card-en { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; margin-bottom: 14px; }
.eda-card p, .ip-card p { font-size: .88rem; line-height: 1.75; color: var(--body); margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: .65rem; font-weight: 700; background: var(--surface); color: var(--body); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; letter-spacing: .03em; text-transform: uppercase; transition: background .2s, border-color .2s, color .2s; }
.eda-card:hover .tag, .ip-card:hover .tag { background: var(--green-pale); border-color: var(--green); color: var(--green-d); }

.ip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.ip-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.ip-card:hover { border-color: var(--green); box-shadow: 0 12px 38px rgba(30,42,28,.08); transform: translateY(-4px); }

.ip-cta-bar { background: var(--grad); border-radius: 22px; padding: 38px 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ip-cta-bar h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.ip-cta-bar p  { font-size: .875rem; color: rgba(255,255,255,.85); }
.btn-primary.on-dark { background: #fff; color: var(--green-d); }
.btn-primary.on-dark .btn-arrow { background: var(--green-pale); }
.btn-primary.on-dark:hover { background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.18); }


/* ════════════════════════════════════════════════════════
   NEWS
════════════════════════════════════════════════════════ */
#news { padding: 100px 0; background: #fff; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
#news::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(213,245,106,.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(15,191,98,.08), transparent 70%);
  pointer-events: none;
}
#news .wrap { position: relative; z-index: 1; }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.news-head .sec-title { margin-bottom: 0; }
.news-head .sec-eyebrow { margin-bottom: 8px; }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s; }
.news-card:hover { border-color: var(--green); box-shadow: 0 16px 44px rgba(30,42,28,.1); transform: translateY(-5px); }
.news-body { padding: 24px 24px 20px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.news-date { font-size: .76rem; font-weight: 600; color: var(--muted); }
.news-pill { font-size: .62rem; font-weight: 700; letter-spacing: .06em; color: var(--green-d); background: var(--green-pale); border-radius: 6px; padding: 3px 9px; }
.news-card h3 { font-size: .98rem; font-weight: 800; color: var(--ink); line-height: 1.55; margin-bottom: 16px; min-height: 3em; }
.news-more { font-size: .82rem; font-weight: 700; color: var(--green-d); transition: opacity .2s; }
.news-card:hover .news-more { opacity: .7; }
.news-thumb { height: 132px; margin: 0 16px 16px; border-radius: 12px; overflow: hidden; }
.news-thumb svg { width: 100%; height: 100%; display: block; }


/* ════════════════════════════════════════════════════════
   ABOUT + CONTACT  (light)
════════════════════════════════════════════════════════ */
.about-contact { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--line); }
.ac-grid { display: grid; grid-template-columns: 0.85fr 1.05fr 1fr; gap: 44px; align-items: stretch; }
.ac-visual { position: relative; border-radius: 22px; overflow: hidden; min-height: 360px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(30,42,28,.08); }
.ac-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.ac-about h2, .ac-contact h2 { font-family: 'Noto Sans TC', 'Inter', sans-serif; font-size: 1.8rem; font-weight: 900; color: var(--ink); margin-bottom: 20px; }
.ac-about p { font-size: .92rem; line-height: 1.95; color: var(--body); margin-bottom: 24px; }
.ac-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.ac-list li { position: relative; padding-left: 22px; font-size: .88rem; line-height: 1.6; color: var(--body); }
.ac-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }

.ac-contact { border-left: 1px solid var(--line); padding-left: 44px; }
.ac-info { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.ac-info li { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--body); }
.ac-info a { color: var(--body); transition: color .2s; }
.ac-info a:hover { color: var(--green-d); }
.ac-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--green-pale); color: var(--green-d); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ac-ico svg { width: 20px; height: 20px; }


/* ════════════════════════════════════════════════════════
   CONTACT FORM
════════════════════════════════════════════════════════ */
#contact-form { padding: 100px 0; background: var(--bg); border-top: 1px solid var(--line); }
.form-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.form-intro { padding-top: 8px; }
.form-box { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: 0 18px 50px rgba(30,42,28,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .78rem; font-weight: 700; color: var(--ink); letter-spacing: .03em; margin-bottom: 8px; }
.req { color: var(--green-d); }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: var(--bg); border: 1px solid var(--line-mid); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-family: inherit; font-size: .9rem; transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(15,191,98,.12); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.btn-submit { width: 100%; justify-content: center; background: var(--green); color: #fff; font-weight: 700; font-size: .95rem; border: none; border-radius: 999px; padding: 6px 6px 6px 22px; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 52px; transition: background .2s, transform .2s, box-shadow .2s, opacity .2s; }
.btn-submit:hover:not(:disabled) { background: var(--green-d); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,191,98,.32); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }
.btn-submit .btn-arrow { background: rgba(255,255,255,.22); }
.form-alert { border-radius: 12px; padding: 14px 18px; margin-top: 14px; font-size: .875rem; font-weight: 500; display: none; }
.form-alert.ok  { background: var(--green-pale); border: 1px solid var(--green); color: var(--green-d); }
.form-alert.err { background: #fef2f2; border: 1px solid rgba(239,68,68,.3); color: #dc2626; }


/* ════════════════════════════════════════════════════════
   FOOTER  (light)
════════════════════════════════════════════════════════ */
footer { position: relative; background: linear-gradient(180deg, #fff, var(--green-pale2)); border-top: 1px solid var(--line); padding: 64px 0 30px; overflow: hidden; }
.footer-bg { position: absolute; inset: 0; pointer-events: none; }
.footer-bg svg { width: 100%; height: 100%; }
footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.footer-brand img { height: 40px; margin-bottom: 18px; }
.footer-brand p { font-size: .84rem; color: var(--body); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--green-d); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .875rem; color: var(--body); transition: color .2s; }
.footer-col a:hover { color: var(--green-d); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .78rem; color: var(--muted); }


/* ════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════ */
.r { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1); }
.r.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }


/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ac-grid { grid-template-columns: 1fr 1fr; }
  .ac-visual { grid-column: 1 / -1; min-height: 220px; }
  .ac-contact { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
}
@media (max-width: 1024px) {
  #navbar { padding: 0 28px; }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(250,251,252,.38) 0%, rgba(250,251,252,.06) 36%, rgba(250,251,252,.88) 100%),
      radial-gradient(circle at 50% 42%, transparent 0 28%, rgba(250,251,252,.32) 80%);
  }
  .hero-copy { max-width: 100%; padding-top: 0; }
  .hero-inner { padding: 0 28px; }
  .hero-arrow { display: none; }
  .hero-scroll { display: none; }
  .fn-grid      { grid-template-columns: repeat(5, 1fr); }
  .product-showcase, .product-showcase.reverse { grid-template-columns: 1fr; gap: 36px; }
  .product-showcase.reverse .ps-visual { order: -1; }
  .ps-visual { max-width: 460px; }
  .eda-grid     { grid-template-columns: 1fr; }
  .ip-grid      { grid-template-columns: repeat(2, 1fr); }
  .news-grid    { grid-template-columns: repeat(2, 1fr); }
  .form-wrap    { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .wrap { padding: 0 28px; }
  #hero { min-height: 100svh; }
}
@media (max-width: 680px) {
  #navbar { padding: 0 18px; height: 72px; }
  .mobile-menu { top: 72px; }
  .nav-logo img { height: 34px; }
  .nav-links { display: none; }
  .nav-menu-btn { width: 46px; height: 46px; }
  .hero-inner { padding: 0 18px; }
  .hero-glow { left: 50%; top: 36%; width: 320px; height: 240px; }
  .wrap { padding: 0 18px; }
  #functions, #eda, #ip, #news, .about-contact, #contact-form { padding: 64px 0; }
  .fn-grid    { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .fn-item    { padding: 20px 8px; font-size: .76rem; }
  .cap-row, .cap-row.ip-caps { grid-template-columns: repeat(4, 1fr); }
  .ip-grid    { grid-template-columns: 1fr; }
  .news-grid  { grid-template-columns: 1fr; }
  .news-card h3 { min-height: 0; }
  .ac-grid    { grid-template-columns: 1fr; }
  .ac-visual  { min-height: 180px; }
  .form-row   { grid-template-columns: 1fr; }
  .form-box   { padding: 26px; }
  .ip-cta-bar { padding: 28px; }
  .news-head  { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}
