/* ============================================================
   My Digital Dream — site styles
   ============================================================ */

:root {
  --ink: #0a0714;
  --ink-2: #100b20;
  --panel: #150f28;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #efeaf9;
  --muted: #a79fc0;
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.16);
  --gold: #f5b942;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ambient glow ---------- */

.glow {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.glow--one {
  width: 620px; height: 620px;
  top: -260px; left: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.34), transparent 70%);
}
.glow--two {
  width: 560px; height: 560px;
  bottom: -240px; right: -200px;
  background: radial-gradient(circle, rgba(245, 185, 66, 0.16), transparent 70%);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 7, 20, 0.82);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold), #e58b2b);
  color: #1a1024;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; }
.brand-text span {
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
}
.nav a:not(.btn) {
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--gold), #eb9d2f);
  color: #1a1024;
  font-weight: 600;
  font-size: 0.96rem;
  font-family: "Inter", sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -16px rgba(245, 185, 66, 0.75);
}
.btn--sm { padding: 11px 20px; font-size: 0.88rem; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* ---------- hero ---------- */

.hero { position: relative; z-index: 1; padding: 76px 0 40px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.16);
}

.grad {
  background: linear-gradient(100deg, var(--gold), #ffd98a 45%, #c4a3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.1rem;
  max-width: 46ch;
  color: #b8b1cc;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 30px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.82rem;
  color: var(--muted);
}

.visual-frame {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(139, 92, 246, 0.32), transparent 60%),
    radial-gradient(110% 80% at 90% 100%, rgba(245, 185, 66, 0.2), transparent 60%),
    linear-gradient(160deg, #1a1230, #0d0918);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 78%);
}

.visual-frame::after {
  /* rising bar chart motif */
  content: "";
  position: absolute;
  left: 28px; right: 28px; bottom: 116px;
  height: 150px;
  background:
    linear-gradient(to top, rgba(245, 185, 66, 0.85), rgba(245, 185, 66, 0.1)) 0 100% / 13% 34% no-repeat,
    linear-gradient(to top, rgba(245, 185, 66, 0.9), rgba(245, 185, 66, 0.12)) 26% 100% / 13% 52% no-repeat,
    linear-gradient(to top, rgba(196, 163, 255, 0.92), rgba(196, 163, 255, 0.14)) 52% 100% / 13% 72% no-repeat,
    linear-gradient(to top, rgba(196, 163, 255, 0.95), rgba(196, 163, 255, 0.18)) 78% 100% / 13% 96% no-repeat,
    linear-gradient(to top, rgba(245, 185, 66, 1), rgba(245, 185, 66, 0.2)) 100% 100% / 9% 100% no-repeat;
  border-radius: 6px;
  opacity: 0.9;
}

.visual-stat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(10, 7, 20, 0.6);
  backdrop-filter: blur(8px);
}
.visual-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.visual-stat strong { font-family: "Sora", sans-serif; font-size: 0.95rem; }

.visual-caption {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section { position: relative; z-index: 1; padding: 92px 0; }

.section--panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub { color: var(--muted); margin: 0; }

/* ---------- service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 185, 66, 0.32);
  background: linear-gradient(170deg, rgba(245, 185, 66, 0.07), rgba(255, 255, 255, 0.015));
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.94rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--violet-soft);
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- about ---------- */

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

.portrait {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 246, 0.3), transparent 60%),
    linear-gradient(160deg, #191129, #0d0918);
  box-shadow: var(--shadow);
  text-align: center;
}

.portrait-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: conic-gradient(from 210deg, var(--gold), var(--violet), #ffd98a, var(--gold));
  box-shadow: inset 0 0 0 6px rgba(10, 7, 20, 0.75);
}
.portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.portrait-initials {
  font-family: "Sora", sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #150f28;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.25);
}

.portrait-tag {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
}
.portrait-tag strong { font-family: "Sora", sans-serif; font-size: 1.1rem; }
.portrait-tag span {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy h2 { margin-bottom: 20px; }

.checklist {
  list-style: none;
  margin: 26px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  color: #c3bcd6;
  font-size: 0.96rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(245, 185, 66, 0.16);
  box-shadow: inset 0 0 0 1px rgba(245, 185, 66, 0.5);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: 12px;
  width: 6px; height: 3px;
  border-left: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: rotate(-45deg);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { gap: 14px; border-bottom-color: rgba(245, 185, 66, 0.5); }

/* ---------- process ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.step-num {
  display: block;
  margin-bottom: 16px;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.92rem; }

/* ---------- contact ---------- */

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

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 52px;
  border-radius: 28px;
  border: 1px solid rgba(245, 185, 66, 0.22);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(245, 185, 66, 0.14), transparent 55%),
    radial-gradient(90% 100% at 0% 100%, rgba(139, 92, 246, 0.22), transparent 60%),
    linear-gradient(160deg, #171029, #0c0817);
  box-shadow: var(--shadow);
}
.contact-copy h2 { margin-bottom: 14px; }
.contact-copy .section-sub { max-width: 40ch; }

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  word-break: break-word;
}
.contact-item:not(.contact-item--static):hover {
  transform: translateY(-3px);
  border-color: rgba(245, 185, 66, 0.45);
  background: rgba(245, 185, 66, 0.08);
}
.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-value { font-weight: 500; font-size: 0.94rem; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand--footer .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 0.74rem; }
.footer-note { margin: 0; font-size: 0.84rem; }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .contact-item:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero { padding-top: 52px; }
  .hero-inner,
  .about-inner,
  .contact-card { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 440px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 36px; }
  .portrait { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: rgba(14, 10, 28, 0.97);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 11px 12px; border-radius: 10px; }
  .nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.05); }
  .nav .btn { margin-top: 6px; }

  .section { padding: 68px 0; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 22px; border-radius: 22px; }
  .visual-frame { aspect-ratio: 4 / 4; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- top utility bar ---------- */

.topbar {
  position: relative;
  z-index: 51;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.topbar-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.16);
  flex: none;
}
.topbar-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.topbar-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}
.topbar-links a:hover { color: var(--gold); }
.topbar-sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

/* ---------- header nav states ---------- */

.header-inner { position: relative; }

.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(0.35); }
.nav a:not(.btn).is-active { color: var(--text); }
.nav a:not(.btn).is-active::after { transform: scaleX(1); }

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.header-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transition: width 0.12s linear;
}

.brand { transition: opacity 0.2s ease; }
.brand:hover { opacity: 0.88; }

/* ---------- footer extras ---------- */

.footer-end {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-link {
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

@media (max-width: 760px) {
  .topbar-links { display: none; }
  .topbar-inner { justify-content: center; min-height: 34px; }
  .nav a:not(.btn)::after { display: none; }
}
