:root {
  /* Legacy dark premium background - preserved for possible reuse
  --ink: #f7fbff;
  --muted: rgba(235, 242, 249, 0.72);
  --soft: rgba(235, 242, 249, 0.48);
  --line: rgba(255, 255, 255, 0.11);
  --glass: rgba(9, 15, 25, 0.36);
  --accent: #d8b56d;
  --accent-soft: rgba(216, 181, 109, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  body background: #06090f;
  */
  --ink: #172033;
  --muted: rgba(23, 32, 51, 0.72);
  --soft: rgba(23, 32, 51, 0.5);
  --line: rgba(30, 41, 59, 0.12);
  --glass: rgba(255, 255, 255, 0.72);
  --accent: #9a6b20;
  --accent-soft: rgba(154, 107, 32, 0.1);
  --shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
  --radius: 24px;
  --max-width: 1080px;
}

/* Legacy dark premium background - preserved for possible reuse
body {
  background: #06090f;
  color: #f7fbff;
}

body::before {
  background:
    radial-gradient(circle at 50% 16%, rgba(216, 181, 109, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(3, 7, 13, 0.42), rgba(3, 7, 13, 0.92));
}

.site-bg {
  inset: -22px;
  width: auto;
  aspect-ratio: auto;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(0.72);
  opacity: 1;
  transform: scale(1.03);
}
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f7f3eb;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.9), transparent 30%),
    radial-gradient(circle at 78% 8%, rgba(154, 107, 32, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(250, 247, 240, 0.96), rgba(238, 232, 220, 0.94));
}

.site-bg {
  position: fixed;
  top: 82px;
  right: max(0px, calc((100% - var(--max-width)) / 2 - 120px));
  bottom: auto;
  left: auto;
  width: min(58vw, 760px);
  aspect-ratio: 3 / 4;
  z-index: -3;
  background-image: url("assets/profile.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  filter: blur(0.4px) saturate(0.98);
  opacity: 0.42;
  transform: none;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 243, 235, 0.76), rgba(247, 243, 235, 0.18)),
    linear-gradient(180deg, rgba(247, 243, 235, 0.04), rgba(247, 243, 235, 0.72));
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(216, 181, 109, 0.86);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(30, 41, 59, 0.1);
  background: rgba(247, 243, 235, 0.76);
  backdrop-filter: blur(20px);
}

.nav {
  width: min(100% - 56px, var(--max-width));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.nav-menu,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(216, 181, 109, 0.42);
  border-radius: 50%;
  background: rgba(154, 107, 32, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.nav-menu {
  gap: 18px;
}

.nav-menu a {
  padding: 8px 0;
  color: rgba(23, 32, 51, 0.66);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-menu a:hover {
  color: var(--ink);
}

.language-select select {
  min-height: 38px;
  border: 1px solid rgba(216, 181, 109, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 34px 0 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.language-select option {
  background: #ffffff;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  width: min(100% - 56px, var(--max-width));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 88px 0 116px;
}

.hero-card {
  width: min(100%, 780px);
  padding: clamp(36px, 6vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  text-align: center;
}

.profile-image {
  width: clamp(144px, 15vw, 208px);
  height: clamp(144px, 15vw, 208px);
  display: block;
  margin: 0 auto 36px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 58px rgba(30, 41, 59, 0.16);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 6vw, 5.45rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
  line-height: 1.36;
}

.title-line {
  max-width: 680px;
  margin: 0 auto 26px;
  color: rgba(23, 32, 51, 0.78);
  font-size: clamp(0.98rem, 1.8vw, 1.14rem);
  font-weight: 560;
  line-height: 1.75;
}

.hero-text {
  max-width: 580px;
  margin: 0 auto 42px;
  color: rgba(23, 32, 51, 0.68);
  font-size: clamp(1.03rem, 1.8vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.copy-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 760;
}

.button {
  padding: 0 26px;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.section {
  width: min(100% - 56px, var(--max-width));
  margin: 0 auto;
  padding: 126px 0;
}

.section-kicker {
  margin-bottom: 42px;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.about-panel {
  padding: clamp(32px, 5vw, 58px);
}

.about-panel p {
  max-width: 900px;
  margin-bottom: 0;
  color: rgba(23, 32, 51, 0.76);
  font-size: clamp(1.06rem, 1.8vw, 1.22rem);
  line-height: 1.9;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.capability-card {
  min-height: 292px;
  padding: 34px;
}

.capability-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.capability-card p,
.problem-card p,
.stack-panel p,
.credibility-panel li {
  margin-bottom: 0;
  color: rgba(23, 32, 51, 0.68);
  line-height: 1.78;
}

.problem-list {
  display: grid;
  gap: 18px;
}

.problem-card {
  padding: 34px;
}

.problem-card h3 {
  max-width: 760px;
}

.stack-panel {
  display: grid;
  gap: 28px;
  padding: clamp(30px, 5vw, 52px);
  border-color: rgba(216, 181, 109, 0.3);
  background:
    linear-gradient(180deg, rgba(154, 107, 32, 0.08), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.74);
}

.stack-group {
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.1);
}

.stack-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stack-group a {
  color: #8b5e17;
  text-decoration: underline;
  text-decoration-color: rgba(139, 94, 23, 0.34);
  text-underline-offset: 4px;
}

.credibility-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 64px;
  align-items: start;
}

.credibility-panel {
  padding: clamp(30px, 5vw, 48px);
}

.credibility-panel ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 20px;
}

.contact-intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(23, 32, 51, 0.68);
  font-size: 1.08rem;
  line-height: 1.8;
}

.contact-section {
  padding-bottom: 84px;
}

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

.contact-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
}

.contact-card span {
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-card strong {
  width: 100%;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.15vw, 1rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.copy-button {
  min-height: 30px;
  margin-top: 12px;
  padding: 0 12px;
  border: 1px solid rgba(216, 181, 109, 0.36);
  background: var(--accent-soft);
  color: var(--accent);
}

.copy-button.is-copied {
  background: var(--accent);
  color: #ffffff;
}

.site-footer {
  width: min(100% - 56px, var(--max-width));
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 32px 0 52px;
  color: var(--soft);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .capability-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credibility-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-bg {
    top: 86px;
    right: -34vw;
    width: 118vw;
    opacity: 0.2;
    filter: blur(1px) saturate(0.92);
  }

  .site-bg::after {
    background:
      linear-gradient(90deg, rgba(247, 243, 235, 0.82), rgba(247, 243, 235, 0.36)),
      linear-gradient(180deg, rgba(247, 243, 235, 0.12), rgba(247, 243, 235, 0.82));
  }

  .nav {
    width: min(100% - 28px, var(--max-width));
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

.nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 14px;
  }

  .language-select select {
    width: 100%;
    margin-top: 6px;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    min-height: auto;
    padding: 42px 0 68px;
  }

  .hero-card {
    border-radius: 24px;
  }

  .section {
    padding: 78px 0;
  }

  .capability-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .capability-card {
    min-height: 0;
  }

  .capability-card span {
    margin-bottom: 26px;
  }

  .contact-card {
    min-height: 112px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 3.3rem;
  }

  .title-line {
    font-size: 0.98rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

[dir="rtl"] .nav,
[dir="rtl"] .site-footer {
  direction: rtl;
}

[dir="rtl"] .hero-card,
[dir="rtl"] .section {
  text-align: right;
}

[dir="rtl"] .hero-actions,
[dir="rtl"] .profile-image {
  direction: ltr;
}
