* { box-sizing: border-box; }

:root {
  --radius-xl: 2rem;
  --radius-lg: 1.6rem;
  --max: 1200px;
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.18);
  --brand-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

html[data-theme="dark"] {
  --bg: #020202;
  --bg-top: rgba(255,255,255,0.06);
  --bg-bottom: rgba(255,255,255,0.03);
  --glow-a: rgba(255,255,255,0.05);
  --glow-b: rgba(255,255,255,0.03);
  --panel: rgba(255,255,255,0.035);
  --panel-soft: rgba(255,255,255,0.05);
  --line: rgba(255,255,255,0.1);
  --text: rgba(255,255,255,0.96);
  --muted: rgba(255,255,255,0.62);
  --muted-2: rgba(255,255,255,0.45);
  --header-bg: rgba(0,0,0,0.5);
  --hero-card: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02), rgba(0,0,0,0.4));
  --highlight-card: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.035), rgba(0,0,0,0.26));
  --tag-bg: rgba(255,255,255,0.02);
  --tag-text: rgba(255,255,255,0.58);
  --brand-top: rgba(255,255,255,1);
  --brand-mid: rgba(222,226,235,0.92);
  --brand-bottom: rgba(103,113,133,0.72);
  --btn-light-text: #050505;
  --btn-dark-text: #fff;
  --img-bg: #0c0c0c;
}

html[data-theme="light"] {
  --bg: #f3f4f7;
  --bg-top: rgba(255,255,255,0.95);
  --bg-bottom: rgba(210,215,225,0.35);
  --glow-a: rgba(255,255,255,0.9);
  --glow-b: rgba(140,150,170,0.12);
  --panel: rgba(255,255,255,0.62);
  --panel-soft: rgba(255,255,255,0.72);
  --line: rgba(15,23,42,0.08);
  --text: rgba(12,16,24,0.96);
  --muted: rgba(24,30,42,0.66);
  --muted-2: rgba(32,42,58,0.48);
  --header-bg: rgba(255,255,255,0.72);
  --hero-card: linear-gradient(160deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78), rgba(220,225,235,0.55));
  --highlight-card: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72), rgba(220,225,235,0.5));
  --tag-bg: rgba(255,255,255,0.5);
  --tag-text: rgba(20,28,40,0.58);
  --brand-top: rgba(248,250,252,1);
  --brand-mid: rgba(209,213,219,0.96);
  --brand-bottom: rgba(116,127,150,0.78);
  --btn-light-text: #050505;
  --btn-dark-text: #111827;
  --img-bg: #e9edf2;
  --shadow-lg: 0 24px 50px rgba(28, 35, 48, 0.10);
  --shadow-md: 0 14px 28px rgba(28, 35, 48, 0.08);
  --brand-shadow: 0 8px 18px rgba(30,41,59,0.18);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top, var(--bg-top), transparent 34%),
    radial-gradient(circle at bottom, var(--bg-bottom), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  min-height: 100vh;
  transition: background 200ms ease, color 200ms ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, var(--glow-a), transparent 28%),
    radial-gradient(circle at 80% 100%, var(--glow-b), transparent 24%);
  z-index: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

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

.brand { display: flex; align-items: center; gap: 1rem; }

.brand-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.menu {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.section { padding: 5.5rem 0; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted-2);
  font-size: 0.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--text);
  opacity: .8;
}

.hero h1,
.section h2,
.contact-grid h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.hero h1 span { display: block; color: var(--muted); }

.hero-copy p,
.section-copy,
.contact-grid p,
.gallery-card p,
.step-card p,
.service-card p,
.highlight-panel h3 {
  color: var(--muted);
  line-height: 1.9;
}

.hero-copy > p {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.4rem;
  border-radius: 1.1rem;
  font-size: 0.95rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }

.btn-glass-light {
  color: var(--btn-light-text);
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.74), rgba(220,225,235,0.55));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 14px 32px rgba(255,255,255,0.1),
    0 18px 40px rgba(0,0,0,0.24);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .btn-glass-light {
  border-color: rgba(15,23,42,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 10px 26px rgba(30,41,59,0.10);
}

.btn-glass-dark {
  color: var(--btn-dark-text);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-soft), var(--panel), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 16px 36px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .btn-glass-dark {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 12px 24px rgba(30,41,59,0.08);
}

.theme-toggle {
  gap: 0.55rem;
  min-height: 2.85rem;
  padding-inline: 1rem;
  white-space: nowrap;
}

.theme-toggle__sun {
  font-size: 0.95rem;
  line-height: 1;
}

.glass-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--shadow-lg);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
}

.glass-panel.soft {
  background: var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), var(--shadow-md);
}

.panel-pad { padding: 2rem; }
.hero-card { padding: 1rem; }

.hero-card-inner {
  min-height: 40rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--hero-card);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-card-center { display: grid; gap: 1.2rem; justify-items: center; }

.hero-title-group { text-align: center; }

.hero-title-group h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.16em;
}

.hero-title-group p {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hero-tags span {
  padding: 1rem 0.8rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--tag-bg);
  color: var(--tag-text);
}

.brand-mark {
  display: inline-flex;
  gap: 0.6rem;
  filter: drop-shadow(var(--brand-shadow));
}

.brand-mark span {
  display: block;
  width: 0.7rem;
  height: 3rem;
  border-radius: 0.18rem;
  background: linear-gradient(180deg, var(--brand-top), var(--brand-mid), var(--brand-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 0 0 1px rgba(255,255,255,0.1),
    var(--brand-shadow);
}

html[data-theme="light"] .brand-mark span {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 0 0 1px rgba(148,163,184,0.20),
    var(--brand-shadow);
}

.brand-mark.small { gap: 0.35rem; }
.brand-mark.small span { width: 0.38rem; height: 1.75rem; }
.brand-mark-large span { width: 0.82rem; height: 4rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.about-grid h2,
.feature-panel h2,
.contact-grid h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-copy { max-width: 38rem; }
.section-copy.wide { max-width: 48rem; }

.cards-grid,
.steps-grid {
  display: grid;
  gap: 1.2rem;
}

.cards-grid { grid-template-columns: repeat(4, 1fr); }
.steps-grid { grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }

.service-card,
.step-card { padding: 1.5rem; }

.service-card h3,
.step-card h3,
.gallery-card h3,
.highlight-panel h3 {
  margin: 0.85rem 0 0;
  font-size: 1.35rem;
  font-weight: 500;
}

.step-number {
  color: var(--muted-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.feature-panel { padding: 2rem; }

.about-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.highlight-panel {
  display: flex;
  align-items: end;
  min-height: 18rem;
  background: var(--highlight-card);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.gallery-side { display: grid; gap: 1.5rem; }

.gallery-card { overflow: hidden; padding: 1rem; }

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--img-bg);
}

.gallery-side .gallery-card img { aspect-ratio: 3 / 4; }

.gallery-card figcaption { padding: 1rem 0.3rem 0.3rem; }
.gallery-card h3 { margin-top: 0; }

.contact-wrap { padding-top: 1rem; }

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

.contact-list { display: grid; gap: 1rem; }

.contact-item {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
}

@media (max-width: 1180px) {
  .nav { align-items: flex-start; }
  .nav-actions { flex-direction: column; align-items: flex-end; }
}

@media (max-width: 1080px) {
  .hero,
  .cards-grid,
  .steps-grid,
  .about-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu { display: none; }
  .hero-card-inner { min-height: 32rem; }
  .nav-actions { align-items: flex-end; }
}

@media (max-width: 720px) {
  .section { padding: 4rem 0; }
  .hero { padding-top: 4rem; }
  .hero h1, .section h2, .contact-grid h2 { font-size: 2.5rem; }
  .panel-pad, .feature-panel, .service-card, .step-card { padding: 1.35rem; }
  .hero-card-inner { min-height: 28rem; }
  .hero-tags { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .nav { align-items: center; }
  .nav-actions { width: auto; }
  .theme-toggle__label { display: none; }
}
