*, *::before, *::after { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

:root {
  --sans: "Geist", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --frame-max: 1240px;
  --content-max: 1120px;
  --shell-pad: clamp(1.25rem, 3vw, 1.75rem);
  --bg: #f8f7f4;
  --bg-card: #ffffff;
  --bg-hover: #fafaf8;
  --bg-pill: #efefeb;
  --bg-soon: #f4f3ef;
  --tx1: #111110;
  --tx2: #6b6a65;
  --tx3: #a8a79f;
  --ac: #d4641a;
  --ac-lt: #f5ede4;
  --bd: rgba(17, 17, 16, 0.08);
  --bd-s: rgba(17, 17, 16, 0.13);
  --panel-bg: color-mix(in srgb, var(--bg-card) 84%, transparent);
  --panel-glow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  --shadow-soft: 0 18px 48px rgba(17, 17, 16, 0.08);
  --r8: 8px;
  --r14: 14px;
  --r20: 20px;
  --r28: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg: #0d0d0b;
  --bg-card: #161614;
  --bg-hover: #1c1c1a;
  --bg-pill: #1e1e1b;
  --bg-soon: #111110;
  --tx1: #f0efe8;
  --tx2: #8a8980;
  --tx3: #55544e;
  --ac: #e07a3a;
  --ac-lt: rgba(208, 100, 26, 0.12);
  --bd: rgba(240, 239, 232, 0.07);
  --bd-s: rgba(240, 239, 232, 0.12);
  --panel-glow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.28);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--tx1);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

.site-header,
.hero,
.sec,
.site-footer {
  width: min(100%, var(--frame-max));
  margin-inline: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

[data-theme="dark"] body::before { opacity: 0.04; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(26px) saturate(155%);
  -webkit-backdrop-filter: blur(26px) saturate(155%);
  border-bottom: 1px solid color-mix(in srgb, var(--bd) 94%, transparent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header .header-inner {
  min-height: 58px;
}

.site-header .aankda-brand__mark {
  width: 2rem;
  height: 2rem;
  filter: drop-shadow(0 5px 12px rgba(224, 122, 58, 0.2));
}

.site-header .aankda-brand__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--ac) 92%, white 8%);
  transition: color 0.3s var(--ease);
}

.site-header .header-actions,
.site-header .header-nav {
  gap: 10px;
}

.site-header .nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tx2);
  padding: 7px 10px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.site-header .nav-link:hover {
  color: var(--tx1);
  background: var(--bg-pill);
}

.site-header .theme-toggle {
  min-width: 38px;
  width: auto;
  height: 38px;
  padding: 0 0.72rem;
  margin-left: 4px;
  border-radius: 14px;
  border: 1px solid var(--bd-s);
  background: color-mix(in srgb, var(--panel-bg) 92%, transparent);
  color: var(--tx2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--panel-glow);
  transition: background 0.2s, transform 0.2s;
}

.site-header .theme-toggle:hover {
  background: var(--bg-pill);
  transform: scale(1.08);
}

.site-header .theme-toggle svg {
  width: 16px;
  height: 16px;
}

.site-header .theme-toggle-icon {
  width: 16px;
  height: 16px;
}

.site-header .theme-toggle[data-theme-state] {
  width: 38px;
  padding: 0;
}

.hero {
  position: relative;
  min-height: clamp(24rem, 56svh, 31rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(2.8rem, 5.5vh, 3.8rem) clamp(1.1rem, 2.4vh, 1.65rem);
  padding-inline: var(--shell-pad);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  right: -110px;
  top: -120px;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--ac) 14%, transparent) 0%, transparent 74%);
  opacity: 0.32;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  right: 10%;
  top: 17%;
  background: radial-gradient(circle, color-mix(in srgb, #ffffff 14%, transparent) 0%, transparent 72%);
  opacity: 0.14;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.05); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bd) 1px, transparent 1px),
    linear-gradient(90deg, var(--bd) 1px, transparent 1px);
  background-size: 150px 150px;
  background-position: calc(100% - 82px) 22px;
  mask-image: radial-gradient(circle at 83% 21%, black 0%, rgba(0, 0, 0, 0.94) 21%, transparent 58%);
  -webkit-mask-image: radial-gradient(circle at 83% 21%, black 0%, rgba(0, 0, 0, 0.94) 21%, transparent 58%);
  opacity: 0.19;
}

.hero-body {
  position: relative;
  z-index: 1;
  width: min(100%, 58rem);
  margin-left: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.35rem;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--tx1) 12%, transparent);
  border-radius: 100px;
  background: color-mix(in srgb, var(--bg-card) 18%, transparent);
  color: color-mix(in srgb, var(--tx2) 88%, var(--tx1) 12%);
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: up 0.7s var(--ease) both;
}

.hero-h1 {
  margin-bottom: 1rem;
  color: var(--tx1);
  font-family: var(--serif);
  max-width: none;
  font-size: clamp(3.8rem, 6.6vw, 5.7rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.02em;
  animation: up 0.7s var(--ease) 0.1s both;
}

.hero-h1 em {
  font-style: italic;
  color: var(--ac);
}

.hero-sub {
  max-width: 41rem;
  margin-bottom: 2.2rem;
  color: var(--tx2);
  font-size: clamp(1.1rem, 1.8vw, 1.24rem);
  font-weight: 400;
  line-height: 1.52;
  animation: up 0.7s var(--ease) 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: up 0.7s var(--ease) 0.3s both;
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-hero,
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 21px;
  border: none;
  border-radius: 100px;
  color: var(--tx1);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn-hero {
  border: 1px solid color-mix(in srgb, var(--ac) 52%, var(--bd-s));
  background: color-mix(in srgb, var(--bg-card) 76%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.btn-accent {
  border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 78%, white 22%) 0%, color-mix(in srgb, var(--ac) 92%, black 8%) 100%);
  color: #26140b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 16px 34px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover,
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.sec {
  position: relative;
  padding: clamp(2.35rem, 4vw, 3.2rem) var(--shell-pad);
}

.sec-lbl {
  margin-bottom: 1rem;
  color: var(--tx3);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sec-products {
  max-width: var(--content-max);
  padding-top: clamp(1rem, 2vw, 1.55rem);
}

.prod-hd {
  margin-bottom: 1.35rem;
}

.prod-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.pcard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 20rem;
  padding: 1.45rem 1.3rem 1.35rem;
  border: 1px solid color-mix(in srgb, var(--bd-s) 94%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-card) 84%, transparent);
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 36px rgba(0, 0, 0, 0.14);
  transition: background 0.25s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pcard:hover {
  background: color-mix(in srgb, var(--bg-hover) 88%, transparent);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tx1) 16%, var(--bd-s));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 44px rgba(0, 0, 0, 0.18);
}

.shelf > :first-child {
  border-color: color-mix(in srgb, var(--ac) 22%, var(--bd-s));
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(0, 0, 0, 0.14);
}

.pcard-soon {
  background: color-mix(in srgb, var(--bg-soon) 90%, transparent);
  cursor: default;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ac-lt) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac) 18%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.card-ico svg {
  width: 22px;
  height: 22px;
  color: var(--ac);
}

.bdg {
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.bdg-live {
  background: #d1fae5;
  color: #065f46;
  border: 0.5px solid #a7f3d0;
}

[data-theme="dark"] .bdg-live {
  background: rgba(6, 95, 70, 0.25);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.2);
}

.bdg-wip {
  background: var(--bg-pill);
  color: var(--tx3);
  border: 0.5px solid var(--bd-s);
}

.card-name {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.browsers {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.bchip {
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--bg-pill);
  color: var(--tx2);
  font-size: 0.7rem;
}

.card-desc {
  flex: 1;
  color: var(--tx2);
  font-size: 0.95rem;
  line-height: 1.58;
  max-width: 30ch;
}

.sec-ethos {
  max-width: var(--content-max);
  padding-top: clamp(2rem, 3vw, 2.7rem);
}

.ethos-hl {
  font-family: var(--serif);
  max-width: none;
  margin-bottom: 2.4rem;
  font-size: clamp(2.65rem, 4.2vw, 3.45rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.ethos-hl em {
  font-style: italic;
  color: var(--ac);
}

.ethos-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ethos-item {
  min-height: 10rem;
  padding: 1.2rem 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--bd-s) 94%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ethos-item-t {
  margin-bottom: 0.55rem;
  color: var(--tx1);
  font-size: 1rem;
  font-weight: 600;
}

.ethos-item-d {
  color: var(--tx2);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 27ch;
}

.sec-contact {
  max-width: var(--content-max);
  padding-top: clamp(1.75rem, 3vw, 2.35rem);
  padding-bottom: clamp(0.9rem, 2vw, 1.35rem);
}

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.contact-hl {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 3.9rem);
  font-weight: 400;
  line-height: 1.06;
}

.contact-box .sec-lbl { margin-bottom: 0.5rem; }

.support-text {
  max-width: 34rem;
  color: color-mix(in srgb, var(--tx2) 92%, var(--tx3) 8%);
  font-size: 0.8rem;
  line-height: 1.45;
  transition: opacity 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

.support-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
  transition: text-decoration-color 0.2s;
}

.support-link:hover { text-decoration-color: currentColor; }

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--bd) 94%, transparent);
  padding: 0.75rem clamp(1.25rem, 3vw, 1.75rem) 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  justify-content: center;
  text-align: center;
}

.site-footer .support-text {
  margin-bottom: 0.28rem;
}

.footer-line {
  max-width: 72rem;
  color: color-mix(in srgb, var(--tx2) 96%, var(--tx3) 4%);
  font-size: 0.76rem;
  line-height: 1.38;
}

@media (min-width: 1100px) {
  .hero-h1,
  .prod-title,
  .contact-hl,
  .footer-line {
    white-space: nowrap;
  }

  .ethos-hl {
    font-size: clamp(2.45rem, 3.35vw, 3.1rem);
    white-space: nowrap;
  }
}

@media (min-width: 1120px) and (max-width: 1239px) {
  .hero-body {
    margin-left: calc((100vw - var(--content-max)) / 2);
  }
}

@media (min-width: 1240px) {
  .hero-body {
    margin-left: calc((var(--frame-max) - var(--content-max)) / 2);
  }
}

@media (max-width: 768px) {
  .site-header,
  .hero,
  .sec,
  .site-footer {
    width: 100%;
  }
  .shelf { grid-template-columns: 1fr; }
  .ethos-items { grid-template-columns: 1fr; }
  .ethos-hl { max-width: 12ch; }
  .ethos-item { min-height: auto; }
}

@media (max-width: 480px) {
  .site-header .header-inner {
    min-height: 60px;
  }
  .header-nav .nav-link:not(.nav-link-gh) { display: none; }
  .site-header .nav-link {
    font-size: 0.82rem;
    padding-inline: 0.45rem;
  }
  .site-header .aankda-brand__name { font-size: 0.92rem; }
  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2.6rem;
    overflow: visible;
  }
  .hero-body {
    margin-left: 0;
  }
  .hero-pill {
    margin-bottom: 0.9rem;
    padding: 6px 10px;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
  }
  .hero-h1 {
    max-width: 8ch;
    margin-bottom: 0.85rem;
    font-size: clamp(3rem, 15vw, 4rem);
    line-height: 1.02;
    white-space: normal;
  }
  .hero-sub {
    max-width: 28rem;
    margin-bottom: 1.55rem;
    font-size: 1rem;
    line-height: 1.62;
  }
  .sec-lbl,
  .bchip {
    color: var(--tx2);
    font-size: 0.6875rem;
  }
  .card-desc,
  .ethos-item-d,
  .support-text,
  .footer-line {
    font-size: 0.8125rem;
    line-height: 1.58;
  }
  .contact-hl {
    max-width: 10ch;
    white-space: normal;
  }
}

@media (hover: hover) {
  .support-text {
    opacity: 0.48;
  }

  .site-footer:hover .support-text,
  .site-footer:focus-within .support-text {
    opacity: 1;
    color: var(--tx1);
    transform: translateY(-1px);
  }
}

@media (hover: none) {
  .support-text {
    opacity: 0.82;
    color: var(--tx2);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
