/* ==========================================================================
   Gradient. — Clean, Minimal, Editorial Studio Stylesheet
   Optimized for desktop, tablet, and mobile devices (fast, accessible, touch-ready).
   Deep text optimization for crystal-clear readability across all phone viewports.
   ========================================================================== */

/* --- Google Fonts & CSS Custom Properties --- */
:root {
  /* Warm Editorial Canvas (Light Mode) */
  --bg-page: #fbfaf6;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f3f1ea;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(251, 250, 246, 0.92);
  --bg-input: #ffffff;

  /* High-Contrast Readable Text Tokens */
  --text-main: #111827;
  --text-muted: #475467;
  --text-subtle: #667085;

  /* Signature Accent */
  --accent-brand: #1b663e;
  --accent-brand-hover: #144f30;
  --accent-brand-light: #eaf5ee;
  --accent-pill: #d9f27e;
  --accent-pill-text: #1a3300;
  --accent-highlight: #22c55e;

  --border-light: rgba(20, 23, 26, 0.08);
  --border-medium: rgba(20, 23, 26, 0.15);
  --border-focus: #1b663e;

  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  --shadow-btn: 0 4px 14px rgba(27, 102, 62, 0.22);

  --radius-pill: 9999px;
  --radius-card: 20px;
  --radius-box: 14px;
  --radius-sm: 10px;

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Newsreader', 'Playfair Display', Georgia, serif;

  --transition-smooth: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-page: #0d1117;
  --bg-surface: #151b23;
  --bg-surface-alt: #1c2430;
  --bg-surface-elevated: #212b38;
  --bg-glass: rgba(13, 17, 23, 0.92);
  --bg-input: #1a222d;

  --text-main: #f0f6fc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --accent-brand: #3fb950;
  --accent-brand-hover: #2ea043;
  --accent-brand-light: rgba(63, 185, 80, 0.14);
  --accent-pill: #4ade80;
  --accent-pill-text: #04260e;
  --accent-highlight: #56d364;

  --border-light: rgba(240, 246, 252, 0.09);
  --border-medium: rgba(240, 246, 252, 0.18);
  --border-focus: #3fb950;

  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-btn: 0 4px 14px rgba(63, 185, 80, 0.25);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS */
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography & Text Optimization --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* --- Floating Pill Navigation Bar --- */
.navbar-wrapper {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 1.25rem;
  pointer-events: none;
}

.navbar {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  pointer-events: auto;
  transition: all var(--transition-smooth);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.nav-pill-menu {
  display: flex;
  align-items: center;
  background: var(--bg-surface-alt);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  gap: 2px;
}

.nav-pill-link {
  padding: 0.4rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.nav-pill-link:hover {
  color: var(--text-main);
}

.nav-pill-link.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface);
  transform: scale(1.05);
}

.btn-pill-cta {
  background: var(--accent-brand);
  color: #ffffff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.86rem;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-btn);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-pill-cta:hover {
  background: var(--accent-brand-hover);
  transform: translateY(-1px);
}

.mobile-only-cta {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 8px;
  border-radius: 10px;
  min-width: 40px;
  min-height: 40px;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mobile-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* --- Hero Section --- */
.hero {
  padding: 120px 0 50px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 1.35rem;
}

.rating-badge {
  background: var(--accent-pill);
  color: var(--accent-pill-text);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-main-title {
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 860px;
  margin: 0 auto 1.25rem auto;
  text-wrap: balance;
}

.hero-main-title .serif-italic {
  display: block;
  font-size: 1.04em;
  margin-top: 0.12em;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.15;
}

.hero-description {
  font-size: clamp(0.96rem, 2.8vw, 1.12rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-action-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary-pill {
  background: var(--accent-brand);
  color: #ffffff;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition-smooth);
  min-height: 44px;
}

.btn-primary-pill:hover {
  background: var(--accent-brand-hover);
  transform: translateY(-2px);
}

.btn-secondary-pill {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
  min-height: 44px;
}

.btn-secondary-pill:hover {
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* --- Hero Highlight Showcase --- */
.hero-highlight-showcase {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.hero-spotlight-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-box);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.hero-spotlight-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.spotlight-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-brand-light);
  color: var(--accent-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.spotlight-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
  display: block;
}

.spotlight-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.spotlight-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.spotlight-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  min-height: 36px;
  transition: gap var(--transition-smooth);
}

.spotlight-link:hover {
  gap: 0.55rem;
}

/* --- Section Dividers & Headers --- */
.section {
  padding: 75px 0;
}

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

.section-tag-pill {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: var(--accent-brand-light);
  color: var(--accent-brand);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.section-main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
  text-wrap: balance;
  letter-spacing: -0.03em;
}

.section-subtitle-clean {
  font-size: clamp(0.92rem, 2.4vw, 1.02rem);
  color: var(--text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* --- Bento Grid / Services Cards --- */
.cards-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-medium);
}

.bento-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-brand-light);
  color: var(--accent-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.bento-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.bento-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.bento-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* --- Showcase Grid (Featured Projects) --- */
.showcase-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.35rem;
}

.showcase-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.85rem;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.showcase-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-medium);
}

.showcase-logo-frame {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-brand-light);
  color: var(--accent-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.showcase-logo-frame svg {
  width: 22px;
  height: 22px;
}

.showcase-tag-small {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
  display: block;
}

.showcase-body h3 {
  font-size: 1.22rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.showcase-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}

.showcase-action-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-brand);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  min-height: 38px;
  transition: gap var(--transition-smooth);
}

.showcase-action-link:hover {
  gap: 0.6rem;
}

/* --- Projects Catalog (projects.html) --- */
.project-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.filter-tab-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-smooth);
  min-height: 40px;
  white-space: nowrap;
}

.filter-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-medium);
}

.filter-tab-btn.active {
  background: var(--text-main);
  color: var(--bg-surface);
  border-color: var(--text-main);
}

[data-theme="dark"] .filter-tab-btn.active {
  background: var(--text-main);
  color: #0d1117;
}

.filter-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
}

.filter-tab-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.projects-section-group {
  margin-bottom: 3.5rem;
}

.projects-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.projects-group-heading h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}

.projects-group-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.projects-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.35rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 1.85rem;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-medium);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-brand-light);
  color: var(--accent-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon-box svg {
  width: 22px;
  height: 22px;
}

.project-category-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.status-pill-indicator {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--accent-brand-light);
  color: var(--accent-brand);
}

.stat-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0.6rem 0 1.15rem 0;
  text-wrap: pretty;
}

.project-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.feature-pill-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-direct-download {
  background: var(--accent-brand);
  color: #ffffff;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all var(--transition-smooth);
  min-height: 40px;
}

.btn-direct-download svg {
  width: 15px;
  height: 15px;
}

.btn-direct-download:hover {
  background: var(--accent-brand-hover);
  transform: translateY(-1px);
}

.btn-secondary-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color var(--transition-smooth);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.btn-secondary-link:hover {
  color: var(--text-main);
}

/* --- FAQ Section --- */
.faq-search-input {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 2.25rem auto;
  display: block;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 16px;
  box-shadow: var(--shadow-subtle);
  outline: none;
  transition: all var(--transition-smooth);
}

.faq-search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-brand-light);
}

.faq-wrap-clean {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-box);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-trigger-btn {
  width: 100%;
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-main);
  gap: 1rem;
  min-height: 48px;
  line-height: 1.45;
  text-wrap: balance;
}

.faq-icon-arrow {
  color: var(--text-subtle);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.faq-card-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--accent-brand);
}

.faq-content-box {
  display: none;
  padding: 0 1.35rem 1.25rem 1.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.faq-card-item.active .faq-content-box {
  display: block;
}

/* --- Contact & Inquiry Section --- */
.contact-container-clean {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group-clean {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  text-align: left;
}

.form-group-clean label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.input-clean {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  transition: all var(--transition-smooth);
  min-height: 44px;
}

.input-clean:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-brand-light);
}

textarea.input-clean {
  min-height: 110px;
  resize: vertical;
}

/* --- Founder & About Page Styles --- */
.founder-profile-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.75rem 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.founder-monogram-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-brand-light);
  color: var(--accent-brand);
  font-weight: 800;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  letter-spacing: -0.03em;
}

.founder-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-main);
  max-width: 580px;
  margin: 0 auto 2rem auto;
  text-wrap: pretty;
}

/* --- Footer Styles --- */
.footer-clean {
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
  padding: 55px 0 30px 0;
}

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

.footer-col h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: inline-block;
  min-height: 24px;
  transition: color var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--accent-brand);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Modal Dialog --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 2.25rem 1.75rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-float);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.22s ease;
}

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

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-muted);
  padding: 8px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* --- Toast Container --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated, var(--bg-surface));
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: auto;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success svg {
  color: var(--accent-brand);
}

.toast.info svg {
  color: #3b82f6;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Engine (Optimized Text & Touch)
   ========================================================================== */

@media (max-width: 900px) {
  .nav-pill-menu {
    position: fixed;
    top: 68px;
    left: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.22s ease;
    z-index: 999;
    gap: 4px;
  }

  .nav-pill-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-pill-link {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

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

  .btn-pill-cta {
    display: none;
  }

  .mobile-only-cta {
    display: flex;
    justify-content: center;
    background: var(--accent-brand);
    color: #ffffff;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 700;
  }

  .mobile-only-cta.active {
    color: #ffffff;
  }

  .hero-highlight-showcase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .navbar-wrapper {
    top: 10px;
    padding: 0 0.75rem;
  }

  .navbar {
    padding: 0.4rem 0.85rem;
  }

  .hero {
    padding: 92px 0 32px 0;
  }

  .hero-social-proof {
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
  }

  .hero-main-title {
    font-size: clamp(2rem, 7.8vw, 3.1rem);
    line-height: 1.14;
    letter-spacing: -0.035em;
  }

  .hero-main-title .serif-italic {
    font-size: 1.03em;
    line-height: 1.18;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.62;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
    max-width: 42ch;
  }

  .hero-action-group {
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2.25rem;
  }

  .hero-action-group .btn-primary-pill,
  .hero-action-group .btn-secondary-pill {
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .section-header-clean {
    margin-bottom: 2rem;
  }

  .section-main-title {
    font-size: clamp(1.6rem, 5.5vw, 1.95rem);
    line-height: 1.22;
  }

  .section-subtitle-clean {
    font-size: 0.92rem;
    line-height: 1.58;
    max-width: 44ch;
    margin: 0 auto;
  }

  /* Horizontal swipeable filter tabs on phone */
  .project-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 0.25rem 8px 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .project-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab-btn {
    flex-shrink: 0;
    font-size: 0.84rem;
    padding: 0.5rem 1rem;
  }

  .cards-bento-grid,
  .showcase-grid-clean,
  .projects-catalog-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-card,
  .showcase-tile,
  .project-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-box);
  }

  .bento-card h3,
  .showcase-body h3,
  .project-card-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .bento-card p,
  .showcase-body p,
  .project-card-desc {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .project-card-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .btn-direct-download {
    width: 100%;
  }

  .btn-secondary-link {
    width: 100%;
    justify-content: center;
  }

  .form-row-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-container-clean {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-box);
  }

  .founder-profile-card {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-box);
  }

  .founder-quote {
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 0 0.25rem;
  }

  .faq-trigger-btn {
    padding: 1rem 1.15rem;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .faq-content-box {
    padding: 0 1.15rem 1.15rem 1.15rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }

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

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .toast-container {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    align-items: center;
  }

  .toast {
    width: 100%;
    justify-content: center;
    font-size: 0.84rem;
    padding: 0.6rem 1rem;
  }
}
