:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1f2937;
  --heading: #0f172a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1160px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 12px;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.55rem;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
}

input,
textarea,
button {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-height);
}

.brand {
  color: var(--heading);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--heading);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--heading);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--heading);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: var(--heading);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #ffffff;
  color: var(--heading);
  box-shadow: var(--shadow-sm);
}

/* =========================
   SECTION BASICS
========================= */
.section {
  padding: 80px 0;
  scroll-margin-top: 92px;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid rgba(229, 231, 235, 0.7);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at right top, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: center;
}

.hero h2 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: #334155;
  margin-bottom: 18px;
}

.hero-summary {
  max-width: 760px;
  color: #475569;
  font-size: 1.06rem;
}

.hero-pillars {
  font-weight: 700;
  color: var(--heading);
  margin-top: 18px;
  margin-bottom: 0;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-panel {
  width: 100%;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.hero-card h3 {
  margin-bottom: 14px;
}

.hero-card ul {
  padding-left: 1.1rem;
}

/* =========================
   GRID LAYOUTS
========================= */
.card-grid {
  display: grid;
  gap: 24px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-list {
  display: grid;
  gap: 24px;
}

/* =========================
   CARDS
========================= */
.info-card,
.content-card,
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.info-card:hover,
.content-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.info-card p:last-child,
.content-card p:last-child,
.project-card p:last-child {
  margin-bottom: 0;
}

.project-meta {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
}

.project-card p {
  color: #475569;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* =========================
   LISTS / CONTENT DETAILS
========================= */
.feature-list {
  margin-top: 14px;
  margin-bottom: 0;
}

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li + li {
  margin-top: 12px;
}

.browser-card p {
  color: var(--muted);
}

/* =========================
   PLACEHOLDER BOX
========================= */
.placeholder-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin-top: 16px;
  padding: 18px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  text-align: center;
  font-weight: 600;
}

/* =========================
   ARCHITECTURE DIAGRAM
========================= */
.architecture-diagram {
  margin-top: 28px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.architecture-diagram h3 {
  color: #ffffff;
  margin-bottom: 16px;
}

/* =========================
   CONTACT
========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-weight: 700;
  color: var(--heading);
  margin-bottom: -4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 13px 14px;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

/* =========================
   FOOTER
========================= */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1080px) {
  .four-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .site-header .container {
    flex-wrap: wrap;
    min-height: auto;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
  }

  .two-col,
  .split-grid,
  .three-col {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 76px 0 64px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 24px));
  }

  h1 {
    margin-bottom: 14px;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .hero-actions,
  .project-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-keywords {
    gap: 10px;
  }

  .hero-keywords span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .info-card,
  .content-card,
  .project-card,
  .hero-card,
  .architecture-diagram {
    padding: 22px;
  }

  .placeholder-box {
    min-height: 150px;
  }

  .site-footer {
    padding: 24px 0;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    position: static;
  }

  .section {
    scroll-margin-top: 20px;
  }

  .eyebrow {
    font-size: 0.76rem;
  }

  .info-card,
  .content-card,
  .project-card {
    padding: 20px;
  }

  .hero-card {
    padding: 20px;
  }
}

.clickable-proof {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-proof:hover {
  transform: scale(1.015);
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.82);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-modal-inner {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-modal-content {
  display: block;
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.image-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.2rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  z-index: 2001;
}

.image-modal-caption {
  margin-top: 14px;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 90vw;
}

@media (max-width: 768px) {
  .image-modal {
    padding: 16px;
  }

  .image-modal-content {
    max-width: 94vw;
    max-height: 72vh;
  }

  .image-modal-close {
    top: 10px;
    right: 16px;
    font-size: 2rem;
  }

  .image-modal-caption {
    font-size: 0.9rem;
  }
}
.placeholder-box {
  position: relative;
}

.placeholder-box::after {
  content: "Click to enlarge";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.placeholder-box:hover::after {
  opacity: 1;
}
.clickable-proof:hover {
  transform: scale(1.02);
}

.proof-card {
  margin-top: 1rem;
}

.image-wrap {
  position: relative;
}

.image-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.legacy-badge {
  background: #b91c1c;
}

.modern-badge {
  background: #2563eb;
}

.browser-badge {
  background: #374151;
}

.proof-caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
}
.btn i {
  margin-right: 8px;
}

.project-actions i {
  margin-right: 6px;
}

h3 i {
  margin-right: 8px;
  color: var(--primary);
}

#ui-ux-analysis {
  border-top: 1px solid var(--line);
}


