/* ============================================================
   Chun Ji — Computer Systems Design & IT Services
   Original design — every page uniquely architected
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0F172A;
  --steel: #1E293B;
  --slate: #334155;
  --graphite: #475569;
  --silver: #94A3B8;
  --frost: #CBD5E1;
  --ice: #E2E8F0;
  --snow: #F1F5F9;
  --chalk: #F8FAFC;
  --white: #FFFFFF;
  --electric: #2563EB;
  --volt: #3B82F6;
  --sky: #60A5FA;
  --deep-blue: #1D4ED8;
  --navy: #1E3A5F;
  --teal: #0D9488;
  --emerald: #059669;
  --amber: #F59E0B;
  --gold: #D97706;
  --coral: #DC2626;
  --rose: #E11D48;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15);
  --transition: 0.25s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--steel);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--deep-blue);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
}

h1 { font-size: 3rem; letter-spacing: -1px; }
h2 { font-size: 2.25rem; letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* --- Container --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  border-bottom: 3px solid var(--electric);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.site-logo .logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--electric);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--frost);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--electric);
  color: var(--white);
}

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: var(--silver);
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--electric);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .site-logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--silver);
  max-width: 340px;
}

.footer-heading {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--silver);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--slate);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--graphite);
}

/* ============================================================
   HOMEPAGE — index.html
   Unique layout: full-bleed geometric hero → zigzag sections
   → service matrix → stats strip → process timeline → CTA split
   ============================================================ */

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 6rem 0 7rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 60%, var(--deep-blue) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, var(--teal) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, var(--electric) 0%, transparent 35%);
  opacity: 0.5;
  animation: heroPulse 12s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(3deg); }
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--sky);
}

.hero p {
  font-size: 1.2rem;
  color: var(--frost);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--electric);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--deep-blue);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--frost);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

/* Slanted section divider */
.slant-divider {
  position: relative;
  height: 80px;
  background: var(--chalk);
  clip-path: polygon(0 100%, 100% 0%, 100% 100%, 0 100%);
  margin-top: -1px;
}

.slant-divider.ink-to-chalk {
  background: var(--chalk);
  clip-path: polygon(0 0, 100% 80px, 100% 100%, 0 100%);
}

/* About section */
.about-section {
  padding: 5rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-block {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.about-block h3 {
  color: var(--sky);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.about-block .big-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-block .big-number span {
  color: var(--amber);
}

.about-accent {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 140px;
  height: 140px;
  background: var(--electric);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.about-accent-bottom {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: var(--teal);
  border-radius: 50%;
  z-index: 1;
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--graphite);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Services section */
.services-section {
  padding: 5rem 0;
  background: var(--snow);
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--graphite);
  font-size: 1.1rem;
}

.service-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--ice);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--electric);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  font-weight: 900;
}

.service-icon.blue { background: #DBEAFE; color: var(--electric); }
.service-icon.teal { background: #CCFBF1; color: var(--teal); }
.service-icon.amber { background: #FEF3C7; color: var(--gold); }
.service-icon.rose { background: #FFE4E6; color: var(--rose); }
.service-icon.navy { background: #E0E7FF; color: var(--deep-blue); }
.service-icon.emerald { background: #D1FAE5; color: var(--emerald); }

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--graphite);
  font-size: 0.95rem;
}

/* Stats strip */
.stats-strip {
  background: var(--ink);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item .stat-number span {
  color: var(--amber);
}

.stat-item .stat-label {
  color: var(--silver);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Process section */
.process-section {
  padding: 5rem 0;
  background: var(--white);
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ice);
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--white);
  background: var(--electric);
  z-index: 2;
}

.step-content {
  padding-top: 0.25rem;
}

.step-content h3 {
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--graphite);
}

/* CTA section */
.cta-section {
  padding: 5rem 0;
  background: var(--chalk);
}

.cta-box {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-box h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--frost);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-box .btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.cta-box .btn-primary:hover {
  background: var(--gold);
  color: var(--white);
}

.cta-contact {
  background: var(--steel);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.cta-contact h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--frost);
  font-size: 1rem;
}

.contact-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-dot.email { background: var(--sky); }
.contact-dot.phone { background: var(--teal); }
.contact-dot.map { background: var(--amber); }

/* ============================================================
   PRIVACY PAGE — privacy.html
   Unique layout: full-width intro banner → sidebar + content
   → expandable sections → policy cards
   ============================================================ */

.privacy-hero {
  background: var(--ink);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 4px solid var(--teal);
}

.privacy-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.privacy-hero .privacy-date {
  color: var(--sky);
  font-size: 1rem;
  font-weight: 600;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding: 3rem 0 5rem;
  align-items: start;
}

.privacy-sidebar {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--ice);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.privacy-sidebar h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--graphite);
  margin-bottom: 1rem;
}

.privacy-nav {
  list-style: none;
}

.privacy-nav li {
  margin-bottom: 0.25rem;
}

.privacy-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  color: var(--graphite);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 500;
}

.privacy-nav a:hover,
.privacy-nav a.active {
  background: var(--snow);
  color: var(--electric);
}

.privacy-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ice);
}

.privacy-content section {
  margin-bottom: 2.5rem;
}

.privacy-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--ink);
}

.privacy-content p {
  margin-bottom: 1rem;
  color: var(--steel);
}

.privacy-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.privacy-content li {
  margin-bottom: 0.4rem;
  color: var(--steel);
}

.privacy-highlight {
  background: var(--snow);
  border-left: 4px solid var(--teal);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}

.privacy-highlight p {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--teal);
}

/* ============================================================
   TERMS PAGE — terms-of-service.html
   Unique layout: split-panel hero → chapter cards → summary section
   ============================================================ */

.terms-hero {
  background: var(--deep-blue);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.terms-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: var(--ink);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.terms-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.terms-hero-text h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.terms-hero-text .terms-date {
  color: var(--sky);
  font-weight: 600;
}

.terms-hero-meta {
  color: var(--frost);
  font-size: 1.05rem;
  line-height: 1.6;
}

.terms-chapters {
  padding: 4rem 0 5rem;
  background: var(--white);
}

.terms-chapter {
  border: 1px solid var(--ice);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.chapter-header {
  background: var(--snow);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}

.chapter-header:hover {
  background: var(--ice);
}

.chapter-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--electric);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.chapter-header h2 {
  font-size: 1.2rem;
  flex: 1;
}

.chapter-body {
  padding: 1.5rem 2rem 2rem;
}

.chapter-body p {
  color: var(--steel);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.chapter-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.chapter-body li {
  color: var(--steel);
  margin-bottom: 0.4rem;
}

.terms-summary {
  padding: 4rem 0;
  background: var(--snow);
}

.terms-summary-box {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: var(--frost);
}

.terms-summary-box h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.terms-summary-box p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .service-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
  }

  .privacy-sidebar h4 {
    width: 100%;
  }

  .privacy-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

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

  .cta-box {
    grid-template-columns: 1fr;
  }

  .terms-hero .container {
    grid-template-columns: 1fr;
  }

  .terms-hero::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 3rem 0 4rem; }
  .hero h1 { font-size: 2rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-matrix {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-box {
    padding: 2rem;
  }

  .terms-summary-box { padding: 1.5rem; }

  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }
}
