/* ============================================================
   Edu "The Coder" — Web Designer & Developer (static clone)
   ============================================================ */

/* --------- Reset --------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }

/* --------- Tokens --------- */
:root {
  color-scheme: dark;
  --background: #04070f;
  --foreground: #dde7e7;
  --card: #080d16;
  --card-foreground: #dde7e7;
  --secondary: #151b24;
  --muted: #151b24;
  --muted-foreground: #829394;
  --accent: #008774;
  --accent-foreground: #fcfcfc;
  --border: #1c222b;
  --header-bg: rgba(4, 7, 15, 0.85);
  --mobile-menu-bg: rgba(4, 7, 15, 0.95);
  --section-alt-bg: rgba(21, 27, 36, 0.3);
  --grid-line: rgba(255,255,255,0.02);
  --blob-a: rgba(0, 135, 116, 0.05);
  --blob-b: rgba(0, 135, 116, 0.10);
  --card-accent-bg: rgba(0, 135, 116, 0.05);
  --soft-accent-bg: rgba(0, 135, 116, 0.1);
  --accent-border-soft: rgba(0, 135, 116, 0.3);
  --accent-border-strong: rgba(0, 135, 116, 0.5);
  --accent-shadow: rgba(0, 135, 116, 0.05);
  --radius: 0.75rem;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;
  --container-max: 1200px;
  --section-py: clamp(96px, 10vw, 128px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f6f8f4;
  --foreground: #17211f;
  --card: #ffffff;
  --card-foreground: #17211f;
  --secondary: #e7eee9;
  --muted: #e7eee9;
  --muted-foreground: #5d6f6b;
  --accent: #007d6e;
  --accent-foreground: #ffffff;
  --border: #d7e1dc;
  --header-bg: rgba(246, 248, 244, 0.86);
  --mobile-menu-bg: rgba(246, 248, 244, 0.96);
  --section-alt-bg: rgba(231, 238, 233, 0.58);
  --grid-line: rgba(23, 33, 31, 0.055);
  --blob-a: rgba(0, 125, 110, 0.08);
  --blob-b: rgba(0, 125, 110, 0.14);
  --card-accent-bg: rgba(0, 125, 110, 0.07);
  --soft-accent-bg: rgba(0, 125, 110, 0.11);
  --accent-border-soft: rgba(0, 125, 110, 0.24);
  --accent-border-strong: rgba(0, 125, 110, 0.42);
  --accent-shadow: rgba(0, 79, 69, 0.10);
}

:root[data-theme="dark"],
:root[data-theme="dark"] body {
  background-color: #04070f;
  color: #dde7e7;
}

:root[data-theme="light"],
:root[data-theme="light"] body {
  background-color: #f6f8f4;
  color: #17211f;
}

/* --------- Helpers --------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1024px) {
  .container { padding-inline: 48px; }
}
.accent { color: var(--accent); }
.muted { color: var(--muted-foreground); }
.text-balance { text-wrap: balance; }

.icon-xs { width: 12px; height: 12px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-md { width: 24px; height: 24px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-md.chevron, .icon-md.arrow-up-right { width: 20px; height: 20px; }

/* circles inside palette icon */
.icon-xs circle, .icon-sm circle, .icon-md circle, .icon-lg circle { fill: currentColor; stroke: none; }
/* But only when they have fill="currentColor" inline. Use a more specific reset for outline-style circles */
svg [fill="currentColor"] { fill: currentColor; }

/* --------- Header --------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .5s ease, backdrop-filter .5s ease, border-color .5s ease, box-shadow .5s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background-color: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.brand {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--foreground);
  transition: color .2s ease;
}
.brand:hover { color: var(--accent); }
.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color .3s ease;
}
.nav-link:hover { color: var(--foreground); }
.nav-link .underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-link:hover .underline { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  height: 40px;
  justify-content: center;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--foreground);
  border-color: var(--accent-border-strong);
  background: var(--card);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.theme-toggle:active { transform: scale(0.98); }
.theme-toggle-text {
  font-size: 13px;
  font-weight: 600;
}
.theme-icon { color: var(--accent); }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

.menu-btn {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
}
@media (min-width: 768px) { .menu-btn { display: none; } }
.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: transform .3s ease, opacity .3s ease;
  border-radius: 2px;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px 16px;
  background-color: var(--mobile-menu-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 0;
  font-size: 16px;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.is-open { display: flex; }
@media (min-width: 768px) { .mobile-menu, .mobile-menu.is-open { display: none; } }

/* --------- Hero --------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(72px);
  transition: transform .7s ease-out;
}
.blob-a {
  top: 25%; left: -25%;
  width: 600px; height: 600px;
  background: var(--blob-a);
}
.blob-b {
  bottom: 25%; right: -25%;
  width: 500px; height: 500px;
  background: var(--blob-b);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 960px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 32px;
}
.eyebrow.accent { font-weight: 700; margin-bottom: 16px; }
.hero-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.25rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--foreground);
}
.hero-desc {
  margin-top: 32px;
  margin-inline: auto;
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--muted-foreground);
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-primary {
  background: var(--foreground);
  color: var(--background);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  transform: scale(1.05);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}
:root[data-theme="light"] .btn-outline {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 18px 44px -30px rgba(23, 33, 31, 0.36);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 20px 48px -28px rgba(0, 125, 110, 0.42);
}
.btn-lg {
  padding: 20px 32px;
  margin-top: 48px;
}
.btn-lg .arrow-up-right { transition: transform .3s ease; }
.btn-lg:hover .arrow-up-right { transform: translate(2px, -2px); }

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  transition: color .5s ease, opacity .5s ease;
  padding: 8px;
}
.scroll-indicator:hover { color: var(--foreground); }
.scroll-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .15em;
}
@media (max-width: 639px) {
  .scroll-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
}
.bounce { animation: bounce 1s infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); }
}

/* --------- Sections --------- */
.section {
  padding-block: var(--section-py);
  position: relative;
}
.section-alt {
  background-color: var(--section-alt-bg);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.875rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.1;
}
.section-desc {
  margin-top: 24px;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* --------- Services Grid --------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  position: relative;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: box-shadow .5s cubic-bezier(.4,0,.2,1), border-color .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.service-card:hover {
  box-shadow: 0 25px 50px -12px var(--accent-shadow);
  border-color: var(--accent-border-soft);
}
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background-color .3s ease, color .3s ease;
}
.service-card:hover .icon-tile {
  background: var(--soft-accent-bg);
  color: var(--accent);
}
.card-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--foreground);
}
.card-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 20px;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
}

/* --------- Process --------- */
.process-list {
  max-width: 960px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.process-item {
  border-bottom: 1px solid var(--border);
}
.process-item:last-child { border-bottom: 0; }
.process-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  border-radius: 8px;
  color: inherit;
  outline: none;
}
.process-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 12px;
  background: var(--secondary);
  color: var(--muted-foreground);
  transition: background-color .3s ease, color .3s ease;
}
.process-item.is-open .process-icon,
.process-btn:hover .process-icon {
  background: var(--soft-accent-bg);
  color: var(--accent);
}
.process-text { flex: 1 1 auto; min-width: 0; }
.process-title-row { display: flex; align-items: center; gap: 16px; }
.process-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted-foreground);
}
.process-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
  color: var(--foreground);
  transition: color .3s ease;
}
.process-item.is-open .process-title { color: var(--accent); }
.process-desc {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chevron {
  color: var(--muted-foreground);
  transition: transform .3s ease;
}
.process-item.is-open .chevron { transform: rotate(180deg); }

.process-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.process-item.is-open .process-panel { grid-template-rows: 1fr; }
.process-panel-inner {
  min-height: 0;
  overflow: hidden;
}
.process-panel-content {
  padding: 0 0 32px 80px;
}
.process-panel-desc { color: var(--muted-foreground); margin-bottom: 24px; }
.process-bullets {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .process-bullets { grid-template-columns: repeat(2, 1fr); }
}
.process-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--foreground);
}
.process-bullets .dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: 8px;
  border-radius: 9999px;
  background: var(--accent);
}

/* --------- Deliver Grid --------- */
.deliver-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .deliver-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 768px) {
  .deliver-grid { grid-template-columns: repeat(4, 1fr); }
}
.deliver-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: background-color .3s ease, border-color .3s ease;
  outline: none;
}
.deliver-card:hover, .deliver-card:focus-within {
  background: var(--card-accent-bg);
  border-color: var(--accent-border-strong);
}
.icon-tile-sm {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--muted-foreground);
  transition: background-color .3s ease, color .3s ease;
}
.deliver-card:hover .icon-tile-sm,
.deliver-card:focus-within .icon-tile-sm {
  background: var(--soft-accent-bg);
  color: var(--accent);
}
.deliver-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--foreground);
  margin-bottom: 8px;
}
.deliver-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* --------- About --------- */
.about-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.about-text .section-title { text-align: left; }
.about-paragraphs {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stat-card {
  padding: 32px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color .3s ease;
}
.stat-card:hover { border-color: var(--accent-border-strong); }
@media (min-width: 1024px) {
  .stat-card--offset { transform: translateY(32px); }
}
.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
}

/* --------- Contact --------- */
.contact-inner { text-align: center; max-width: 800px; }
.section-title br { display: inline; }
.contact-desc {
  margin-top: 24px;
  margin-inline: auto;
  max-width: 600px;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.contact-feedback {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted-foreground);
  font-size: 14px;
  transition: color .3s ease, opacity .3s ease;
}
.contact-feedback.is-visible {
  color: var(--accent);
}
.contact-feedback.is-error {
  color: #e06666;
}
.contact-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  color: var(--muted-foreground);
  font-size: 14px;
}

/* --------- Contact Modal --------- */
body.modal-open {
  overflow: hidden;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
:root[data-theme="light"] .modal-overlay {
  background: rgba(23, 33, 31, 0.38);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: calc(100vh - 64px);
  overflow: visible;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 32px 80px -32px rgba(0, 0, 0, 0.7);
  transform: translateY(18px) scale(0.98);
  transition: transform .25s ease;
}
.modal-overlay.is-open .modal-dialog {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--muted-foreground);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.modal-close:hover,
.modal-close:focus-visible {
  color: var(--foreground);
  border-color: var(--accent-border-strong);
}
.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.modal-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.modal-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-title {
  max-width: 620px;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.modal-desc {
  margin-top: 16px;
  max-width: 640px;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.contact-form {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-field {
  display: grid;
  gap: 8px;
  text-align: left;
}
.form-field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  color: var(--foreground);
  padding: 13px 16px;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-field textarea {
  min-height: 116px;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--soft-accent-bg);
}
.form-field input.is-invalid,
.form-field textarea.is-invalid {
  border-color: #e06666;
  box-shadow: 0 0 0 4px rgba(224, 102, 102, 0.12);
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.form-submit[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.contact-success {
  display: none;
  min-height: 340px;
  place-items: center;
  text-align: center;
  padding: 24px 12px 8px;
}
.modal-dialog.is-submitted .contact-form,
.modal-dialog.is-submitted > .eyebrow,
.modal-dialog.is-submitted .modal-title,
.modal-dialog.is-submitted .modal-desc {
  display: none;
}
.modal-dialog.is-submitted .contact-success {
  display: grid;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  color: var(--accent);
  background: var(--soft-accent-bg);
  border: 1px solid var(--accent-border-soft);
}
.contact-success h3 {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.1;
  color: var(--foreground);
}
.contact-success p {
  margin-top: 16px;
  max-width: 460px;
  color: var(--muted-foreground);
  line-height: 1.65;
}
.success-close {
  margin-top: 28px;
}

/* --------- Footer --------- */
.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.footer-nav a {
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color .3s ease;
}
.footer-nav a:hover { color: var(--foreground); }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color .3s ease;
}
.back-top:hover { color: var(--foreground); }
.back-top:hover .arrow-up { transform: translateY(-2px); }
.back-top .arrow-up { transition: transform .3s ease; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

/* --------- Reveal-on-scroll (only when JS marks body) --------- */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
body.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------- Responsive tweaks --------- */
@media (max-width: 640px) {
  .hero .eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }
  .hero-title {
    font-size: 2.8rem;
    letter-spacing: 0;
  }
  .hero-title .accent {
    display: inline-block;
    font-size: 0.82em;
    white-space: nowrap;
  }
  .hero-desc {
    line-height: 1.55;
    margin-top: 24px;
  }
  .hero-buttons {
    width: 100%;
    max-width: 327px;
    margin-inline: auto;
  }
  .hero-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 18px;
    white-space: nowrap;
  }
  .hero-buttons .btn-outline {
    background: #ffffff;
    border-color: var(--accent);
    color: #071014;
  }
  .section-header { margin-bottom: 48px; }
  .process-btn { gap: 16px; padding: 16px 0; }
  .process-icon { width: 48px; height: 48px; flex: 0 0 48px; }
  .process-panel-content { padding-left: 64px; }
  .stat-card { padding: 24px; }
  .btn-lg { padding: 16px 24px; font-size: 14px; justify-content: center; }
  #open-contact-modal {
    width: min(100%, 335px);
    min-height: 64px;
    padding-inline: 22px;
    border-radius: 9999px;
  }
  #open-contact-modal span {
    min-width: 0;
    line-height: 1.25;
  }
  #open-contact-modal .arrow-up-right { display: none; }
  .deliver-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .deliver-card { padding: 20px; }
  .theme-toggle {
    min-width: 40px;
    width: 40px;
    padding-inline: 0;
  }
  .theme-toggle-text { display: none; }
  .modal-overlay {
    align-items: center;
    padding: 12px;
  }
  .modal-dialog {
    width: min(100%, 366px);
    padding: 26px 18px 18px;
    border-radius: 12px;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
  .modal-dialog .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }
  .modal-title { font-size: clamp(1.45rem, 7vw, 1.95rem); }
  .modal-desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
  }
  .form-row { grid-template-columns: 1fr; }
  .contact-form {
    margin-top: 18px;
    gap: 12px;
  }
  .form-field { gap: 6px; }
  .form-field input,
  .form-field textarea {
    padding: 11px 13px;
    border-radius: 10px;
  }
  .form-field textarea { min-height: 88px; }
  .contact-feedback {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
  }
  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }
  body.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
