@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-primary: #F4F3EF;
  --bg-secondary: #FFFFFF;
  --bg-dark: #0D0D0D;
  --text-main: #0D0D0D;
  --text-muted: #555555;
  --text-light: #F4F3EF;

  --accent-yellow: #E2FF00;
  --accent-pink: #FF3366;
  --accent-blue: #2563EB;
  --accent-green: #00E676;
  --accent-purple: #8B5CF6;
  --accent-orange: #FF6B00;

  --border-thick: 3px solid #0D0D0D;
  --border-thin: 2px solid #0D0D0D;
  --border-color: #0D0D0D;
  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 9999px;

  --shadow-sm: 3px 3px 0px #0D0D0D;
  --shadow-md: 5px 5px 0px #0D0D0D;
  --shadow-lg: 8px 8px 0px #0D0D0D;
  --shadow-hover: 7px 7px 0px #0D0D0D;
  --shadow-active: 1px 1px 0px #0D0D0D;
  --shadow-dual-yellow: 5px 5px 0px #E2FF00, 10px 10px 0px #0D0D0D;
  --shadow-dual-pink: 5px 5px 0px #FF3366, 10px 10px 0px #0D0D0D;

  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --container-max: 1240px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

body.xray-mode * {
  outline: 1px dashed #FF3366 !important;
  background-color: rgba(255, 51, 102, 0.03) !important;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-left: var(--border-thin);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-dark);
  border: 1px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

.custom-cursor-dot,
.custom-cursor-follower {
  display: none;
}

@media (min-width: 1024px) {
  .custom-cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-pink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, background-color 0.15s;
  }

  .custom-cursor-follower {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border: 2px solid var(--bg-dark);
    background-color: transparent;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
  }

  body.cursor-hover .custom-cursor-dot {
    width: 14px;
    height: 14px;
    background-color: var(--accent-yellow);
  }

  body.cursor-hover .custom-cursor-follower {
    width: 44px;
    height: 44px;
    border-color: var(--accent-pink);
    background-color: rgba(255, 51, 102, 0.1);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.75rem;
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

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

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-active);
}

.btn-primary {
  background-color: var(--accent-yellow);
  color: var(--bg-dark);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--bg-dark);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
}

.btn-dark:hover {
  background-color: #1a1a1a;
  color: var(--accent-yellow);
}

.btn-pink {
  background-color: var(--accent-pink);
  color: var(--bg-secondary);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.btn-sm:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  background-color: var(--accent-yellow);
  color: var(--bg-dark);
  box-shadow: var(--shadow-sm);
}

.badge-pink {
  background-color: var(--accent-pink);
  color: #FFF;
}

.badge-blue {
  background-color: var(--accent-blue);
  color: #FFF;
}

.badge-outline {
  background-color: transparent;
  border: var(--border-thin);
}

.header {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  pointer-events: none;
}

.nav-wrapper {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(244, 243, 239, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.25rem;
  box-shadow: var(--shadow-md);
  max-width: 1100px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo .logo-box {
  width: 32px;
  height: 32px;
  background-color: var(--accent-yellow);
  border: var(--border-thin);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 2px 2px 0px #0D0D0D;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.15s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-pink);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: var(--accent-yellow);
  border: var(--border-thin);
  border-radius: 6px;
  padding: 6px;
  box-shadow: 2px 2px 0px #0D0D0D;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--bg-dark);
  transition: all 0.2s ease;
}

@media (min-width: 868px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
  }

  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
  border-bottom: var(--border-thick);
}

.mobile-nav-overlay.active {
  transform: translateY(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--bg-dark);
}

.hero-title .highlight-yellow {
  background-color: var(--accent-yellow);
  padding: 0 0.4rem;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  transform: rotate(-1deg);
}

.hero-subtext {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 580px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-card-visual {
  background-color: var(--bg-secondary);
  border: var(--border-thick);
  box-shadow: var(--shadow-dual-pink);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.hero-card-visual .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-thin);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-dark);
}

.window-dot.red {
  background: #FF5F56;
}

.window-dot.yellow {
  background: #FFBD2E;
}

.window-dot.green {
  background: #27C93F;
}

.hero-visual-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.studio-pill-tag {
  align-self: flex-start;
}

.visual-quote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.marquee-wrapper {
  background-color: var(--accent-yellow);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.marquee-content {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 22s linear infinite;
}

.marquee-item {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.marquee-item .star {
  color: var(--accent-pink);
  font-size: 1.4rem;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

.trust-section {
  padding: 5rem 0;
}

.trust-box {
  background-color: var(--bg-secondary);
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .trust-box {
    padding: 3.5rem 3rem;
  }
}

.trust-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.trust-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background-color: var(--bg-primary);
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  background-color: var(--accent-yellow);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  background-color: var(--bg-secondary);
  box-shadow: 2px 2px 0px #0D0D0D;
  transition: all 0.15s;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--accent-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #0D0D0D;
}

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

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background-color: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
}

.project-thumbnail {
  width: 100%;
  height: 240px;
  border-bottom: var(--border-thick);
  background-color: #0D0D0D;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

.project-thumbnail .thumbnail-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(13, 13, 13, 0.88);
  color: var(--accent-yellow);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.mockup-canvas {
  width: 88%;
  height: 85%;
  background-color: var(--bg-secondary);
  border: var(--border-thin);
  border-radius: 6px;
  box-shadow: 3px 3px 0px #0D0D0D;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.5rem;
}

.mockup-header {
  display: flex;
  gap: 4px;
}

.mockup-body {
  flex: 1;
  background-color: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
}

.mockup-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.project-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
}

.project-card-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
  width: 100%;
}

.project-card-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.6rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  margin: 0;
}

@media (max-width: 480px) {
  .project-card-actions {
    flex-direction: column;
  }
  .project-card-actions .btn {
    width: 100%;
  }
}

.services-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background-color: var(--bg-primary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, background-color 0.2s;
}

.service-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-md);
  background-color: #FFF;
}

.service-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-pink);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.terminal-widget {
  background-color: var(--bg-dark);
  color: #00FF66;
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dual-yellow);
  overflow: hidden;
  font-family: var(--font-code);
}

.terminal-header {
  background-color: #1A1A1A;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-thin);
}

.terminal-title {
  color: #FFF;
  font-size: 0.85rem;
  font-weight: 600;
}

.terminal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
}

.terminal-line {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.prompt {
  color: var(--accent-pink);
  user-select: none;
}

.stack-group {
  margin-top: 0.5rem;
}

.stack-label {
  color: var(--accent-yellow);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #FFF;
}

.stack-tag {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.estimator-section {
  padding: 5rem 0;
}

.receipt-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .receipt-container {
    padding: 3rem;
  }
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed var(--bg-dark);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.receipt-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.estimator-mode-switch {
  display: flex;
  gap: 0.5rem;
  background-color: var(--bg-primary);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

.mode-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  color: var(--text-muted);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.mode-tab-btn:hover {
  color: var(--bg-dark);
}

.mode-tab-btn.active {
  background-color: var(--bg-dark);
  color: var(--accent-yellow);
  box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.ai-input-card {
  background-color: var(--bg-primary);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.ai-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ai-input-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.ai-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  background-color: #FFF;
  color: var(--bg-dark);
  resize: vertical;
  min-height: 95px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ai-textarea:focus {
  border-color: var(--accent-pink);
  box-shadow: 3px 3px 0px #0D0D0D;
}

.ai-quick-chips-wrapper {
  margin-top: 1rem;
}

.chip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.chip-label {
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.chip-hint {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: #71717A;
}

.ai-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.quick-chip {
  background-color: #FFF;
  border: 1.5px solid var(--bg-dark);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.quick-chip:hover {
  background-color: var(--accent-yellow);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px #0D0D0D;
}

.btn-cta-block {
  width: 100% !important;
  justify-content: center !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.3 !important;
  word-break: normal !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .btn {
    white-space: normal;
    text-align: center;
  }

  .btn-cta-block {
    font-size: 0.88rem !important;
    padding: 0.85rem 0.65rem !important;
    letter-spacing: 0.01em !important;
    max-width: 100% !important;
  }

  .ai-quick-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.45rem !important;
    padding: 0.2rem 0.1rem 0.65rem 0.1rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .ai-quick-chips::-webkit-scrollbar {
    display: none !important;
  }

  .quick-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.4rem 0.85rem !important;
    font-size: 0.78rem !important;
  }
}

.ai-result-card {
  background-color: #FFF;
  border: 2px solid var(--bg-dark);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 4px 4px 0px var(--accent-pink);
  animation: fadeIn 0.3s ease-out;
  box-sizing: border-box;
}

.ai-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ai-status-tag {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 0.8rem;
  background-color: #FEF08A;
  border: 1px solid #854D0E;
  color: #854D0E;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.ai-result-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--bg-dark);
}

.ai-result-summary {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 1.25rem;
}

.ai-features-box {
  background-color: var(--bg-primary);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.ai-features-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--bg-dark);
}

.ai-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ai-features-list li {
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
  color: #262626;
}

.ai-features-list li::before {
  content: '■';
  font-size: 0.6rem;
  color: var(--accent-pink);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.ai-advice-box {
  background-color: #FAF8F5;
  border: 1.5px solid var(--bg-dark);
  border-left: 5px solid var(--accent-yellow);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.advice-header {
  margin-bottom: 0.4rem;
}

.advice-tag {
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--bg-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.advice-content {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333;
}

.ai-budget-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px dashed #DDD;
  padding-top: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ai-loading-pulse {
  display: inline-block;
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background-color: var(--bg-primary);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s;
}

.option-row:hover {
  background-color: #E6E5E0;
}

.option-info {
  display: flex;
  flex-direction: column;
}

.option-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.option-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.option-price {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 0.95rem;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: var(--border-thin);
  background-color: #FFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  transition: all 0.15s;
}

.option-row.selected .checkbox-custom {
  background-color: var(--accent-yellow);
  box-shadow: 2px 2px 0px #0D0D0D;
}

.option-row.selected .checkbox-custom::after {
  content: '✓';
  font-weight: 900;
  font-size: 1rem;
  color: var(--bg-dark);
}

.receipt-total-box {
  border-top: 2px dashed var(--bg-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .receipt-total-box {
    flex-direction: row;
  }
}

.total-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.total-amount {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-pink);
}

.process-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.process-card {
  background-color: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: transform 0.2s;
}

.process-card:hover {
  transform: translateY(-5px);
  background-color: var(--accent-yellow);
}

.process-step {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--bg-dark);
  line-height: 1;
}

.process-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.process-arrow {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--bg-dark);
  display: block;
}

@media (min-width: 1024px) {
  .process-arrow {
    display: none;
  }
}

.about-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}

.about-duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .about-duo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.person-card {
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.person-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
}

.person-card.haidar-card {
  background-color: #FAFAFA;
  background-image: radial-gradient(#0D0D0D 1px, transparent 1px);
  background-size: 16px 16px;
}

.person-card.fatih-card {
  background-color: #FAFAFA;
  background-image: linear-gradient(#0D0D0D 0.5px, transparent 0.5px), linear-gradient(90deg, #0D0D0D 0.5px, transparent 0.5px);
  background-size: 20px 20px;
}

.person-avatar {
  width: 80px;
  height: 80px;
  border: var(--border-thick);
  border-radius: 50%;
  background-color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  box-shadow: 3px 3px 0px #0D0D0D;
}

.person-card.fatih-card .person-avatar {
  background-color: var(--accent-pink);
  color: #FFF;
}

.person-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.person-role {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-pink);
}

.person-bio {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cta-section {
  padding: 6rem 0;
  background-color: var(--accent-yellow);
  border-bottom: var(--border-thick);
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.footer {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  padding: 4rem 0 2rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  color: #A3A3A3;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  color: #D4D4D4;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.footer-link:hover {
  color: var(--accent-pink);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #888;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.debug-toggle-btn {
  font-family: var(--font-code);
  font-size: 0.75rem;
  background-color: #222;
  color: var(--accent-yellow);
  padding: 0.3rem 0.6rem;
  border: 1px solid #444;
  border-radius: 4px;
}

.debug-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== EASTER EGG: REVERSE RECORDER ===== */
.rev-card {
  max-width: 560px;
}

.rev-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.rev-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.rev-screen {
  background: var(--bg-dark);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1.25rem;
}

.rev-wave {
  display: block;
  width: 100%;
  height: 120px;
}

.rev-status {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--accent-yellow);
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.rev-status.is-error {
  color: var(--accent-pink);
}

.rev-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.rev-btn {
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 1rem;
  background: var(--bg-secondary);
  color: var(--text-main);
  border: var(--border-thin);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.rev-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.rev-btn-rec { background: var(--accent-pink); color: #FFF; }
.rev-btn-rec.is-recording { animation: revPulse 1s ease-in-out infinite; }
.rev-btn-rev { background: var(--accent-yellow); }
.rev-btn-ghost { background: transparent; box-shadow: none; }

@keyframes revPulse {
  50% { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .rev-btn-rec.is-recording { animation: none; }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background-color: var(--accent-pink);
  color: #FFF;
  border: var(--border-thin);
  border-radius: 50%;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #0D0D0D;
}

.ai-chat-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  background-color: var(--accent-yellow);
  color: var(--bg-dark);
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.35rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ai-chat-trigger:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
  background-color: var(--accent-pink);
  color: #FFF;
}

.ai-chat-trigger .ai-pulse {
  width: 10px;
  height: 10px;
  background-color: var(--accent-green);
  border-radius: 50%;
  border: 1.5px solid #0D0D0D;
}

.ai-chat-drawer {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 1600;
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  height: 480px;
  background-color: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-drawer.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  background-color: var(--bg-dark);
  color: #FFF;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-thick);
}

.ai-chat-header-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-chat-close {
  background: var(--accent-pink);
  color: #FFF;
  border: var(--border-thin);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
}

.ai-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--bg-primary);
}

.chat-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 2px 2px 0px #0D0D0D;
  white-space: pre-line;
}

.chat-bubble.bot {
  background-color: var(--bg-secondary);
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chat-bubble.user {
  background-color: var(--accent-yellow);
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.ai-chat-input-area {
  padding: 0.75rem;
  background-color: var(--bg-secondary);
  border-top: var(--border-thick);
  display: flex;
  gap: 0.5rem;
}

.ai-chat-input {
  flex: 1;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
}

.ai-chat-send {
  background-color: var(--accent-yellow);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  font-weight: 800;
  box-shadow: 2px 2px 0px #0D0D0D;
  cursor: pointer;
}

.ai-chat-send:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #0D0D0D;
}

.btn-client-portal {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.95rem;
  font-family: var(--font-code);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-client-portal:hover {
  background: var(--accent-yellow);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.btn-client-portal:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-active);
}

.portal-key-icon {
  font-size: 0.95rem;
  color: var(--accent-pink);
}

.mobile-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 280px;
  margin-top: 0.5rem;
}

.mobile-cta-group .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-portal-cta {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-portal-cta:hover {
  background-color: var(--accent-yellow);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.client-portal-card {
  background-color: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  box-shadow: 8px 8px 0px #0D0D0D;
  width: 100%;
  max-width: 500px;
  padding: 2.25rem 2rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .client-portal-card {
  transform: scale(1);
}

.portal-badge {
  background: var(--bg-dark);
  color: var(--accent-yellow);
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.portal-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.portal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.portal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.portal-input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  pointer-events: none;
}

.portal-input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  font-family: var(--font-code);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: var(--border-thick);
  border-radius: var(--radius-sm);
  background: #FAFAF9;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.portal-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--bg-dark);
  box-shadow: 4px 4px 0px var(--accent-yellow);
}

.portal-input::placeholder {
  font-size: 0.85rem;
  letter-spacing: normal;
  color: #A1A1AA;
  text-transform: none;
  font-weight: 500;
}

.portal-error {
  background: #FEE2E2;
  border: 2px solid #EF4444;
  color: #991B1B;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.portal-success {
  background: #DCFCE7;
  border: 2px solid #10B981;
  color: #14532D;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.portal-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem;
  box-shadow: 4px 4px 0px #0D0D0D;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-card-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #D4D4D8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-hint {
  font-size: 0.72rem;
  color: #71717A;
  line-height: 1.4;
  max-width: 320px;
}

.portal-admin-link {
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717A;
  text-decoration: underline;
}

.portal-admin-link:hover {
  color: var(--text-main);
}

/* ==========================================================================
   CASE STUDY & PROJECT SHOWCASE (README STYLE)
   ========================================================================== */
.cs-page {
  padding-top: 130px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.cs-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cs-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-secondary);
  border: var(--border-medium);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.cs-back-nav:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
  background: var(--accent-yellow);
}

.cs-header {
  margin-bottom: 2.5rem;
}

.cs-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cs-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cs-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 850px;
}

.cs-meta-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.cs-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cs-meta-label {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cs-meta-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

/* GitHub-Style README Box */
.cs-readme-card {
  background: var(--bg-secondary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.cs-readme-header {
  background: #0D0D0D;
  color: #FFF;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-thick);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cs-readme-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-code);
  font-size: 0.88rem;
  font-weight: 700;
}

.cs-readme-badge {
  background: #27272A;
  color: var(--accent-yellow);
  font-family: var(--font-code);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #3F3F46;
}

.cs-readme-body {
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

/* Quick Nav / TOC */
.cs-toc-box {
  background: var(--bg-primary);
  border: var(--border-medium);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.cs-toc-title {
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cs-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 1rem;
}

.cs-toc-list a {
  font-family: var(--font-code);
  font-size: 0.84rem;
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.cs-toc-list a:hover {
  color: var(--accent-pink);
}

/* Content Headings */
.cs-section {
  margin-bottom: 3.5rem;
}

.cs-section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E4E4E7;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cs-section p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

/* Feature Mockup Card */
.cs-feature-card {
  background: var(--bg-primary);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 2.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cs-feature-topbar {
  background: #18181B;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-medium);
}

.cs-feature-dots {
  display: flex;
  gap: 6px;
}

.cs-feature-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.3);
}

.cs-feature-dot.red { background: #EF4444; }
.cs-feature-dot.yellow { background: #EAB308; }
.cs-feature-dot.green { background: #10B981; }

.cs-feature-url {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: #A1A1AA;
}

.cs-feature-img-wrap {
  width: 100%;
  background: #000;
  overflow: hidden;
  border-bottom: var(--border-medium);
}

.cs-feature-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-feature-info {
  padding: 1.5rem;
}

.cs-feature-info h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--text-main);
}

.cs-feature-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.cs-feature-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Callout Box */
.cs-callout {
  background: #FEF3C7;
  border-left: 5px solid #F59E0B;
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #78350F;
}

.cs-callout.blue {
  background: #DBEAFE;
  border-left-color: #3B82F6;
  color: #1E3A8A;
}

.cs-callout.green {
  background: #DCFCE7;
  border-left-color: #10B981;
  color: #14532D;
}

/* Tech Badges Grid */
.cs-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.cs-tech-item {
  background: var(--bg-primary);
  border: var(--border-medium);
  border-radius: 6px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.cs-tech-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.cs-tech-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 !important;
}

/* Step Flow */
.cs-step-flow {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.cs-step-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-primary);
  border: var(--border-medium);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.cs-step-num {
  font-family: var(--font-code);
  font-size: 1.2rem;
  font-weight: 900;
  background: var(--accent-yellow);
  color: #0D0D0D;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: var(--border-thin);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-step-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.cs-step-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 !important;
}

/* Bottom CTA */
.cs-cta-banner {
  background: var(--accent-yellow);
  border: var(--border-thick);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 4rem;
}

.cs-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #0D0D0D;
}

.cs-cta-sub {
  font-size: 1.05rem;
  color: #27272A;
  max-width: 600px;
  line-height: 1.6;
}

.cs-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}