/* ============================================================
   AC Software — Shared Stylesheet
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0F172A;
  background: #FFFFFF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --primary:        #1E40AF;
  --primary-dark:   #1E3A8A;
  --primary-light:  #2563EB;
  --primary-faint:  #EFF6FF;
  --primary-mid:    #DBEAFE;
  --text:           #0F172A;
  --text-2:         #334155;
  --text-muted:     #64748B;
  --text-faint:     #94A3B8;
  --border:         #E2E8F0;
  --border-strong:  #CBD5E1;
  --surface:        #F8FAFC;
  --surface-2:      #F1F5F9;
  --white:          #FFFFFF;
  --success:        #10B981;
  --success-bg:     rgba(16,185,129,.08);
  --success-border: rgba(16,185,129,.25);
  --radius-sm:      6px;
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --shadow-sm:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:  0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg:  0 12px 40px rgba(15,23,42,.10), 0 4px 16px rgba(15,23,42,.05);
  --t:          .18s ease;
}

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 8px; color: var(--text); }
h4 { font-size: 15px; font-weight: 700; }
p { color: var(--text-muted); }
.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px; display: block;
}
.lead { font-size: 18px; color: var(--text-muted); line-height: 1.7; }
.sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-muted);
  max-width: 600px; margin: 18px auto 0; line-height: 1.7;
}
strong { color: var(--text); font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-lg);
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
  text-decoration: none; font-family: inherit;
}
.btn:focus-visible { outline: 3px solid rgba(30,64,175,.4); outline-offset: 2px; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(30,64,175,.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,64,175,.35);
}
.btn-outline {
  border-color: var(--border-strong); color: var(--text-2); background: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--text-faint); background: var(--surface);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-ghost { color: var(--primary); background: transparent; border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { background: var(--primary-faint); }
.btn-lg  { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-sm  { padding: 8px 14px; font-size: 13.5px; border-radius: var(--radius); }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--text);
  flex-shrink: 0;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; letter-spacing: 0;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links .btn { margin-left: 8px; }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text); border-radius: var(--radius);
  transition: background var(--t);
}
.nav-hamburger:hover { background: var(--surface); }
.mobile-menu {
  display: none;
  position: absolute; top: 64px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px 20px 16px; box-shadow: var(--shadow-md);
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 11px 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: color var(--t), background var(--t);
}
.mobile-menu a:hover { color: var(--text); background: var(--surface); }
.mobile-menu .btn { margin-top: 8px; justify-content: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; align-items: center; }
}

/* ===== HERO (HOME) ===== */
.hero {
  padding: 100px 0 88px;
  text-align: center;
  background: linear-gradient(180deg, var(--primary-faint) 0%, var(--white) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 60%, rgba(30,64,175,.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(37,99,235,.07) 0%, transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(30,64,175,.22);
  background: rgba(30,64,175,.07);
  font-size: 13px; font-weight: 600; color: var(--primary);
  margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.hero h1 { margin-bottom: 20px; color: var(--text); }
.hero .sub { margin-bottom: 36px; }
.cta-row { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 72px 0 64px; text-align: center;
  background: linear-gradient(180deg, var(--primary-faint) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 14px; }
.page-hero .sub { margin-top: 0; }

/* ===== TRUST BAR ===== */
.trust {
  padding: 22px 0; background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 36px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }

/* ===== CARDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover { border-color: rgba(30,64,175,.22); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-faint); color: var(--primary);
  display: grid; place-items: center; margin-bottom: 18px; flex-shrink: 0;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; line-height: 1.65; }

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 32px; border-right: 1px solid var(--border); }
.step:last-child { border-right: none; }
@media (max-width: 760px) { .step { border-right: none; border-bottom: 1px solid var(--border); } .step:last-child { border-bottom: none; } }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; margin-bottom: 18px; flex-shrink: 0;
}
.step p { font-size: 14.5px; line-height: 1.65; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--primary); border-radius: var(--radius-xl);
  padding: 64px 48px; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.72); font-size: 17px; margin-bottom: 32px; }
.cta-banner .btn-white {
  background: #fff; color: var(--primary); border-color: transparent;
  box-shadow: none; font-weight: 700;
}
.cta-banner .btn-white:hover { background: var(--primary-faint); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta-banner .btn-outline-white {
  border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.08);
}
.cta-banner .btn-outline-white:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
@media (max-width: 600px) { .cta-banner { padding: 48px 28px; } }

/* ===== FAQ ===== */
.faq {
  max-width: 760px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden;
}
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  padding: 20px 24px; cursor: pointer;
  font-weight: 600; font-size: 16px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; transition: background var(--t); user-select: none;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface); }
.faq summary::after {
  content: "+"; color: var(--primary); font-size: 22px; font-weight: 300;
  transition: transform .2s; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { background: var(--surface); }
.faq details p { padding: 0 24px 22px; font-size: 15px; line-height: 1.7; }

/* ===== FORMS ===== */
.form-card {
  max-width: 780px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) { .form-card { padding: 28px 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 580px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
input, select, textarea {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px;
  color: var(--text); font-family: inherit; font-size: 15px; line-height: 1.5;
  transition: border-color var(--t), box-shadow var(--t); outline: none; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
}
textarea { resize: vertical; min-height: 130px; }
select {
  appearance: none;
  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='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.form-foot small { font-size: 13px; color: var(--text-faint); }
.form-success {
  display: none; margin-top: 18px; padding: 14px 18px;
  background: var(--success-bg); border: 1px solid var(--success-border);
  border-radius: var(--radius); color: #065F46; font-size: 14.5px; font-weight: 500;
}
.form-success.show { display: block; }

/* ===== HIGHLIGHT ROW (split layout) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split h2 { margin-bottom: 14px; }
.split .lead { margin-bottom: 24px; }
.check-list { display: grid; gap: 14px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-item .chk {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.28);
  display: grid; place-items: center; color: var(--success); margin-top: 2px;
}
.check-item span { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ===== STAT ROW ===== */
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
@media (max-width: 600px) { .stat-row { grid-template-columns: 1fr; } }
.stat { padding: 32px; border-right: 1px solid var(--border); text-align: center; }
.stat:last-child { border-right: none; }
@media (max-width: 600px) { .stat { border-right: none; border-bottom: 1px solid var(--border); } .stat:last-child { border-bottom: none; } }
.stat .num { font-size: 40px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat p { font-size: 14.5px; }

/* ===== CONTACT INFO ===== */
.contact-info { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 32px; background: var(--surface); }
.contact-info .ci-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-faint); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 2px; }
.contact-info .ci-value { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-info a { color: var(--primary); }
.contact-info a:hover { text-decoration: underline; }

/* ===== LEGAL ===== */
.legal-content { max-width: 760px; margin: 0 auto; padding: 64px 0 80px; }
.legal-content .last-updated { font-size: 13.5px; color: var(--text-faint); margin-bottom: 36px; }
.legal-content h2 { font-size: 22px; margin: 44px 0 12px; color: var(--text); }
.legal-content h3 { font-size: 17px; margin: 28px 0 8px; color: var(--text-2); }
.legal-content p { font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; list-style: disc; }
.legal-content li { font-size: 15px; color: var(--text-muted); padding: 4px 0; line-height: 1.75; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--surface);
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { margin-bottom: 14px; }
.foot-tagline { font-size: 14px; color: var(--text-faint); max-width: 280px; line-height: 1.65; }
.foot-col h4 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px;
}
.foot-col a {
  display: block; font-size: 14px; color: var(--text-muted);
  padding: 5px 0; transition: color var(--t);
}
.foot-col a:hover { color: var(--primary); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.foot-bottom p { font-size: 13.5px; color: var(--text-faint); }
.foot-bottom-links { display: flex; gap: 20px; }
.foot-bottom-links a { font-size: 13.5px; color: var(--text-faint); transition: color var(--t); }
.foot-bottom-links a:hover { color: var(--primary); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.surface-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
