/* ==========================================================================
   CHANGRAN — Computer Systems Design and Related Services
   Light lilac / deep plum theme
   ========================================================================== */

:root {
  --bg: #FAF8FD;
  --surface: #FFFFFF;
  --text: #44355B;
  --text-soft: #6B5E8C;
  --plum: #5B4A8A;
  --plum-dark: #2A2140;
  --lilac: #C4B5FD;
  --lilac-pale: #EDE8FA;
  --hairline: #E3DBF5;
  --border: #D8CEF0;
  --focus: #8A72E0;
  --shadow-sm: 0 2px 10px rgba(91, 74, 138, 0.08);
  --shadow-md: 0 10px 30px rgba(91, 74, 138, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--plum-dark);
  line-height: 1.2;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   BUTTONS & CHIPS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--lilac);
  color: var(--plum-dark);
  border-color: var(--lilac);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  background-color: #B7A5FC;
}

.btn-dark {
  background-color: var(--plum-dark);
  color: #FFFFFF;
  border-color: var(--plum-dark);
}

.btn-dark:hover {
  background-color: #3A2E5A;
}

.btn-outline {
  background-color: transparent;
  color: var(--plum);
  border-color: var(--plum);
}

.btn-outline:hover {
  background-color: var(--lilac-pale);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chip-pale {
  background-color: var(--lilac-pale);
  color: var(--plum);
}

.chip-lilac {
  background-color: var(--lilac);
  color: var(--plum-dark);
}

.chip-plum {
  background-color: var(--plum);
  color: #FFFFFF;
}

.chip-white {
  background-color: #FFFFFF;
  color: var(--plum-dark);
  border: 2px solid var(--lilac);
}

/* --------------------------------------------------------------------------
   CORNER BADGE NAV
   -------------------------------------------------------------------------- */

.corner-badge-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--lilac);
}

.corner-badge-nav .nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--lilac);
  background-color: var(--surface);
  color: var(--plum);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.nav-wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--plum-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
}

.nav-link:hover {
  color: var(--plum);
  text-decoration: none;
}

.nav-link.active {
  color: var(--plum-dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--plum);
}

.nav-dot {
  color: var(--lilac);
  font-weight: 700;
  font-size: 16px;
  user-select: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background-color: var(--lilac);
  color: var(--plum-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background-color: transparent;
  border: 2px solid var(--lilac);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--plum-dark);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   TYPEWRITER HERO
   -------------------------------------------------------------------------- */

.typewriter-hero {
  padding: 96px 0 72px;
  text-align: center;
}

.typewriter-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 26px;
}

.hero-headline-wrap {
  max-width: 820px;
  margin: 0 auto 26px;
}

.typewriter-headline {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  color: var(--plum-dark);
  letter-spacing: -0.01em;
  line-height: 1.12;
  min-height: 2.3em;
}

.typewriter-cursor {
  display: inline-block;
  width: 12px;
  height: 0.9em;
  background-color: var(--plum);
  vertical-align: baseline;
  margin-left: 4px;
  border-radius: 2px;
}

.typewriter-cursor.hidden {
  visibility: hidden;
}

.hero-subcopy {
  max-width: 660px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-soft);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-stat {
  padding: 16px 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 18px;
}

/* --------------------------------------------------------------------------
   STATEMENT ROW
   -------------------------------------------------------------------------- */

.statement-row {
  padding: 84px 0;
  border-top: 1px solid var(--hairline);
}

.statement-row .statement-text {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--plum-dark);
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.statement-row .statement-text span {
  color: var(--plum);
}

/* --------------------------------------------------------------------------
   FLOW FOUR
   -------------------------------------------------------------------------- */

.flow-four {
  padding: 84px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--hairline);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-head .chip {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 17px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}

.flow-step {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background-color: var(--bg);
}

.flow-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 18px;
}

.flow-num.lilac {
  background-color: var(--lilac);
  color: var(--plum-dark);
}

.flow-num.plum {
  background-color: var(--plum);
  color: #FFFFFF;
}

.flow-num.pale {
  background-color: var(--lilac-pale);
  color: var(--plum);
}

.flow-num.white {
  background-color: #FFFFFF;
  color: var(--plum-dark);
  border: 2px solid var(--lilac);
}

.flow-step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 15px;
  color: var(--text-soft);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lilac);
  font-size: 22px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   DATA COLS
   -------------------------------------------------------------------------- */

.data-cols {
  padding: 84px 0;
  border-top: 1px solid var(--hairline);
}

.data-cols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--surface);
}

.data-col {
  padding: 46px 28px;
  text-align: center;
}

.data-col + .data-col {
  border-left: 1px solid var(--hairline);
}

.data-num {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 12px;
}

.data-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-soft);
}

/* --------------------------------------------------------------------------
   PROMISE THREE
   -------------------------------------------------------------------------- */

.promise-three {
  padding: 84px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--hairline);
}

.promise-list {
  max-width: 900px;
  margin: 0 auto;
}

.promise-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 30px 4px;
}

.promise-row + .promise-row {
  border-top: 1px solid var(--hairline);
}

.promise-marker {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background-color: var(--lilac);
  margin-top: 5px;
}

.promise-row h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.promise-row p {
  color: var(--text-soft);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */

.faq-section {
  padding: 84px 0;
  border-top: 1px solid var(--hairline);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--plum-dark);
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--lilac-pale);
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.22s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 26px 24px;
  color: var(--text-soft);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */

.cta-band {
  padding: 84px 0;
  background-color: var(--lilac);
}

.cta-band .container {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--plum-dark);
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 18px;
  color: var(--plum-dark);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   SEAL FOOTER
   -------------------------------------------------------------------------- */

.seal-footer {
  border-top: 2px solid var(--lilac);
  background-color: var(--bg);
}

.seal-footer .footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--lilac);
  background-color: var(--surface);
  color: var(--plum);
  font-size: 20px;
  font-weight: 800;
}

.footer-wordmark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--plum-dark);
}

.footer-brand p {
  color: var(--text-soft);
  font-size: 15px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--plum);
}

.footer-contact address {
  font-style: normal;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

.footer-contact a {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 10px;
}

.footer-contact a:hover {
  color: var(--plum);
}

.footer-legal {
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-legal a {
  color: var(--plum);
}

.footer-rule {
  height: 2px;
  background-color: var(--lilac);
  width: 100%;
}

/* --------------------------------------------------------------------------
   SCROLL REVEAL
   -------------------------------------------------------------------------- */

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   SECONDARY PAGE HERO
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 84px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}

.page-hero .chip {
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 18px;
}

.page-hero p {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   SERVICES PAGE
   -------------------------------------------------------------------------- */

.services-list {
  padding: 84px 0;
}

.service-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 40px 0;
}

.service-card + .service-card {
  border-top: 1px solid var(--hairline);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--lilac-pale);
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}

.service-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-soft);
  font-size: 16px;
}

.process-overview {
  padding: 84px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
   CONTACT PAGE
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 72px 0;
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-block {
  margin-bottom: 28px;
}

.contact-block h3 {
  font-size: 17px;
  color: var(--plum);
  margin-bottom: 8px;
}

.contact-block p,
.contact-block address {
  color: var(--text-soft);
  font-style: normal;
  line-height: 1.6;
}

.contact-block a {
  color: var(--plum);
}

.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--plum-dark);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background-color: var(--bg);
  margin-bottom: 20px;
  transition: border-color 0.18s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--plum);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 12px;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  background-color: var(--lilac-pale);
  color: var(--plum);
  font-weight: 600;
}

.contact-faq {
  padding: 72px 0;
  border-top: 1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .corner-badge-nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--lilac);
    padding: 18px 24px 24px;
    gap: 12px;
  }

  .nav-dot {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .data-cols-grid {
    grid-template-columns: 1fr;
  }

  .data-col + .data-col {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas {
    flex-direction: column;
  }
}
