:root {
  --color-primary: #ff6d00;
  --color-primary-strong: #e85f00;
  --color-primary-soft: #fff3e2;
  --color-secondary: #ffb000;
  --color-accent: #ff8c1a;
  --color-background: #fffaf4;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-solid: #ffffff;
  --color-surface-muted: #fff7ed;
  --color-border: rgba(255, 149, 0, 0.24);
  --color-border-strong: #ffd3a1;
  --color-text: #2a1600;
  --color-text-muted: #6d3900;
  --color-text-soft: #9a4a00;
  --color-success: #1f9d55;
  --color-warning: #d97706;
  --color-danger: #d64545;
  --shadow-soft: 0 16px 42px rgba(255, 117, 0, 0.13);
  --shadow-medium: 0 24px 70px rgba(255, 117, 0, 0.18);
  --shadow-hover: 0 30px 80px rgba(255, 109, 0, 0.28);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;
  --max-width-page: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 166, 0, 0.28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 110, 0, 0.18), transparent 32%),
    var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
}

main {
  width: 90%;
  margin: 0 auto;
  flex: 1; 
}

a {
  color: inherit;
  text-decoration: none;
}
.message-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 700;
}

.message-text a:hover {
  color: var(--color-accent);
  text-decoration-thickness: 2px;
}

.message-text a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

button,
.button {
  border: 0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
}

button:hover,
.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.button-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-surface-solid);
  box-shadow: 0 14px 28px rgba(255, 109, 0, 0.28);
}

.button-secondary {
  background: var(--color-primary-soft);
  color: var(--color-text-soft);
  border: 1px solid var(--color-border-strong);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 211, 161, 0.75);
}

.button-disabled {
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 211, 161, 0.75);
}
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  position: absolute;
  bottom: 120%;
  left: 0;
  display: none;
  width: max-content;
  max-width: 240px;
  padding: 0.4rem 0.6rem;
  border-radius: 1.0rem;
  background: #222;
  color: white;
  font-size: 0.875rem;
}

.tooltip:hover .tooltip-text,
.tooltip:focus-within .tooltip-text {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 244, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 149, 0, 0.2);
  box-shadow: 0 10px 30px rgba(255, 109, 0, 0.08);
}

.header-inner {
  width: min(var(--max-width-page), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.project-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
  padding: 10px 18px;
  font-size: 1.05rem;
  border-radius: 150px;
  color: var(--color-accent);
  border: 1px solid;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-size: 1.18rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(255, 109, 0, 0.28);
  place-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  box-shadow: 0 10px 24px rgba(255, 109, 0, 0.14);
}

.page-shell {
  width: min(var(--max-width-page), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 28px;
  position: relative;
}

.glow {
  position: fixed;
  inset: 90px 10% auto 10%;
  height: 340px;
  background: linear-gradient(135deg, rgba(255, 145, 0, 0.26), rgba(255, 200, 69, 0.12));
  filter: blur(42px);
  border-radius: 44px;
  z-index: -1;
  pointer-events: none;
}

.hero, 
.hero-no-grid {
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.hero-copy,
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-copy {
  padding: clamp(28px, 5vw, 48px);
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.eyebrow {
  color: var(--color-primary);
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  max-width: 780px;
  margin-bottom: 22px;
}

.hero-text {
  color: var(--color-text-muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  max-width: 660px;
  margin: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(255, 109, 0, 0.18);
}

.metric strong {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -0.06em;
}

.metric span {
  color: var(--color-text-soft);
  font-weight: 800;
  font-size: 0.86rem;
}

.profile-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.photo-wrap {
  width: min(280px, 86%);
  aspect-ratio: 1;
  border-radius: 32px;
  padding: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  box-shadow: 0 28px 60px rgba(255, 110, 0, 0.28);
  transform: rotate(-2deg);
  margin: 8px 0 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-wrap:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 36px 82px rgba(255, 110, 0, 0.36);
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  background: var(--color-primary-soft);
}

.name {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

.short-description {
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 380px;
  margin-bottom: 22px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.badge,
.status-pill {
  border-radius: var(--radius-pill);
  font-weight: 950;
  font-size: 0.82rem;
  white-space: nowrap;
}

.badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-surface-solid);
  padding: 9px 13px;
  box-shadow: 0 10px 25px rgba(255, 120, 0, 0.24);
}

.section {
  margin-top: 100px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border: 1px solid var(--color-border-strong);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 950;
  margin-bottom: 10px;
}

.spark {
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 121, 0, 0.13);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-note {
  color: var(--color-text-muted);
  max-width: 520px;
  font-weight: 650;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  padding: 20px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 109, 0, 0.44);
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-primary-soft), #ffffff);
  border: 1px solid var(--color-border-strong);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 28px rgba(255, 109, 0, 0.13);
}

.product-price {
  text-align: right;
  color: var(--color-primary-strong);
  font-weight: 950;
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.product-price small {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.product-card h3 {
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 20px;
}

.feature-list li {
  color: var(--color-text-muted);
  font-weight: 750;
  display: flex;
  gap: 8px;
  align-items: center;
}

.feature-list li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 950;
}

.product-card .button {
  margin-top: auto;
  width: 100%;
}

.recommended {
  outline: 3px solid rgba(255, 109, 0, 0.18);
}

.recommended-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-surface-solid);
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(255, 109, 0, 0.26);
}

.table-card {
  padding: 0;
}

.table-toolbar {
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, rgba(255, 243, 226, 0.94), rgba(255, 255, 255, 0.78));
}

.table-toolbar h3 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.fake-search {
  min-width: 240px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-soft);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(255, 109, 0, 0.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 820px;
}

th,
td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 149, 0, 0.18);
}

th {
  background: rgba(255, 247, 237, 0.9);
  color: var(--color-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 950;
  position: sticky;
  top: 0px;
  z-index: 5;
}

tbody tr {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

tbody tr:hover {
  background: var(--color-surface-muted);
  transform: scale(1.006);
  box-shadow: 0 16px 34px rgba(255, 109, 0, 0.14);
  position: relative;
  z-index: 2;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-title {
  font-weight: 950;
  color: var(--color-text);
}

.table-muted {
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  padding: 8px 11px;
  border: 1px solid transparent;
}

.status-active {
  background: rgba(31, 157, 85, 0.1);
  color: var(--color-success);
  border-color: rgba(31, 157, 85, 0.2);
}

.status-review {
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-warning);
  border-color: rgba(217, 119, 6, 0.2);
}

.status-paused {
  background: rgba(214, 69, 69, 0.1);
  color: var(--color-danger);
  border-color: rgba(214, 69, 69, 0.2);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-card {
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.detail-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}

.detail-card p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 14px;
}

.timeline li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-marker {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  font-weight: 950;
  border: 1px solid var(--color-border-strong);
}

.timeline strong {
  display: block;
  letter-spacing: -0.02em;
}

.timeline span {
  color: var(--color-text-muted);
  font-weight: 650;
}

.footer {
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(14px);
  width: 100%; 
}

.footer-inner {
  width: min(var(--max-width-page), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--color-text-muted);
  font-weight: 750;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-text-soft);
  font-weight: 900;
}

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

/* Burger menu styles */
.burger-menu {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
  border-radius: 4px;
  overflow: hidden;
}

.menu-dropdown a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.menu-dropdown a:hover {
  background-color: #f1f1f1;
}

.menu-container {
  position: relative;
  display: inline-block;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* blockquote */
blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.6rem 1.8rem 1.6rem 4.25rem;
  background: var(--color-surface);
  border: 0;
  border-radius: 20px;
  font-size: 1.18rem;
  font-style: italic;
  box-shadow: 0 16px 35px rgba(99, 102, 241, 0.12);
  overflow: hidden;
  border-radius: 20px;
}

blockquote::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(0deg, var(--color-primary), var(--color-secondary), var(--color-accent));
}
blockquote p {
  margin: 0 0 16px;
}

/* Project List Styles */
.project-list {
  display: grid;
  gap: 24px;
}

.project-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.project-link {
  display: block;
  color: inherit;
}

.project-content {
  display: flex;
  gap: 24px;
  padding: 24px;
  align-items: center;
}

.project-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.05);
}

.project-content h3 {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.project-date {
  display: flex;
  color: var(--color-text-soft);
  font-size: 0.88rem;
  font-weight: 650;
  align-items: center;
  margin-left: auto; 
}

/* Notification Popup Styles */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.notification-popup {
  background-color: var(--color-surface-solid);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-medium);
  text-align: center;
  position: relative;
  border: 1px solid var(--color-border);
}

.notification-content p {
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.5;
}

.notification-button {
  background: var(--color-primary);
  color: var(--color-surface-solid);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.notification-button:hover {
  background: var(--color-primary-strong);
}

/* Custom styles for the registration form */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-weight: 700;
  color: var(--color-text);
}

.form-input {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-solid);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.2);
}

.form-error {
  color: var(--color-danger);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.messages-container {
  margin-bottom: 20px;
}

.message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-weight: 600;
}

.message.error {
  background-color: rgba(214, 69, 69, 0.1);
  border: 1px solid rgba(214, 69, 69, 0.2);
  color: var(--color-danger);
}

.message.warning {
  background-color: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
  color: var(--color-warning);
}

.message.success {
  background-color: rgba(31, 157, 85, 0.1);
  border: 1px solid rgba(31, 157, 85, 0.2);
  color: var(--color-success);
}

/* persona table */
.question-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.question-summaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.summary-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border-strong);
}

.summary-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.responses-table {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.responses-table .table-wrap {
  padding: 0;
}

.responses-table table {
  min-width: 100%;
}

.responses-table th {
  background: rgba(255, 247, 237, 0.9);
}

.responses-table .photo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  padding: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

.responses-table .photo {
  border-radius: 14px;
}

.role {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.question-form {
  margin-top: 20px;
}

.question-input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-solid);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 16px;
  resize: vertical;
}

.question-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.2);
}

.table-muted {
  display: none;
  margin-top: 8px;
  padding: 8px 0;
}

.expandable-td {
  cursor: pointer;
  position: relative;
  padding-right: 24px;
}

.expand-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: transform 0.2s;
}

.expandable-td.active .expand-icon {
  transform: translateY(-50%) rotate(90deg);
}

.expandable-td.active .table-muted {
  display: block;
}


/*
  Shared "markdown" class:
  - <textarea class="markdown"> styles the raw Markdown editor.
  - <article class="markdown"> styles the rendered Markdown elements.
*/
.markdown {
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text);
}

textarea.markdown {
  display: block;
  padding: clamp(1.15rem, 3vw, 2rem);
  resize: vertical;
  outline: none;
  caret-color: var(--accent);
  font-family:
    "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.75;
  tab-size: 2;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
  height: 65dvh;
  min-height: 300px;
}

textarea.markdown:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 5px var(--accent-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

article.markdown {
  overflow-wrap: anywhere;
  padding: clamp(1.3rem, 4vw, 3.25rem);
}

/* ---------- Rendered Markdown typography ---------- */

.markdown > :first-child {
  margin-top: 0 !important;
}

.markdown > :last-child {
  margin-bottom: 0 !important;
}

article.markdown h1,
article.markdown h2,
article.markdown h3,
article.markdown h4,
article.markdown h5,
article.markdown h6 {
  position: relative;
  margin: 1.85em 0 0.65em;
  color: var(--text);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

article.markdown h1 {
  margin-bottom: 0.8em;
  padding-bottom: 0.5em;
  font-size: clamp(2rem, 6vw, 3.6rem);
  background: linear-gradient(110deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

article.markdown h1::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(9rem, 35%);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  content: "";
}

article.markdown h2 {
  padding-bottom: 0.48em;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.55rem, 3.7vw, 2.2rem);
}

article.markdown h2::before {
  display: inline-block;
  width: 0.34em;
  height: 0.95em;
  margin-right: 0.45em;
  border-radius: 999px;
  background: linear-gradient(var(--accent), var(--accent-2));
  vertical-align: -0.08em;
  content: "";
}

article.markdown h3 {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
}

article.markdown h4 {
  font-size: 1.12rem;
}

article.markdown h5,
article.markdown h6 {
  color: var(--text-soft);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

article.markdown p {
  margin: 1em 0;
  color: color-mix(in srgb, var(--text), var(--text-soft) 18%);
  font-size: 1.03rem;
}

article.markdown strong {
  color: var(--text);
  font-weight: 800;
}

article.markdown em {
  color: color-mix(in srgb, var(--accent), var(--text) 35%);
}

article.markdown a {
  position: relative;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition:
    color 150ms ease,
    background-size 150ms ease;
}

article.markdown a:hover {
  color: var(--accent-2);
  background-size: 100% 2px;
}

article.markdown mark {
  padding: 0.08em 0.28em;
  border-radius: 0.3em;
  background: linear-gradient(
    100deg,
    rgba(255, 214, 10, 0.22),
    rgba(255, 168, 0, 0.42)
  );
  color: inherit;
}

article.markdown del {
  color: var(--text-soft);
  text-decoration-color: #ff4c95;
  text-decoration-thickness: 2px;
}

article.markdown hr {
  height: 1px;
  margin: 2.5rem 0;
  border: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--border) 18%,
      var(--accent) 50%,
      var(--border) 82%,
      transparent
    );
}

/* ---------- Lists ---------- */

article.markdown ul,
article.markdown ol {
  margin: 1.15rem 0;
  padding-left: 1.45rem;
}

article.markdown li {
  margin: 0.42rem 0;
  padding-left: 0.35rem;
}

article.markdown li::marker {
  color: var(--accent);
  font-weight: 800;
}

article.markdown li > ul,
article.markdown li > ol {
  margin: 0.35rem 0;
}

article.markdown .task-list-item {
  list-style: none;
}

article.markdown input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0 0.55rem 0 -1.35rem;
  accent-color: var(--accent);
  vertical-align: -0.12rem;
}

/* ---------- Blockquotes ---------- */

article.markdown blockquote {
  position: relative;
  margin: 1.6rem 0;
  padding: 1.2rem 1.35rem 1.2rem 1.55rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--quote), transparent 72%);
  border-left: 5px solid var(--quote);
  border-radius: 0 18px 18px 0;
  background:
    linear-gradient(
      100deg,
      color-mix(in srgb, var(--quote), transparent 88%),
      transparent
    );
  color: color-mix(in srgb, var(--text), var(--quote) 8%);
}

article.markdown blockquote::before {
  position: absolute;
  top: -0.38em;
  right: 0.28em;
  color: color-mix(in srgb, var(--quote), transparent 82%);
  content: "“";
  font-family: Georgia, serif;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

article.markdown blockquote > :first-child {
  margin-top: 0;
}

article.markdown blockquote > :last-child {
  margin-bottom: 0;
}

/* ---------- Inline code and code blocks ---------- */

article.markdown :not(pre) > code {
  padding: 0.18em 0.42em;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 78%);
  border-radius: 0.42em;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent), var(--text) 25%);
  font-family:
    "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.88em;
  font-weight: 650;
}

article.markdown pre {
  position: relative;
  margin: 1.6rem 0;
  padding: 2.8rem 1.2rem 1.2rem;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: var(--code-bg);
  box-shadow: var(--small-shadow);
  color: var(--code-text);
  line-height: 1.65;
  tab-size: 2;
}

article.markdown pre::before {
  position: absolute;
  top: 1.05rem;
  left: 1.15rem;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 1.05rem 0 #febc2e, 2.1rem 0 #28c840;
  content: "";
}

article.markdown pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family:
    "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.9rem;
}

/* ---------- Tables ---------- */

article.markdown table {
  display: block;
  width: 100%;
  margin: 1.6rem 0;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: var(--small-shadow);
}

article.markdown th,
article.markdown td {
  min-width: 8rem;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

article.markdown th:last-child,
article.markdown td:last-child {
  border-right: 0;
}

article.markdown tr:last-child td {
  border-bottom: 0;
}

article.markdown th {
  background:
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--accent), transparent 90%),
      color-mix(in srgb, var(--accent-2), transparent 93%)
    );
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

article.markdown tbody tr {
  transition: background 140ms ease;
}

article.markdown tbody tr:hover {
  background: var(--accent-soft);
}

/* ---------- Images and embedded media ---------- */

article.markdown img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.8rem auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

article.markdown figure {
  margin: 1.8rem 0;
}

article.markdown figcaption {
  margin-top: 0.6rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Extra HTML commonly used inside Markdown ---------- */

article.markdown kbd {
  padding: 0.18em 0.48em;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 0.42em;
  background: var(--surface-muted);
  box-shadow: 0 1px 0 var(--surface-solid) inset;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8em;
  font-weight: 750;
}

article.markdown details {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-muted);
}

article.markdown summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

article.markdown details[open] summary {
  margin-bottom: 0.7rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  body {
    padding: 0.8rem;
  }

  .app-shell {
    padding: 0.9rem;
    border-radius: 24px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-toggle {
    justify-content: center;
    width: 100%;
  }

  .markdown {
    min-height: 420px;
    border-radius: 18px;
  }

  article.markdown {
    padding: 1.2rem;
  }
}



/* Spinner */
.loading-spinner {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
}

.spinner_ajPY {
  transform-origin: center;
  animation: spinner_AtaB .75s infinite linear;
}

@keyframes spinner_AtaB {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .details-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .section-header,
  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    background: rgba(255, 243, 226, 0.66);
  }

  .metrics,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .fake-search {
    min-width: 0;
    width: 100%;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 4.4rem);
  }

  .mobile-only {
    display: block !important;
  }

  .desktop-only {
    display: none !important;
  }
  
  .project-button {
    position: static;
    transform: none;
    order: 1;
    margin: 10px 0;
    width: 100%;
  }

  .project-content {
    flex-direction: column;
  }
  
  .project-image {
    width: 100%;
    height: 220px;
  }

  .project-date {
    margin-left: 0; 
  }
  
  .question-summaries {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 759px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: block !important;
  }



}


