:root {
  color-scheme: light;
  --ink: #211b2c;
  --muted: #716979;
  --surface: rgba(255, 250, 255, .72);
  --surface-strong: rgba(255, 252, 255, .88);
  --surface-outline: rgba(92, 76, 111, .14);
  --primary: #6f4eb2;
  --primary-ink: #ffffff;
  --primary-container: #e8ddff;
  --secondary-container: #f1ddff;
  --tertiary-container: #ffd9e3;
  --green-container: #d9f7df;
  --orange-container: #ffe4c5;
  --blue-container: #d7ebff;
  --shadow: 0 18px 60px rgba(45, 29, 61, .13);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --bg-image: radial-gradient(circle at 10% 20%, #b8a0ff 0, transparent 35%), radial-gradient(circle at 90% 10%, #ffd0b8 0, transparent 32%), linear-gradient(135deg, #f7f0ff 0%, #e9f2ff 45%, #fff0f1 100%);
  --bg-blur: 12px;
  --bg-brightness: 100%;
  --bg-saturation: 110%;
  --bg-overlay: .18;
  --bg-zoom: 108%;
  --bg-x: 50%;
  --bg-y: 50%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #eee8f5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.background { position: fixed; inset: 0; z-index: -3; overflow: hidden; background: #ece5f3; }
.background-image {
  position: absolute;
  inset: -7%;
  background-image: var(--bg-image);
  background-position: var(--bg-x) var(--bg-y);
  background-size: var(--bg-zoom);
  background-repeat: no-repeat;
  filter: blur(var(--bg-blur)) brightness(var(--bg-brightness)) saturate(var(--bg-saturation));
  transform: scale(1.04);
  transition: filter .28s ease, background-position .28s ease, background-size .28s ease, background-image .35s ease;
}
.background-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.42)),
    radial-gradient(circle at 40% -15%, rgba(255,255,255,.65), transparent 36%),
    rgba(241, 234, 246, var(--bg-overlay));
  backdrop-filter: saturate(1.08);
}
.background-noise {
  position: absolute; inset: 0; opacity: .055; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page-shell { width: min(1180px, calc(100% - 32px)); margin: 18px auto 40px; }
.glass-panel {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
}

.topbar {
  position: sticky; top: 14px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; padding: 12px 14px 12px 16px;
  border-radius: 30px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 19px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #7c58bf, #5a3c9b);
  color: #fff; font-weight: 900; font-size: 20px; letter-spacing: -.04em;
  box-shadow: inset 0 1px rgba(255,255,255,.3), 0 8px 20px rgba(82,57,132,.28);
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 18px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(224, 246, 227, .8); color: #275b36;
  font-size: 13px; font-weight: 700;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fa95b; box-shadow: 0 0 0 4px rgba(63,169,91,.14); }
.icon-button {
  width: 48px; height: 48px; border: 0; border-radius: 18px; cursor: pointer;
  background: rgba(244, 237, 251, .86);
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}
.icon-button:hover { transform: translateY(-2px) rotate(-2deg); background: #eee3ff; }

.hero-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 18px; margin-top: 18px; }
.hero-card, .profile-orbit { min-height: 330px; border-radius: var(--radius-xl); overflow: hidden; }
.hero-primary {
  position: relative; padding: clamp(30px, 5vw, 58px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-primary::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -110px;
  border-radius: 47% 53% 66% 34% / 41% 39% 61% 59%;
  background: linear-gradient(145deg, rgba(115,79,181,.22), rgba(255,198,168,.4));
  transform: rotate(-18deg);
}
.eyebrow, .micro-label { font-size: 11px; font-weight: 900; letter-spacing: .17em; color: #6c587f; }
.hero-primary h1 { margin: 8px 0 12px; font-size: clamp(54px, 8.5vw, 100px); line-height: .92; letter-spacing: -.07em; }
.hero-lead { max-width: 650px; margin: 0; color: #5f5668; font-size: clamp(16px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.expressive-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 19px; border: 0; border-radius: 18px;
  font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.expressive-button:hover { transform: translateY(-2px) scale(1.015); }
.expressive-button.primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 28px rgba(94, 65, 151, .25); }
.expressive-button.tonal { background: rgba(235, 223, 255, .9); color: #4e347f; }
.expressive-button.wide { width: 100%; }
.button-arrow { font-size: 18px; }

.profile-orbit { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255, 242, 247, .72); }
.orbit-art { position: relative; min-height: 210px; display: grid; place-items: center; }
.core {
  position: relative; z-index: 4; width: 112px; height: 112px; border-radius: 38px;
  display: grid; place-items: center; background: #2f2539; color: #fff;
  font-size: 38px; font-weight: 950; letter-spacing: -.05em;
  box-shadow: 0 18px 35px rgba(31,24,39,.22);
}
.orbit { position: absolute; border-radius: 50%; border: 2px solid rgba(104,76,147,.18); }
.orbit-a { width: 170px; height: 170px; transform: rotate(24deg); }
.orbit-b { width: 215px; height: 124px; border-radius: 50%; transform: rotate(-24deg); }
.orbit-c { width: 88px; height: 235px; border-radius: 50%; transform: rotate(48deg); }
.profile-copy { display: grid; gap: 6px; }
.profile-copy strong { font-size: 23px; letter-spacing: -.03em; }
.profile-copy span:last-child { color: var(--muted); font-size: 13px; line-height: 1.45; }

.section-block { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 0 6px 12px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.045em; }
.section-note { color: var(--muted); font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card {
  position: relative; overflow: hidden; min-height: 300px; padding: 24px;
  border-radius: 32px; border: 1px solid rgba(255,255,255,.6);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 14px 40px rgba(46, 34, 57, .09);
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-5px) rotate(-.35deg); box-shadow: 0 20px 50px rgba(46,34,57,.14); }
.pulse-card { background: linear-gradient(150deg, rgba(226, 217, 255, .92), rgba(255, 235, 223, .9)); }
.github-card { background: linear-gradient(150deg, rgba(219, 240, 255, .92), rgba(232, 225, 255, .9)); }
.feature-card::after { content: ""; position: absolute; width: 200px; height: 200px; right: -80px; top: -80px; border-radius: 44% 56% 61% 39% / 46% 35% 65% 54%; background: rgba(255,255,255,.35); transform: rotate(24deg); }
.feature-topline, .feature-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-icon { width: 54px; height: 54px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.58); font-size: 27px; font-weight: 900; }
.status-chip, .soft-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .05em; background: rgba(255,255,255,.56); }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: #45a95e; }
.feature-copy { position: relative; z-index: 2; margin-top: 28px; }
.feature-copy h3 { margin: 7px 0 8px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.05em; }
.feature-copy p { margin: 0; max-width: 620px; color: #61576a; line-height: 1.6; }
.feature-footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(72,57,86,.1); color: #665c70; font-size: 13px; }
.feature-arrow { font-size: 24px; font-weight: 700; color: #3b2c49; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  min-height: 102px; padding: 16px 18px; border-radius: 25px;
  background: rgba(255, 250, 255, .72); border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 12px 32px rgba(50,35,58,.08);
  transition: transform .18s ease, background .18s ease;
}
.contact-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.84); }
.contact-icon { width: 54px; height: 54px; border-radius: 19px; display: grid; place-items: center; background: #eee5ff; font-size: 24px; font-weight: 900; }
.contact-copy { display: grid; gap: 5px; min-width: 0; }
.contact-copy strong { font-size: 16px; }
.contact-copy small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-arrow { font-size: 20px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service-card {
  min-height: 190px; padding: 19px; border-radius: 28px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.64); box-shadow: 0 10px 30px rgba(45,30,58,.08);
  transition: transform .18s ease;
}
.service-card:hover { transform: translateY(-4px) scale(1.01); }
.service-card:nth-child(4n+1) { background: rgba(231, 222, 255, .8); }
.service-card:nth-child(4n+2) { background: rgba(217, 242, 226, .82); }
.service-card:nth-child(4n+3) { background: rgba(255, 231, 205, .83); }
.service-card:nth-child(4n+4) { background: rgba(218, 235, 255, .83); }
.service-icon { width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.48); font-size: 23px; }
.service-card h3 { margin: 16px 0 5px; font-size: 22px; letter-spacing: -.03em; }
.service-card p { margin: 0; color: #6b6170; font-size: 13px; line-height: 1.5; }
.service-domain { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: #665d6d; font-size: 12px; }
.service-card.is-placeholder { opacity: .76; cursor: default; }

.footer { margin-top: 34px; padding: 18px 22px; border-radius: 25px; display: flex; justify-content: center; align-items: center; gap: 8px; color: #6f6575; font-size: 12px; }
.footer-dot { opacity: .45; }

.settings-panel {
  position: fixed; z-index: 50; top: 16px; right: 16px; bottom: 16px;
  width: min(430px, calc(100vw - 32px));
  padding: 18px; border-radius: 32px; overflow: auto;
  transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}
.settings-panel.is-open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.settings-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(41,32,47,.25); backdrop-filter: blur(2px); }
.settings-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.settings-header h2 { margin: 3px 0 0; font-size: 28px; letter-spacing: -.04em; }
.settings-section { padding: 16px 2px; border-top: 1px solid rgba(81,65,91,.1); }
.setting-label { display: block; margin-bottom: 10px; font-weight: 800; font-size: 13px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset-button {
  min-height: 76px; border: 2px solid transparent; border-radius: 20px; cursor: pointer; position: relative; overflow: hidden;
  background: var(--preset); transition: transform .16s ease, border-color .16s ease;
}
.preset-button:hover { transform: translateY(-2px); }
.preset-button.is-active { border-color: #6d4caf; }
.preset-button span { position: absolute; left: 8px; bottom: 7px; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.text-input { width: 100%; min-width: 0; border: 1px solid rgba(94,74,111,.13); background: rgba(255,255,255,.58); border-radius: 16px; padding: 0 13px; outline: none; }
.text-input:focus { border-color: #8b6ac5; box-shadow: 0 0 0 3px rgba(123,85,184,.12); }
.small-button { border: 0; border-radius: 16px; padding: 0 14px; background: #e9ddff; color: #533b82; font-weight: 800; cursor: pointer; }
.setting-help { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.file-row { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; border-radius: 14px; background: rgba(232,221,255,.9); color: #533b82; font-size: 12px; font-weight: 850; cursor: pointer; }
.file-row span { color: var(--muted); font-size: 10px; }
.slider-list { display: grid; gap: 13px; padding: 16px 2px; border-top: 1px solid rgba(81,65,91,.1); }
.slider-setting { display: grid; gap: 8px; }
.slider-setting > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.slider-setting output { color: #7a6d82; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: #7151ae; }
.settings-footer { padding-top: 8px; }

@media (max-width: 900px) {
  .hero-grid, .feature-grid { grid-template-columns: 1fr; }
  .profile-orbit { min-height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 20px, 1180px); margin-top: 10px; }
  .topbar { top: 8px; min-height: 68px; border-radius: 24px; }
  .brand-mark { width: 46px; height: 46px; border-radius: 17px; }
  .brand-copy small { display: none; }
  .live-pill { display: none; }
  .hero-card, .profile-orbit { border-radius: 28px; }
  .hero-primary { padding: 28px 22px; min-height: 390px; }
  .hero-primary h1 { font-size: clamp(54px, 20vw, 78px); }
  .service-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .footer { flex-wrap: wrap; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
