/* ============================================================
   AIPC Marketing Site Stylesheet
   Builds on top of colors_and_type.css
   ============================================================ */

html, body { margin: 0; padding: 0; background: var(--bg-canvas); color: var(--fg-1); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
html { scroll-padding-top: 96px; }
* { box-sizing: border-box; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Containers */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }
.container-wide { max-width: 1320px; }

/* Section rhythm */
section { padding: clamp(64px, 9vw, 128px) 0; }
section.tight { padding: clamp(48px, 6vw, 88px) 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* Top nav (glass over hero) */
.nav-wrap { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px 0; transition: padding 240ms var(--ease-out), background 240ms var(--ease-out); }
.nav-wrap.scrolled { padding: 8px 0; background: rgba(5,10,20,0.72); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(10,20,40,0.45); backdrop-filter: saturate(150%) blur(18px); -webkit-backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid rgba(255,255,255,0.10); border-radius: 999px; padding: 10px 14px 10px 22px;
  box-shadow: 0 8px 32px rgba(5,10,20,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}
.nav .brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 700; letter-spacing: -0.01em; }
.nav .brand img { height: 22px; width: auto; }
.nav .links { display: flex; gap: 4px; }
.nav .links a { color: rgba(255,255,255,0.78); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: color 140ms, background 140ms; }
.nav .links a:hover { color: white; background: rgba(255,255,255,0.06); }
.nav .right { display: flex; align-items: center; gap: 8px; }
@media (max-width: 880px) { .nav .links { display: none; } }

/* Buttons */
.btn { appearance: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px;
  transition: transform 140ms var(--ease-out), box-shadow 240ms var(--ease-out), background 240ms var(--ease-out), color 140ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.primary { background: linear-gradient(135deg, #0066FF 0%, #147BFF 55%, #3B82F6 100%); color: white; box-shadow: 0 10px 28px -10px rgba(0,102,255,0.6); }
.btn.primary:hover { background: linear-gradient(135deg, #0052CC 0%, #0066FF 55%, #147BFF 100%); box-shadow: 0 18px 40px -14px rgba(0,102,255,0.75); }
.btn.secondary { background: white; color: var(--fg-1); border-color: var(--border); }
.btn.secondary:hover { background: var(--bg-subtle); }
.btn.ghost { background: transparent; color: var(--fg-1); }
.btn.ghost:hover { background: var(--bg-muted); }
.btn.on-dark { background: rgba(255,255,255,0.10); color: white; border-color: rgba(255,255,255,0.16); backdrop-filter: blur(10px); }
.btn.on-dark:hover { background: rgba(255,255,255,0.16); }
.btn.sm { padding: 10px 14px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 18px 28px; font-size: 17px; border-radius: 14px; }

/* Eyebrow + heading helpers */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-blue); }
.btn.primary:focus-visible { outline: 3px solid rgba(0,102,255,0.45); outline-offset: 2px; }
.eyebrow.on-dark { color: var(--brand-blue-300); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-2); line-height: 1.6; margin: 0; }
.lead.on-dark { color: rgba(255,255,255,0.72); }
.kicker { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; }

/* Cards */
.card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm); }
.card.dark { background: var(--navy-800); border-color: rgba(255,255,255,0.08); color: white; }
.card.dark p, .card.dark .body { color: rgba(255,255,255,0.72); }

/* Generic grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ==== Static-page utilities (added in v2 migration) ==== */
/* Icon tile (44×44 rounded square) */
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-blue-100); color: var(--brand-blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile.on-dark { background: rgba(20,123,255,0.18); color: var(--brand-blue-300); }
.icon-tile.sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-tile.xs { width: 28px; height: 28px; border-radius: 8px; }
/* Feature pill */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--brand-blue-100); color: var(--brand-blue-700); border: 1px solid rgba(20,123,255,0.18); }
.pill.on-dark { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.10); backdrop-filter: blur(10px); }
.pill.on-dark .pill-ic { color: var(--brand-blue-300); }
.pill .pill-ic { color: var(--brand-blue); display: inline-flex; }
/* Section head */
.sh-title { margin: 0; color: var(--fg-1); font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.sh-title.on-dark { color: white; }
/* Hero h1 */
.hero-h1 { font-size: clamp(40px, 6.4vw, 80px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 0; color: white; text-wrap: balance; }
.hero-grad { background: linear-gradient(135deg, #38D2FF 0%, #8FBEFF 60%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Card variants */
.card.dark-gradient { background: linear-gradient(180deg, #0A1428 0%, #050A14 100%); color: white; border-color: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.card.dark-gradient h3 { color: white; }
.card.dark-gradient p { color: rgba(255,255,255,0.78); }
/* Hover lift for hoverable cards */
.card.hoverable { transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out); }
.card.hoverable:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* FAQ accordion */
.faq-shell { max-width: 880px; margin: 48px auto 0; background: white; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-item:last-child { border-bottom: none; }
.faq-trigger { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left; padding: 22px 28px; background: transparent; border: none; cursor: pointer; transition: background 240ms var(--ease-out); color: var(--fg-1); font-family: inherit; }
.faq-trigger[aria-expanded="true"] { background: rgba(20,123,255,0.04); }
.faq-q { font-size: 16.5px; font-weight: 600; line-height: 1.4; letter-spacing: -0.005em; color: var(--fg-1); transition: color 240ms var(--ease-out); }
.faq-trigger[aria-expanded="true"] .faq-q { color: var(--brand-blue); }
.faq-chev { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--brand-blue-100); color: var(--brand-blue); display: inline-flex; align-items: center; justify-content: center; transition: all 240ms var(--ease-out); }
.faq-trigger[aria-expanded="true"] .faq-chev { background: var(--brand-blue); color: white; transform: rotate(180deg); }
.faq-panel { max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease-out); }
.faq-panel.open { max-height: 500px; }
.faq-answer { padding: 0 28px 24px; font-size: 15px; line-height: 1.65; color: var(--fg-2); text-wrap: pretty; max-width: 720px; }
/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(5,10,20,0.62); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); display: none; align-items: center; justify-content: center; padding: 24px; animation: pm-fade 220ms var(--ease-out); }
.modal-backdrop.open { display: flex; }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pm-pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-shell { width: min(960px, 100%); max-height: 92vh; overflow-y: auto; background: white; border-radius: 20px; box-shadow: 0 60px 120px -30px rgba(5,10,20,0.5), 0 30px 60px -20px rgba(5,10,20,0.3); animation: pm-pop 280ms var(--ease-out); position: relative; display: grid; grid-template-columns: 1.5fr 1fr; min-height: 460px; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 10px; background: rgba(15,28,51,0.04); border: 1px solid var(--border-soft); cursor: pointer; color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; transition: background 140ms, color 140ms; }
.modal-close:hover { background: rgba(15,28,51,0.08); color: var(--fg-1); }
.pm-input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: white; font: inherit; font-size: 14px; color: var(--fg-1); transition: border-color 140ms, box-shadow 140ms; font-family: inherit; }
.pm-input::placeholder { color: var(--fg-4); }
.pm-input:hover { border-color: rgba(15,28,51,0.18); }
.pm-input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(0,102,255,0.14); }
textarea.pm-input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 96px; }
select.pm-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7891' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.pm-label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 6px; }
.pm-req { color: var(--brand-blue); margin-left: 2px; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.pm-full { grid-column: 1 / -1; }
@media (max-width: 720px) { .modal-shell { grid-template-columns: 1fr; } .pm-grid { grid-template-columns: 1fr; } .pm-side { order: -1; border-radius: 20px 20px 0 0 !important; } }
.pm-side { position: relative; overflow: hidden; background: linear-gradient(180deg, #0A1428 0%, #050A14 100%); color: white; border-radius: 0 20px 20px 0; padding: 36px 30px; display: flex; flex-direction: column; justify-content: space-between; }
/* Consent checkbox row */
.pm-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--fg-2); cursor: pointer; }
.pm-consent input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--brand-blue); cursor: pointer; }
.pm-consent a { color: var(--brand-blue); }

/* ==== Site footer (v2 — polished) ==== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-footer { position: relative; background: var(--navy-900); color: rgba(255,255,255,0.72); padding: 72px 0 28px; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: -1px 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(20,123,255,0.45) 30%, rgba(56,210,255,0.55) 50%, rgba(20,123,255,0.45) 70%, transparent 100%);
}
.site-footer__top-accent {
  position: absolute; inset: 0 0 auto 0; height: 240px; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(20,123,255,0.12), transparent 70%);
}
.site-footer .container { position: relative; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 880px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Brand block */
.site-footer__logo { display: inline-flex; align-items: center; }
.site-footer__logo img { height: 28px; width: auto; filter: brightness(1.1); }
.site-footer__tagline {
  margin: 18px 0 24px; max-width: 360px;
  font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.62);
  text-wrap: pretty;
}
.site-footer__contact { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.site-footer__contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,0.78); }
.site-footer__contact a { color: rgba(255,255,255,0.78); transition: color 140ms ease; }
.site-footer__contact a:hover { color: white; }
.site-footer__contact address { font-style: normal; line-height: 1.5; }
.site-footer__contact-ic {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(20,123,255,0.14); color: var(--brand-blue-300);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(20,123,255,0.20);
}
.site-footer__cta { padding: 10px 16px !important; font-size: 13px !important; }

/* Nav columns */
.site-footer__col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__nav a {
  color: rgba(255,255,255,0.78); font-size: 14px;
  transition: color 140ms ease, transform 140ms ease;
  display: inline-block;
}
.site-footer__nav a:hover { color: white; transform: translateX(2px); }

/* Bottom bar */
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  gap: 20px; flex-wrap: wrap;
  font-size: 12.5px;
}
.site-footer__copy { color: rgba(255,255,255,0.5); }
.site-footer__copy strong { color: rgba(255,255,255,0.72); font-weight: 600; }
.site-footer__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.01em;
}
.site-footer__badge svg { color: var(--brand-blue-300); }
