:root {
  --ink: #081321;
  --navy: #06111f;
  --navy-2: #0b1c31;
  --cyan: #19bfe8;
  --cyan-deep: #0aa9d4;
  --paper: #f4f7f8;
  --muted: #65717f;
  --line: #dce3e7;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  padding: 0 clamp(24px, 5vw, 78px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.brand { display:flex; align-items:center; width:190px; height:58px; padding:0; border-radius:14px; background:#fff; box-shadow:0 8px 24px rgba(0,0,0,.18); overflow:hidden; }
.brand img { width:100%; height:100%; display:block; object-fit:contain; transform:scale(1.18); transform-origin:center; }
footer img { width:168px; display:block; }
.site-header nav { display: flex; gap: 38px; font-size: 14px; color: #afbecd; }
.site-header nav a:hover { color: #fff; }
.header-cta { font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); padding: 10px 16px; border-radius: 999px; backdrop-filter: blur(10px); transition: background .2s, border-color .2s; }
.header-cta:hover { background: rgba(255,255,255,.12); border-color: rgba(25,191,232,.65); }
.header-cta span { color: var(--cyan); margin-left: 6px; }

.hero {
  min-height: 760px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/saag-digital-bg.png") center/cover no-repeat;
  opacity: .53;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,13,25,.97) 0%, rgba(4,13,25,.88) 42%, rgba(4,13,25,.26) 78%), linear-gradient(0deg, var(--navy) 0%, transparent 32%);
}
.hero-content { width: min(1210px, calc(100% - 48px)); margin: auto; padding-top: 105px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 700; color: #a9b7c5; display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 22px; height: 1px; background: var(--cyan); display: inline-block; }
.eyebrow.dark { color: #77838e; }
.hero h1, .support-section h2 {
  margin: 22px 0 24px;
  max-width: 800px;
  font: 700 clamp(52px, 6vw, 84px)/.98 "Manrope", sans-serif;
  letter-spacing: -.055em;
}
.hero h1 em, .support-section h2 em { color: var(--cyan); font-style: normal; }
.hero-copy { max-width: 540px; color: #adbac7; font-size: 18px; line-height: 1.65; }
.primary-link { display: inline-flex; gap: 44px; align-items: center; background: var(--cyan); color: #041522; font-size: 14px; font-weight: 800; padding: 17px 23px; margin-top: 18px; border-radius: 999px; box-shadow: 0 10px 28px rgba(25,191,232,.2); transition: transform .2s, background .2s, box-shadow .2s; }
.primary-link:hover { transform: translateY(-2px); background: #4bd2ef; }
.trust-strip { width: min(1210px, calc(100% - 48px)); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(3, 1fr); padding: 28px 0 35px; }
.trust-strip p { margin: 0; display: flex; align-items: center; gap: 14px; }
.trust-strip p + p { border-left: 1px solid rgba(255,255,255,.12); padding-left: 50px; }
.trust-strip strong { display: block; font-size: 13px; color: white; }
.trust-strip p span:last-child { color: #7d8e9f; font-size: 12px; line-height: 1.5; }
.trust-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(25,191,232,.4); color: var(--cyan); border-radius: 11px; background: rgba(25,191,232,.07); }

.erp-notice { position:relative; z-index:2; width:min(1210px,calc(100% - 48px)); margin:-28px auto 0; padding:22px 28px; display:flex; align-items:center; gap:18px; border:1px solid rgba(25,191,232,.35); border-radius:20px; background:linear-gradient(110deg,#e9faff,#fff); box-shadow:0 16px 42px rgba(8,42,59,.12); }
.erp-notice-icon { flex:0 0 auto; width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--cyan);color:#062030;font:800 20px "Manrope"; }
.erp-notice strong { display:block; margin-bottom:3px; color:#0a2232; font:800 13px "Manrope"; text-transform:uppercase; letter-spacing:.08em; }
.erp-notice p { margin:0; color:#243d4c; font-size:16px; font-weight:600; line-height:1.5; }

.packages-section { padding: 106px 24px 120px; background: #f6f8f9; }
.section-heading { max-width: 1210px; margin: 0 auto 50px; position: relative; }
.section-heading h2 { margin: 14px 0 12px; font: 700 clamp(36px, 4vw, 54px)/1.1 "Manrope", sans-serif; letter-spacing: -.045em; }
.section-heading > p:last-child { color: var(--muted); margin: 0; font-size: 16px; }
.pricing-grid { max-width: 1210px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: linear-gradient(155deg, #fff 0%, #fbfdfe 100%); border: 1px solid rgba(208,220,226,.9); border-radius: var(--radius-lg); padding: 34px 30px 30px; min-height: 610px; display: flex; flex-direction: column; position: relative; overflow: visible; box-shadow: 0 8px 30px rgba(13,30,48,.04); transition: transform .25s, box-shadow .25s, border-color .25s; }
.price-card:hover { transform: translateY(-7px); border-color: rgba(25,191,232,.45); box-shadow: 0 22px 60px rgba(13,30,48,.12); }
.price-card.featured { border: 2px solid rgba(25,191,232,.75); background: linear-gradient(155deg, #fff 15%, #f0fbfe 100%); box-shadow: 0 14px 40px rgba(11,169,212,.1); }
.popular-badge { position: absolute; right: 22px; top: -15px; background: var(--cyan); padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 18px rgba(25,191,232,.25); text-transform: uppercase; letter-spacing: .11em; font-size: 9px; font-weight: 800; }
.plan-icon { width: 46px; height: 46px; display: flex; justify-content: space-around; align-items: center; background: #e8f8fc; color: var(--cyan-deep); font: 800 20px "Manrope"; padding: 0 8px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(25,191,232,.1); }
.plan-icon span { font-size: 10px; }
.plan-label { color: #89939d; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin: 25px 0 7px; }
.price-card h3 { font: 700 25px "Manrope"; margin: 0 0 20px; letter-spacing: -.035em; }
.price { font: 700 48px/1 "Manrope"; letter-spacing: -.055em; margin: 0; }
.price span { font: 700 15px "DM Sans"; letter-spacing: 0; color: #536170; }
.billing { color: #9aa3ab; font-size: 11px; margin: 8px 0 0; }
.card-rule { height: 1px; background: var(--line); margin: 25px 0; }
.includes { color: #7b8690; font-size: 12px; margin: -4px 0 13px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; color: #344250; font-size: 13px; line-height: 1.5; }
.price-card li { position: relative; padding: 7px 0 7px 23px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-deep); font-weight: 800; }
.addons-block { margin: auto 0 20px; padding: 15px; border: 1px solid #dce8ec; border-radius: 15px; background: #f5fafb; }
.addons-block > p { margin: 0 0 10px; color: #75828c; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.addon-copy { min-width: 0; }
.addon-copy b { display: block; color: #2d3d49; font-size: 11px; line-height: 1.35; }
.addon-copy small { display: block; margin-top: 3px; color: var(--cyan-deep); font-size: 10px; font-weight: 700; }
.toggle { position: relative; flex: 0 0 auto; width: 38px; height: 22px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle > span { position: absolute; inset: 0; border-radius: 999px; background: #cbd6db; transition: .2s; }
.toggle > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s; }
.toggle input:checked + span { background: var(--cyan); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(25,191,232,.22); }
.buy-button, .purchase-button { border: 0; border-radius: 999px; background: var(--navy-2); color: white; margin-top: auto; padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; font-weight: 700; box-shadow: 0 9px 20px rgba(7,20,35,.13); transition: background .2s, transform .2s, box-shadow .2s; }
.buy-button:hover, .purchase-button:not(:disabled):hover { background: #123052; transform: translateY(-1px); }
.featured .buy-button { background: var(--cyan); color: var(--ink); }
.featured .buy-button:hover { background: #4bd2ef; }

.support-section { background: radial-gradient(circle at 85% 15%, rgba(20,177,219,.14), transparent 30%), var(--navy); color: #fff; padding: 90px max(24px, calc((100vw - 1210px) / 2)); display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: center; }
.support-section h2 { font-size: clamp(38px, 4.5vw, 62px); margin-bottom: 0; }
.support-copy > p { color: #aeb9c5; font-size: 17px; line-height: 1.75; max-width: 520px; }
.support-points { display: flex; gap: 26px; margin-top: 30px; color: #dce8ef; font-size: 13px; }
.support-points span::first-letter { color: var(--cyan); }
footer { padding: 32px max(24px, calc((100vw - 1210px) / 2)); background: #040c16; color: #657384; display: flex; align-items: center; gap: 32px; font-size: 11px; }
footer p:last-child { margin-left: auto; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,8,16,.76); backdrop-filter: blur(8px); }
.modal-panel { position: relative; width: min(500px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; padding: 36px 38px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.65); box-shadow: 0 35px 100px rgba(0,0,0,.45); animation: modalIn .25s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-close { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f4f6; display: grid; place-items: center; font-size: 24px; line-height: 1; color: #6c7883; cursor: pointer; }
.modal-panel h2 { font: 700 31px "Manrope"; margin: 12px 0 22px; letter-spacing: -.04em; }
.order-summary { background: #edf9fc; border: 1px solid rgba(25,191,232,.18); padding: 15px 17px; margin-bottom: 24px; border-radius: var(--radius-md); }
.order-breakdown { display: grid; gap: 7px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(25,191,232,.18); }
.order-breakdown > span, .order-total { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.order-breakdown b { color: #536571; font-size: 11px; font-weight: 600; }
.order-breakdown i { color: #344955; font-size: 11px; font-style: normal; white-space: nowrap; }
.order-breakdown .discount-line b,.order-breakdown .discount-line i { color: #09815f; }
.order-total > span { color: #60707d; font-size: 12px; }
.order-summary strong { font: 700 26px "Manrope"; }
.order-summary small { font: 700 11px "DM Sans"; color: #697783; }
#purchase-form label { display: block; color: #253341; font-size: 12px; font-weight: 700; margin: 15px 0; }
#purchase-form label small { color: #8d99a2; font-weight: 500; margin-left: 4px; }
input, textarea, select { width: 100%; margin-top: 7px; border: 1px solid #d8e0e4; background: #fafcfc; color: var(--ink); padding: 13px 14px; outline: none; resize: vertical; border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s, background .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(25,191,232,.1); }
select { appearance:none; background-image:linear-gradient(45deg,transparent 50%,#6e7b84 50%),linear-gradient(135deg,#6e7b84 50%,transparent 50%);background-position:calc(100% - 18px) 19px,calc(100% - 13px) 19px;background-size:5px 5px,5px 5px;background-repeat:no-repeat; }
.field-error { display: none; color: #b73434; font-weight: 500; font-size: 10px; margin-top: 5px; }
label.touched input:invalid + .field-error, label.touched textarea:invalid + .field-error, label.touched select:invalid + .field-error { display: block; }
.referral-field { margin-bottom: 4px; }
.referral-field > label { margin-bottom: 0 !important; }
.referral-control { display:flex; gap:8px; }
.referral-control input { margin-top:7px; text-transform:uppercase; }
.referral-control button { flex:0 0 auto; align-self:stretch; margin-top:7px; padding:0 18px; border:0; border-radius:11px; background:#e2f6fa; color:#087f9a; font-size:11px; font-weight:800; cursor:pointer; }
.referral-control button:hover { background:#c9eff6; }
.referral-control button:disabled { cursor:wait; opacity:.65; }
.referral-status { min-height:14px; margin:5px 0 0; color:#73808a; font-size:10px; }
.referral-status.success { color:#087d61; }.referral-status.error { color:#b73434; }
.specifications-group { margin-top:20px; padding:17px; border:1px solid #e0e7ea; border-radius:15px; background:#fafcfc; }
.specifications-group summary { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; padding-right:25px; color:#253341; font-size:12px; font-weight:800; cursor:pointer; list-style:none; }
.specifications-group summary::-webkit-details-marker { display:none; }
.specifications-group summary span { color:#8a969e; font-size:10px; font-weight:500; }
.specifications-group summary::after { content:"+"; position:absolute; right:0; top:50%; transform:translateY(-50%); color:var(--cyan-deep); font-size:20px; font-weight:500; }
.specifications-group[open] summary::after { content:"−"; }
.specifications-group[open] summary { padding-bottom:9px; border-bottom:1px solid #e4eaed; }
.spec-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.purchase-button { width: 100%; margin-top: 20px; }
.purchase-button:disabled { cursor: not-allowed; background: #cbd2d6; color: #75818a; }
.form-hint { margin: 9px 0 0; text-align: center; color: #8d979f; font-size: 10px; }
.form-hint.error { color:#b73434; }
.success-state { text-align: center; padding: 22px 0 8px; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: auto; background: #dcf8ef; color: #087d61; font-size: 24px; box-shadow: 0 9px 22px rgba(8,125,97,.12); }
.success-icon.failed { background:#fde9e9; color:#ad3030; box-shadow:0 9px 22px rgba(173,48,48,.1); }
.success-icon.pending { background:#fff2cf; color:#9a6700; box-shadow:0 9px 22px rgba(154,103,0,.1); }
.success-state .buy-button:disabled { cursor:wait; opacity:.55; transform:none; }
.success-state h3 { font: 700 25px "Manrope"; margin-bottom: 8px; }
.success-state p { color: var(--muted); line-height: 1.6; }
.payment-license-details { margin:20px 0 4px; padding:15px; border:1px solid #d7e9ed; border-radius:14px; background:#f5fbfc; text-align:left; }
.payment-license-details p { margin:0; padding:8px 0; border-bottom:1px solid #dfebee; }
.payment-license-details span { display:block; margin-bottom:4px; color:#7d8a93; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.payment-license-details code { color:#087f9a; font-size:11px; font-weight:800; overflow-wrap:anywhere; }
.payment-license-details a { display:flex; justify-content:space-between; margin-top:13px; padding:11px 14px; border-radius:999px; background:#dff6fa; color:#087f9a; font-size:11px; font-weight:800; }
.success-state .buy-button { width: 100%; justify-content: center; margin-top: 22px; }
body.modal-open { overflow: hidden; }

@media (max-width: 850px) {
  .site-header nav { display: none; }
  .hero { min-height: 700px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 540px; }
  .price-card { min-height: auto; }
  .support-section { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  .site-header { height: 74px; padding: 0 20px; }
  .brand { width:150px; height:47px; padding:0; border-radius:12px; }
  .brand img { width:100%; height:100%; }
  .header-cta { font-size: 11px; }
  .hero-content { padding-top: 95px; width: calc(100% - 40px); }
  .hero h1 { font-size: 45px; }
  .hero-copy { font-size: 16px; }
  .trust-strip { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 16px; padding-bottom: 24px; }
  .trust-strip p + p { border-left: 0; padding-left: 0; }
  .erp-notice { width:calc(100% - 32px); margin:-16px auto 0; padding:18px; align-items:flex-start; }
  .erp-notice p { font-size:14px; }
  .packages-section { padding: 78px 18px; }
  .support-section { padding-top: 70px; padding-bottom: 70px; }
  .support-points { flex-direction: column; gap: 12px; }
  footer { flex-wrap: wrap; }
  footer p:last-child { margin-left: 0; }
  .modal-panel { padding: 32px 22px 24px; }
  .spec-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
