:root {
    color-scheme: dark;
    --bg: #10131b;
    --surface: #161b26;
    --surface2: #1b2230;
    --line: #293142;
    --text: #eef0f7;
    --muted: #a0a9bd;
    --accent: #a99bff;
    --green: #74e4be;
    --mono: ui-monospace,SFMono-Regular,Consolas,'Liberation Mono',monospace;
    --sans: Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
  }
  
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
  }
  
  button,a {
    -webkit-tap-highlight-color: transparent;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button {
    font: inherit;
    cursor: pointer;
    color: inherit;
  }
  
  button:focus-visible,a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
  }
  
  button:disabled {
    cursor: default;
  }
  
  .wrap {
    max-width: 1160px;
    width: calc(100% - 88px);
    margin: auto;
  }
  .accent {
    color: var(--accent);
  }
  
  .muted {
    color: var(--muted);
  }
  
  .mono {
    font-family: var(--mono);
    font-size: 11px;
  }
  
  .skip {
    position: fixed;
    top: -70px;
    left: 12px;
    z-index: 100;
    background: var(--accent);
    color: var(--bg);
    padding: 10px;
  }
  
  .skip:focus {
    top: 10px;
  }
  
  .header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #10131bf0;
    border-bottom: 1px solid #252b39;
    backdrop-filter: blur(16px);
  }
  
  .nav {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 26px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
  }
  
  .logo-icon {
    color: var(--accent);
    background: #a99bff16;
    border: 1px solid #a99bff30;
    border-radius: 8px;
    padding: 2px 8px;
  }
  
  .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-left: auto;
    font-size: 14px;
    color: var(--muted);
  }
  
  .nav-links a:hover,.footer a:hover {
    color: var(--accent);
  }
  
  .nav-contact {
    color: var(--text)!important;
  }
  
  .lang {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 5px 10px;
    font-family: var(--mono);
    font-size: 12px;
  }
  
  .lang:hover {
    border-color: var(--accent);
  }
  
  .menu-toggle {
    display: none;
  }
  
  .hero {
    min-height: 535px;
    display: grid;
    grid-template-columns: 1.07fr .93fr;
    align-items: center;
    gap: 32px;
    padding-top: 65px;
    padding-bottom: 68px;
  }
  
  .eyebrow {
    font: 600 11px/1.5 var(--mono);
    letter-spacing: 1.2px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 9px;
  }
  
  .status-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px #74e4be70;
  }
  
  .hero h1 {
    font-size: clamp(43px,5.4vw,75px);
    line-height: 1.09;
    letter-spacing: -3.5px;
    margin: 22px 0 22px;
    font-weight: 760;
  }
  
  .hero-description {
    font-size: 17px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 0 30px;
  }
  
  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 650;
    border-radius: 8px;
    padding: 12px 18px;
    min-height: 46px;
    transition: transform .2s,background .2s,border-color .2s;
    border: 1px solid transparent;
  }
  
  .btn:hover {
    transform: translateY(-2px);
  }
  
  .primary {
    background: var(--accent);
    color: #161228;
  }
  
  .primary:hover {
    background: #c3b9ff;
  }
  
  .secondary {
    background: #171c26;
    border-color: var(--line);
    color: var(--text);
  }
  
  .secondary:hover {
    border-color: var(--accent);
  }
  
  .hero-stack {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .hero-stack>.muted {
    font: 10px var(--mono);
    letter-spacing: 1px;
  }
  
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  
  .tags span {
    font: 11px/1.4 var(--mono);
    color: #c2c9da;
    border: 1px solid #343b4d;
    background: #1a202b;
    padding: 4px 8px;
    border-radius: 5px;
  }
  
  .hero-art {
    position: relative;
    display: grid;
    place-items: center;
    height: auto;
    padding-block: 24px;
    isolation: isolate;
  }
  
  .art-glow {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse at center,#6859e62b,transparent 68%);
  }
  
  .orbit {
    position: absolute;
    border: 1px solid #a99bff17;
    border-radius: 50%;
    width: 96%;
    aspect-ratio: 1;
    z-index: -1;
    transform: rotate(-15deg);
  }
  
  .orbit-two {
    width: 78%;
    border-style: dashed;
  }
  
  .terminal {
    width: 94%;
    max-width: 430px;
    background: #121722;
    border: 1px solid #42465e;
    border-radius: 13px;
    box-shadow: 0 25px 65px #0006;
    transform: rotate(-3deg);
    overflow: hidden;
    font-family: var(--mono);
  }
  
  .terminal-top,.terminal-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 15px;
    background: #1b202c;
    color: #9ea7bc;
    font-size: 10px;
    gap: 10px;
  }
  
  .dots {
    display: flex;
    gap: 5px;
  }
  
  .dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #eb7d91;
  }
  
  .dots i:nth-child(2) {
    background: #eac680;
  }
  
  .dots i:nth-child(3) {
    background: #75cba4;
  }
  
  .terminal-code {
    padding: 20px 13px;
    font-size: clamp(10px,1.14vw,14px);
    line-height: 1.8;
    white-space: pre;
  }
  
  .terminal-code em {
    color: #626d83;
    font-style: normal;
    display: inline-block;
    width: 32px;
    text-align: center;
    margin-right: 8px;
  }
  
  .purple {
    color: #beadff;
  }
  
  .aqua,.blue {
    color: #8fc5ff;
  }
  
  .green,.terminal-bottom b {
    color: #74e4be;
  }
  
  .float-label {
    position: absolute;
    background: #1b2130;
    border: 1px solid #3a4358;
    border-radius: 7px;
    font: 10px var(--mono);
    padding: 10px 12px;
    box-shadow: 0 6px 24px #0005;
    white-space: nowrap;
  }
  
  .float-label span {
    color: var(--green);
    margin-right: 5px;
  }
  
  .float-top {
    right: 0;
    top: 28px;
    transform: rotate(5deg);
  }
  
  .float-bottom {
    left: 0;
    bottom: 25px;
    transform: rotate(3deg);
  }
  
  .section {
    padding: 62px 0;
    border-top: 1px solid var(--line);
  }
  
  .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 27px;
  }
  
  .section-kicker {
    color: var(--accent);
  }
  
  h2 {
    font-size: clamp(28px,3.6vw,43px);
    letter-spacing: -1.6px;
    line-height: 1.2;
    margin: 10px 0 12px;
  }
  
  .section-heading p,.contact-panel p,.about-text {
    color: var(--muted);
    margin: 0;
    font-size: 15px;
  }
  
  .section-index {
    font: 11px var(--mono);
    color: var(--muted);
    white-space: nowrap;
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
  }
  
  .project {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: border-color .2s,transform .2s;
  }
  
  .project:hover {
    border-color: #5c567e;
    transform: translateY(-3px);
  }
  
  .project-visual {
    height: 184px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--line);
    background-image: linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);
    background-size: 24px 24px;
  }
  
  .visual-automation {
    background-color: #1e263d;
  }
  
  .visual-api {
    background-color: #173130;
  }
  
  .visual-game {
    background-color: #30233f;
  }
  
  .visual-bot {
    background-color: #1b2c40;
  }
  
  .visual-type {
    position: absolute;
    top: 13px;
    left: 14px;
    font: 10px var(--mono);
    letter-spacing: .8px;
    color: #d2d9e4;
    opacity: .9;
  }
  
  .mock-window {
    width: 70%;
    max-width: 310px;
    height: 112px;
    background: #141a27;
    border: 1px solid #505e7b;
    border-radius: 8px;
    box-shadow: 0 15px 30px #0004;
    transform: rotate(-3deg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .mock-bar {
    height: 23px;
    border-bottom: 1px solid #343e50;
    background: #222c3c;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 9px;
  }
  
  .mock-bar i {
    width: 5px;
    height: 5px;
    background: #8390a9;
    border-radius: 50%;
  }
  
  .mock-body {
    display: flex;
    gap: 12px;
    padding: 13px;
    flex: 1;
    align-items: center;
  }
  
  .mock-clock {
    width: 56px;
    height: 56px;
    border: 3px solid #a99bff;
    border-radius: 50%;
    position: relative;
    flex: none;
  }
  
  .mock-clock:before,.mock-clock:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 19px;
    background: #a99bff;
    transform-origin: top;
    transform: rotate(180deg);
  }
  
  .mock-clock:after {
    height: 15px;
    transform: rotate(-65deg);
  }
  
  .mock-lines {
    flex: 1;
    display: grid;
    gap: 8px;
  }
  
  .mock-lines i {
    display: block;
    background: #39465d;
    height: 8px;
    border-radius: 4px;
  }
  
  .mock-lines i:first-child {
    background: #a99bff;
    width: 70%;
  }
  
  .mock-lines i:last-child {
    width: 85%;
  }
  
  .api-nodes {
    display: flex;
    align-items: center;
    gap: 9px;
    font: 12px var(--mono);
    color: #90ebca;
  }
  
  .api-nodes span {
    background: #172923;
    border: 1px solid #4b8e7c;
    border-radius: 7px;
    padding: 14px 9px;
  }
  
  .api-nodes b {
    font-weight: 400;
    color: #80b3a5;
  }
  
  .game-board {
    display: grid;
    grid-template-columns: repeat(7,17px);
    gap: 3px;
    transform: rotate(-9deg);
    padding: 8px;
    border: 1px solid #765e96;
    border-radius: 5px;
    background: #191625;
    box-shadow: 0 10px 24px #0006;
  }
  
  .game-board i {
    width: 17px;
    height: 17px;
    border-radius: 2px;
    background: #443b58;
  }
  
  .game-board i.active {
    background: #b3a0ff;
  }
  
  .game-board i.goal {
    background: #f1cf7b;
  }
  
  .game-board i.dark {
    background: #16141f;
  }
  
  .chat-mock {
    width: 60%;
    max-width: 210px;
    display: grid;
    gap: 8px;
    transform: rotate(-4deg);
  }
  
  .chat-bubble {
    background: #283d56;
    border: 1px solid #426381;
    border-radius: 8px 8px 8px 2px;
    padding: 8px 12px;
    font: 11px var(--mono);
    color: #d0e8ff;
    width: 85%;
  }
  
  .chat-bubble:nth-child(2) {
    justify-self: end;
    background: #385177;
    border-radius: 8px 8px 2px 8px;
  }
  
  .chat-buttons {
    display: flex;
    gap: 5px;
  }
  
  .chat-buttons i {
    height: 15px;
    flex: 1;
    background: #6ba6d8;
    border-radius: 4px;
    opacity: .8;
  }
  
  .project-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
  }
  
  .project-top {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
  }
  
  .project h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -.4px;
  }
  
  .project-status {
    font: 10px var(--mono);
    color: var(--muted);
    white-space: nowrap;
  }
  
  .project p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
  }
  
  .project .tags {
    margin: 3px 0 9px;
  }
  
  .project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
    background: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
  }
  
  .project-link:hover {
    color: #d0c8ff;
  }
  
  .service-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
  }
  
  .service {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  
  .service-icon {
    display: grid;
    place-items: center;
    background: #a99bff15;
    border: 1px solid #a99bff30;
    border-radius: 8px;
    color: var(--accent);
    width: 39px;
    height: 39px;
    margin-bottom: 16px;
    font: 18px var(--mono);
  }
  
  .service h3 {
    font-size: 17px;
    margin: 0 0 8px;
  }
  
  .service p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
  }
  
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  
  .about-text {
    font-size: 16px;
    line-height: 1.8;
  }
  
  .skills-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
  }
  
  .panel-head,.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  
  .panel-head {
    font-weight: 650;
    padding-bottom: 13px;
  }
  
  .skill-row {
    border-top: 1px solid var(--line);
    padding: 13px 0;
    font-size: 12px;
  }
  
  .skill-row:last-child {
    padding-bottom: 0;
  }
  
  .skill-row span:first-child {
    color: var(--muted);
  }
  
  .skill-row span:last-child {
    text-align: right;
  }
  
  .contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    background: radial-gradient(ellipse at 95% 0%,#38315c66,transparent 65%),var(--surface);
    border: 1px solid #383d54;
    border-radius: 12px;
  }
  
  .contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }
  
  .contact-note {
    color: var(--muted);
    font-size: 13px;
    max-width: 260px;
  }
  
  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--line);
    font: 12px var(--mono);
    color: var(--muted);
  }
  
  dialog {
    background: var(--surface);
    color: var(--text);
    border: 1px solid #55516f;
    border-radius: 14px;
    padding: 0;
    width: min(560px,calc(100% - 28px));
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 18px 70px #0009;
  }
  
  dialog::backdrop {
    background: #080a12c9;
    backdrop-filter: blur(5px);
  }
  
  .dialog-inner {
    padding: 32px;
    position: relative;
  }
  
  .close-dialog {
    position: absolute;
    right: 14px;
    top: 11px;
    font-size: 25px;
    background: none;
    border: 0;
    color: var(--muted);
  }
  
  .dialog-inner p,.dialog-inner li {
    color: var(--muted);
    font-size: 15px;
  }
  
  .dialog-inner h3 {
    font-size: 16px;
    margin-top: 26px;
  }
  
  .dialog-inner ul {
    padding-left: 20px;
    margin-bottom: 25px;
  }
  
  .dialog-inner .tags {
    margin-top: 15px;
  }
  
  .dialog-inner .eyebrow {
    color: var(--accent);
    padding-right: 28px;
  }
  
  @media(max-width:900px) {
    .wrap {
      width: calc(100% - 48px);
    }
  
    .hero {
      gap: 20px;
      min-height: 490px;
    }
  
    .hero h1 {
      letter-spacing: -2px;
    }
  
    .hero-art {
        height: auto;
    }
  
    .service-grid {
      grid-template-columns: repeat(2,1fr);
    }
  
    .about {
      gap: 24px;
    }
  
    .nav-links {
      gap: 18px;
    }
  }
  
  @media(max-width:650px) {
    .wrap {
      width: calc(100% - 32px);
    }
  
    .nav {
      height: 62px;
      gap: 12px;
    }
  
    .logo {
      font-size: 15px;
    }
  
    .lang {
      margin-left: 0;
    }
  
    .menu-toggle {
      margin-left: auto;
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 8px;
      background: none;
      border: 0;
    }
  
    .menu-toggle span {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--text);
    }
  
    .nav-links {
      display: none;
      position: absolute;
      top: 62px;
      left: 0;
      right: 0;
      background: #161b26;
      border-bottom: 1px solid var(--line);
      padding: 18px 22px;
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
    }
  
    .nav-links.open {
      display: flex;
    }
  
    .hero {
        grid-template-columns: 1fr;
        padding-top: 47px;
        padding-bottom: 35px;
        gap: 32px;
    }

    .hero-art {
        height: auto;
        max-width: 420px;
        width: 100%;
        margin: auto;
    }
  
    .hero h1 {
      font-size: clamp(42px,10vw,62px);
      margin: 16px 0;
    }
  
    .hero-description {
      font-size: 16px;
    }
  
    .terminal-code {
      font-size: 12px;
    }
  
    .hero-stack {
      margin-top: 23px;
    }
  
    .section {
      padding: 42px 0;
    }
  
    .section-heading {
      margin-bottom: 20px;
    }
  
    .section-index {
      display: none;
    }
  
    .project-grid,.service-grid,.about {
      grid-template-columns: 1fr;
    }
  
    .project-visual {
      height: 165px;
    }
  
    .contact-panel {
      padding: 24px;
      flex-direction: column;
      align-items: flex-start;
    }
  
    .contact-actions {
      justify-content: flex-start;
    }
  
    .footer {
      font-size: 11px;
    }
  
    .dialog-inner {
      padding: 25px;
    }
  
    .float-top {
      top: 12px;
    }
  
    .float-bottom {
      bottom: 12px;
    }
  }
  
  @media(max-width:360px) {
    .terminal-code {
      font-size: 10px;
    }
  
    .btn {
      padding: 10px 12px;
      font-size: 13px;
    }
  
    .skill-row {
      font-size: 11px;
    }
  
    .project-status {
      font-size: 9px;
    }
  
    .project-body {
      padding: 16px;
    }
  }
  
  @media(prefers-reduced-motion:reduce) {
    html {
      scroll-behavior: auto;
    }
  
    *,*::before,*::after {
      transition: none!important;
      animation: none!important;
    }
  }
  