/* ==========================================================================
   Praya — Computer Integrated Systems Design
   Light theme · warm blush-cream #F9F4F7 · plum ink #271521 · plum accent #A21CAF
   ========================================================================== */

:root {
  --cream: #F9F4F7;
  --ink: #271521;
  --ink-soft: #4A3143;
  --muted: #6E5A66;
  --plum: #A21CAF;
  --plum-deep: #7E22CE;
  --plum-dark: #7A0E8E;
  --lavender: #E9D5FF;
  --blush: #FDF4FF;
  --soft: #F3E7F1;
  --line: #EBD9EA;
  --white: #FFFFFF;
  --gold: #C8A24A;
  --shadow: 0 18px 50px rgba(122, 14, 142, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-size: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--plum-dark); text-decoration: none; }
a:hover { color: var(--plum); }

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum-dark);
  color: var(--white);
  padding: 10px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background-color: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}
.btn-primary:hover { background-color: var(--plum-dark); border-color: var(--plum-dark); color: var(--white); }

.btn-ghost {
  background-color: transparent;
  color: var(--plum-dark);
  border-color: var(--plum);
}
.btn-ghost:hover { background-color: var(--lavender); color: var(--plum-dark); }

/* ==========================================================================
   Crown Navigation
   ========================================================================== */
.crown-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
}

/* CSS-drawn royal crown */
.crown-icon {
  position: relative;
  width: 46px;
  height: 34px;
  display: inline-block;
  flex-shrink: 0;
}
.crown-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 46px;
  height: 30px;
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-deep) 100%);
  clip-path: polygon(0 100%, 0 45%, 12% 45%, 17% 12%, 28% 45%, 40% 45%, 50% 0%, 60% 45%, 72% 45%, 83% 12%, 88% 45%, 100% 45%, 100% 100%);
}
.crown-ball {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
}
.ball-c { top: -4px; left: 50%; transform: translateX(-50%); }
.ball-l { top: 1px; left: 15px; }
.ball-r { top: 1px; right: 15px; }
.crown-gem {
  position: absolute;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--blush);
}
.gem-1 { left: 9px; }
.gem-2 { left: 20px; }
.gem-3 { right: 20px; }
.gem-4 { right: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 16px;
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--plum);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--plum-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-cta { padding: 13px 22px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle .bar {
  width: 26px;
  height: 3px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  background-color: var(--white);
  border-top: 1px solid var(--line);
  padding: 8px 24px 20px;
}
.nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--soft);
  font-weight: 600;
  color: var(--ink);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ==========================================================================
   Victory-V Hero
   ========================================================================== */
.victory-hero {
  position: relative;
  background-color: var(--cream);
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 24px 110px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum-dark);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-copy h1 .accent { color: var(--plum); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Victory V visual */
.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-stroke {
  position: absolute;
  bottom: 84px;
  width: 34px;
  height: 240px;
  border-radius: 17px;
  background: linear-gradient(180deg, var(--plum) 0%, var(--plum-deep) 100%);
}
.v-left {
  left: 50%;
  bottom: 84px;
  margin-left: -17px;
  transform: rotate(34deg);
  transform-origin: 50% 100%;
}
.v-right {
  left: 50%;
  bottom: 84px;
  margin-left: -17px;
  transform: rotate(-34deg);
  transform-origin: 50% 100%;
}

.v-star {
  position: absolute;
  top: 34px;
  width: 34px;
  height: 34px;
  background-color: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.v-laurel {
  position: absolute;
  bottom: 56px;
  width: 260px;
  height: 48px;
  border-bottom: 3px solid var(--plum-deep);
  border-radius: 0 0 50% 50%;
}
.v-laurel::before,
.v-laurel::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 46px;
  height: 22px;
  border-bottom: 3px solid var(--gold);
  border-radius: 0 0 50% 50%;
}
.v-laurel::before { left: -14px; }
.v-laurel::after { right: -14px; }

/* ==========================================================================
   Full-width statement row
   ========================================================================== */
.statement-row {
  background-color: var(--plum-dark);
  padding: 90px 24px;
}
.statement-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.statement-mark {
  display: block;
  width: 46px;
  height: 4px;
  background-color: var(--gold);
  margin: 0 auto 34px;
  border-radius: 2px;
}
.statement-text {
  font-size: 34px;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 26px;
}
.statement-note {
  font-size: 17px;
  color: var(--lavender);
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   Big-numeral stats
   ========================================================================== */
.stats-section {
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--white);
}
.stat-value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: var(--plum);
  margin-bottom: 12px;
}
.stat-suffix { font-size: 40px; }
.stat-label {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   Capabilities
   ========================================================================== */
.capabilities-section {
  background-color: var(--blush);
  padding: 92px 24px;
}
.section-head {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: 38px;
  margin-bottom: 20px;
}
.section-intro {
  font-size: 17px;
  color: var(--muted);
}
.capability-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.capability {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.capability:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cap-icon {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: 0.04em;
}
.capability h3 { font-size: 22px; }
.capability p { font-size: 16px; color: var(--muted); }

/* ==========================================================================
   Numbered process list
   ========================================================================== */
.process-section {
  background-color: var(--cream);
  padding: 92px 24px;
}
.process-list {
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
  position: relative;
}
.process-step {
  position: relative;
  display: flex;
  gap: 28px;
  padding: 0 0 54px 0;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 82px;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}
.process-step:last-child::before { display: none; }

.step-num {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--plum);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--lavender);
  position: relative;
  z-index: 1;
}
.step-body {
  padding-top: 8px;
}
.step-body h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.step-body p {
  font-size: 16px;
  color: var(--muted);
  max-width: 640px;
}

/* ==========================================================================
   Comparison table
   ========================================================================== */
.compare-section {
  background-color: var(--blush);
  padding: 92px 24px;
  border-top: 1px solid var(--line);
}
.compare-wrap {
  max-width: 980px;
  margin: 0 auto;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table th,
.compare-table td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}
.compare-table thead th {
  background-color: var(--plum-dark);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
}
.compare-table thead th:first-child {
  background-color: var(--plum);
}
.compare-table tbody th {
  color: var(--ink);
  font-weight: 700;
  background-color: var(--soft);
  font-size: 15px;
}
.compare-table tbody td { color: var(--ink-soft); }
.compare-table tbody td:nth-child(3) {
  background-color: var(--blush);
  color: var(--ink);
  font-weight: 600;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-section {
  background-color: var(--cream);
  padding: 92px 24px;
}
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--white);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.faq-question:hover { color: var(--plum-dark); }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--plum);
  transition: transform 0.25s ease;
}
.faq-icon::before { top: 50%; left: 0; width: 22px; height: 3px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; width: 3px; height: 22px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) rotate(90deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 16px;
}

/* ==========================================================================
   Split CTA band
   ========================================================================== */
.cta-band {
  background-color: var(--cream);
  padding: 92px 24px;
  border-top: 1px solid var(--line);
}
.cta-band-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 56px;
  box-shadow: var(--shadow);
}
.cta-left h2 {
  font-size: 36px;
  margin-bottom: 18px;
}
.cta-copy {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 26px;
}
.cta-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-contacts li {
  font-size: 16px;
  color: var(--ink-soft);
}
.cta-contacts a {
  color: var(--plum-dark);
  font-weight: 700;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--blush);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--plum);
  outline-offset: 0;
  border-color: var(--plum);
}
.field textarea { resize: vertical; }
.form-note {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--cream);
  border-top: 4px solid var(--plum);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-blurb {
  font-size: 15px;
  color: var(--muted);
  max-width: 300px;
}
.footer-col h3 {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-dark);
  margin-bottom: 18px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--plum); }
.footer-address { line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid var(--line);
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 80px; }
  .hero-copy h1 { font-size: 40px; }
  .hero-visual { height: 300px; order: 2; }
  .hero-copy { order: 1; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .capability-grid { grid-template-columns: 1fr; }
  .cta-band-inner { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: none; }
  .crown-nav.nav-open .nav-mobile { display: flex; }
  .crown-nav.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .crown-nav.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .crown-nav.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: 32px; }
  .statement-text { font-size: 26px; }
  .section-head h2 { font-size: 30px; }
  .stats-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
  .process-step { gap: 18px; }
  .step-num { width: 62px; height: 62px; font-size: 22px; }
  .process-step::before { left: 30px; top: 66px; }
  .compare-table th, .compare-table td { padding: 14px 12px; font-size: 14px; }
}
