/* ==========================================================================
   Design System & CSS Custom Properties (OKLCH Tokens)
   ========================================================================== */

:root {
  /* Fonts */
  /* --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; */
  /* --font-sans: 'Instrument Sans', system-ui, -apple-system, sans-serif; */
  --font-sans: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;

  /* Color Semantics (Base Seed: #008cff -> oklch(62% 0.23 250)) */
  --color-primary: oklch(62% 0.23 250);
  --color-primary-hover: oklch(55% 0.24 250);
  --color-primary-light: oklch(90% 0.08 250);
  --color-primary-dark: oklch(35% 0.18 250);

  /* Light Theme Defaults */
  --bg-body: oklch(99% 0.003 250);
  --bg-surface: oklch(100% 0 0);
  --bg-surface-alt: oklch(96% 0.005 250);
  --border-color: oklch(88% 0.01 250);
  --border-color-hover: oklch(75% 0.02 250);

  /* --ink-primary: oklch(15% 0.015 250); */
  --ink-primary: oklch(20.813% 0.02558 246.822);

  --ink-secondary: oklch(42% 0.015 250);
  --ink-tertiary: oklch(55% 0.01 250);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);

  --focus-ring: 0 0 0 3px oklch(62% 0.23 250 / 0.4);

  /* Layout & Spacing */
  --container-max-width: 1140px;
  --header-height: 72px;

  /* Animation */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-body: oklch(12% 0.015 250);
  --bg-surface: oklch(15% 0.015 250);
  --bg-surface-alt: oklch(18% 0.018 250);
  --border-color: oklch(25% 0.02 250);
  --border-color-hover: oklch(35% 0.03 250);

  --ink-primary: oklch(95% 0.005 250);
  --ink-secondary: oklch(78% 0.01 250);
  --ink-tertiary: oklch(62% 0.01 250);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);

  --focus-ring: 0 0 0 3px oklch(62% 0.23 250 / 0.6);
}

/* System Preference Fallback */
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg-body: oklch(12% 0.015 250);
    --bg-surface: oklch(15% 0.015 250);
    --bg-surface-alt: oklch(18% 0.018 250);
    --border-color: oklch(25% 0.02 250);
    --border-color-hover: oklch(35% 0.03 250);

    --ink-primary: oklch(95% 0.005 250);
    --ink-secondary: oklch(78% 0.01 250);
    --ink-tertiary: oklch(62% 0.01 250);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);

    --focus-ring: 0 0 0 3px oklch(62% 0.23 250 / 0.6);
  }
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--ink-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  color: var(--ink-primary);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  color: var(--ink-secondary);
  max-width: 72ch;
  /* Cap body line length for optimal readability */
  text-wrap: pretty;
}

/* ==========================================================================
   Interactive Elements / Buttons
   ========================================================================== */

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  /* Safe rounding, no over-round */
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: oklch(100% 0 0);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: oklch(100% 0 0);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--ink-primary);
}

.btn-secondary:hover {
  border-color: var(--border-color-hover);
  background-color: var(--bg-surface-alt);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 16px;
}

.btn-tertiary:hover {
  color: var(--color-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Focus outline for accessibility */
*:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(12, 12, 12, 0.8);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.logo:hover {
  color: var(--ink-primary);
}

.logo-symbol {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo span {
  color: var(--color-primary);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  position: relative;
}

.nav-link:hover {
  color: var(--ink-primary);
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--ink-secondary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--border-color-hover);
  color: var(--ink-primary);
}

/* Hide inactive icons based on theme */
.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .sun-icon {
    display: none;
  }

  html[data-theme="system"] .moon-icon {
    display: block;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  max-width: 992px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  /* Premium typography ceiling */
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-secondary);
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ==========================================================================
   Playground Section (Widget)
   ========================================================================== */

.playground-section {
  padding: 100px 0;
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

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

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--ink-secondary);
  margin: 0 auto;
}

/* The Playground Card Widget */
.playground-widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  /* High quality, not over-rounded */
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.playground-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface-alt);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.playground-tab {
  flex: 1;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  text-align: center;
}

.playground-tab:hover {
  color: var(--ink-primary);
  background-color: var(--bg-surface);
}

.playground-tab.active {
  color: var(--ink-primary);
  background-color: var(--bg-surface);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--color-primary);
}

.playground-panels {
  padding: 40px;
}

.playground-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.playground-panel.hidden {
  display: none !important;
}

.panel-header h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.panel-header p {
  font-size: 14px;
  color: var(--ink-tertiary);
}

/* Formulários Playground */
.playground-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: 0.02em;
}

/* Bad Form styling: uppercase only, aggressive styling */
#panel-bad label {
  font-weight: 800;
  color: var(--ink-primary);
}

.input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.playground-form input,
.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--ink-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.playground-form input::placeholder {
  color: var(--ink-tertiary);
  opacity: 0.8;
}

.playground-form input:focus,
.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

/* Bad UX Specific input styling (ugly/confusing state) */
#panel-bad input {
  text-transform: uppercase;
  border: 2px solid var(--ink-primary);
  border-radius: 0px;
  /* Bad UX: no rounding at all */
}

#panel-bad input::placeholder {
  color: var(--ink-secondary);
}

/* Password Toggle and Strength Indicators */
.btn-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  padding: 6px;
}

.help-text {
  font-size: 12px;
  color: var(--ink-tertiary);
}

.error-msg {
  font-size: 13px;
  font-weight: 500;
}

.error-msg.invalid {
  color: oklch(55% 0.2 20);
  /* Red error color */
}

.error-msg.valid {
  color: oklch(65% 0.18 140);
  /* Green success */
}

.password-strength {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.strength-bar {
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-fast);
}

.strength-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: transparent;
  transition: width var(--transition-normal), background-color var(--transition-fast);
}

.strength-bar.weak::before {
  width: 33%;
  background-color: oklch(55% 0.2 20);
}

.strength-bar.medium::before {
  width: 66%;
  background-color: oklch(75% 0.16 80);
}

.strength-bar.strong::before {
  width: 100%;
  background-color: oklch(65% 0.18 140);
}

.strength-text {
  font-size: 12px;
  color: var(--ink-tertiary);
}

/* Friction Indicator */
.friction-counter {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  font-size: 14px;
}

.friction-counter span {
  background-color: var(--bg-surface-alt);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.friction-counter .counter-val {
  color: var(--color-primary);
  font-weight: 700;
}

#panel-bad .friction-counter .counter-val {
  color: oklch(55% 0.2 20);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-section {
  padding: 120px 0;
}

/* Custom Grid: different card dimensions to avoid identical repetitive boxes */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

/* Varying the second card styles slightly to break identical layout template */
.services-grid .service-card:nth-child(2) {
  border-color: var(--color-primary);
  background-color: var(--bg-surface-alt);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   Corporate Clients Section
   ========================================================================== */

.clients-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

[data-theme="dark"] .section-badge {
  background-color: oklch(35% 0.18 250 / 0.3);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.client-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg);
}

.client-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface-alt);
}

.client-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.client-card:hover .client-card-image img {
  transform: scale(1.03);
}

.client-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.client-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.client-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
  background-color: var(--bg-surface-alt);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.client-metric {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.client-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.client-case-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.client-case-desc {
  font-size: 14px;
  color: var(--ink-tertiary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.client-stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: auto;
  transition: border-color var(--transition-normal);
}

.client-stats-list li {
  font-size: 13px;
  color: var(--ink-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.client-stats-list li strong {
  color: var(--color-primary);
  font-weight: 700;
}

.btn-case-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 20px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-case-link:hover {
  color: var(--color-cta-hover);
  transform: translateX(4px);
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */

.philosophy-section {
  padding: 120px 0;
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.philosophy-container {
  max-width: 800px;
}

.philosophy-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.philosophy-text {
  font-size: 18px;
  line-height: 1.7;
}

.philosophy-quote {
  border-left: 2px solid var(--color-primary);
  /* Only 2px clean border */
  padding-left: 24px;
  margin: 16px 0;
}

.philosophy-quote p {
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.philosophy-quote cite {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-tertiary);
  display: block;
}

/* ==========================================================================
   Contact / Lead Capture
   ========================================================================== */

.contact-section {
  padding: 120px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.contact-container img {
  max-width: 440px;
  width: 100%;
  height: auto;
  justify-self: end;
  display: block;
}

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

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 24px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-details p {
  margin: 0;
  font-size: 15px;
}

.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.contact-card textarea {
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  color: oklch(65% 0.18 140);
}

.form-status.error {
  color: oklch(55% 0.2 20);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 40px 0;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-brand {
  max-width: 450px;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink-tertiary);
  transition: border-color var(--transition-normal);
}

/* ==========================================================================
   Authority / About Section
   ========================================================================== */

.about-section {
  padding: 120px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.profile-card-visual {
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 320px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.profile-card-visual:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 12px oklch(62% 0.23 250 / 0.3);
}

.profile-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.badge {
  padding: 2px 0;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--ink-secondary);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.badge-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: oklch(100% 0 0);
}


.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-bio {
  font-size: 16px;
  line-height: 1.7;
}

.about-stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.about-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stats strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
}

.about-stats span {
  font-size: 13px;
  color: var(--ink-tertiary);
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   YouTube Lecture / Authority Section
   ========================================================================== */

.talk-section {
  padding: 120px 0;
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.talk-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.0fr;
  gap: 64px;
  align-items: center;
}

.talk-text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.talk-tag {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .talk-tag {
  background-color: oklch(30% 0.15 250);
  color: oklch(90% 0.05 250);
}

.talk-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.talk-video-wrapper {
  width: 100%;
}

.video-card-mockup {
  display: block;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.video-card-mockup:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.video-thumbnail-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  /* background: linear-gradient(135deg, oklch(62% 0.23 250 / 0.8), oklch(35% 0.18 250 / 0.9)); */
  background: url(./img/bg-thumb.jpg) no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.video-play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: oklch(100% 0 0);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-normal), background-color var(--transition-fast), color var(--transition-fast);
}

.video-card-mockup:hover .video-play-btn {
  transform: scale(1.1);
  background-color: var(--color-primary);
  color: oklch(100% 0 0);
}

.video-play-btn svg {
  margin-left: 1px;
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.75);
  color: oklch(100% 0 0);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.video-meta {
  padding: 24px;
  background-color: var(--bg-surface);
}

.video-channel {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.video-meta h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */

@media (max-width: 992px) {

  .contact-container,
  .about-grid,
  .talk-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-container img {
    justify-self: center;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* simple stack menu fallback or simple logo-only bar */
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 64px;
  }

  .playground-panels {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
    gap: 8px;
  }

  .logo-symbol {
    height: 22px;
  }
}

/* Prefers Reduced Motion settings */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}