/* Frond — product site for PuriArk's photo editor
   Type: Clash Display (variable, 200–700) + HarmonyOS Sans SC (subset, 300/400/500)
   Palette: sea navy, paper white, blue-grey ink — same family as puriark.com */

:root {
  --sea-deep: #0E2C4F;
  --sea-dark: #0A2340;
  --sea-mid: #1B4C86;
  --sea-line: rgba(255, 255, 255, .22);
  --ink: #101F33;
  --dim: #5A6B80;
  --hair: #E4E9F0;
  --paper: #FFFFFF;
  --paper-soft: #F4F7FA;
  

  --maxw: 1252px;
  --pad: clamp(24px, 5vw, 56px);
  --nav-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@font-face {
  font-family: "Clash Display";
  src: url("../fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* HarmonyOS Sans SC — subset (site glyphs only), weights 300/400/500 */
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/harmonyos-sc-300.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/harmonyos-sc-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/harmonyos-sc-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Clash Display", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-synthesis-weight: none;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sea-deep); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F2F4F8; }
::-webkit-scrollbar-thumb { background: #C6D0DD; border-radius: 5px; border: 2px solid #F2F4F8; }
::-webkit-scrollbar-thumb:hover { background: #A9B7C9; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sea-mid); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---- Brand mark (flat, follows the current text colour) ---- */

.mark {
  display: block;
  flex: none;
  fill: currentColor;
}

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  color: var(--ink);
  transition:
    background-color .45s var(--ease),
    box-shadow .45s var(--ease),
    opacity 1s var(--ease) .8s;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  letter-spacing: .12em;
}

.nav__brand .mark { width: 17px; height: 17px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.nav__links a {
  position: relative;
  padding: 4px 0;
  font-size: 14px;
  letter-spacing: .02em;
  opacity: .78;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__contact { font-weight: 500; opacity: 1; }

.nav__lang {
  position: relative;
  padding: 4px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 14px;
  letter-spacing: .04em;
  color: inherit;
  opacity: .78;
  cursor: pointer;
}

.nav__lang::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.nav__lang:hover { opacity: 1; }
.nav__lang:hover::after { transform: scaleX(1); }

.nav.is-scrolled {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 var(--hair);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: #EDF0F2;
}

.hero__bg {
  position: absolute;
  inset: -14% 0;
  background: url("../img/beach.jpg") center 34% / cover no-repeat;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .52) 0%,
    rgba(255, 255, 255, .34) 30%,
    rgba(255, 255, 255, .18) 52%,
    rgba(255, 255, 255, 0) 66%,
    rgba(10, 22, 40, .10) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad);
  margin-top: clamp(88px, 15.5vh, 200px);
  will-change: transform, opacity;
}

.hero__mark {
  width: clamp(34px, 4.2vw, 56px);
  height: clamp(34px, 4.2vw, 56px);
  margin: 0 auto;
  color: var(--ink);
  opacity: .95;
}

.hero__wordmark {
  font-size: clamp(72px, min(24vh, 28vw), 268px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .004em;
  margin-right: -.004em;
  color: var(--ink);
  text-shadow: 0 0 34px rgba(255, 255, 255, .6);
}

.hero__wordmark span { display: inline-block; }

.hero__tagline {
  margin: clamp(16px, 3vh, 30px) 0 clamp(18px, 3.4vh, 36px);
  font-size: clamp(11px, 1.25vh, 13px);
  font-weight: 400;
  letter-spacing: .32em;
  text-indent: .16em;
  text-transform: uppercase;
  color: rgba(16, 31, 51, .78);
  text-shadow: 0 0 16px rgba(255, 255, 255, .92), 0 0 34px rgba(255, 255, 255, .7);
}

.hero__cue {
  position: absolute;
  bottom: clamp(22px, 5vh, 48px);
  left: 50%;
  z-index: 2;
  width: 1px;
  height: clamp(40px, 7vh, 64px);
  background: rgba(255, 255, 255, .5);
  overflow: hidden;
  transform: translateX(-0.5px);
}

.hero__cue::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95));
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(350%); }
}

/* ---- Sections ---- */

.section { padding: clamp(96px, 15vh, 168px) 0; }
.method { background: var(--paper-soft); }
.interface { background: var(--paper); }
.inside { background: var(--paper-soft); }
.codes { background: var(--paper); }

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 4vh, 40px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}

.label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.label--light { color: rgba(255, 255, 255, .78); }

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.statement {
  margin-bottom: clamp(26px, 4.5vh, 44px);
  font-size: clamp(2.3rem, 5.6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .01em;
  text-wrap: balance;
}

.lede {
  max-width: 33em;
  font-size: clamp(15px, 1.6vh, 17.5px);
  line-height: 1.85;
  color: var(--dim);
}

.lede--light { color: rgba(255, 255, 255, .72); }

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.005em;
  text-wrap: balance;
}

.section__title + .lede { margin-top: clamp(16px, 2.4vh, 26px); }

/* ---- Screenshots ---- */

.shot {
  margin-top: clamp(48px, 8vh, 88px);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 34px 70px -42px rgba(16, 31, 51, .34);
}

.shot figcaption {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--dim);
}

/* ---- Themes (navy world) ---- */

.themes {
  background: var(--sea-deep);
  color: #fff;
}

.shot--dark img {
  border-color: var(--sea-line);
  background: #17191C;
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, .5);
}

.shot--dark figcaption { color: rgba(255, 255, 255, .62); }

/* ---- Inside (three columns, hairline rules) ---- */

.inside__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 7vh, 72px);
}

.inside__col { padding-right: clamp(20px, 2.6vw, 36px); }

.inside__col + .inside__col {
  border-left: 1px solid var(--hair);
  padding-left: clamp(20px, 2.6vw, 36px);
}

.inside__col h3 {
  margin-bottom: 14px;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: .02em;
}

.inside__col p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--dim);
}

/* ---- Style codes ---- */

.codes__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

.codes__text .statement { margin-bottom: clamp(22px, 3.6vh, 34px); }

.codes__card {
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--hair);
  border-radius: 8px;
  background: var(--paper);
}

.codes__card img {
  display: block;
  width: 100%;
  height: auto;
}

.codes__card figcaption {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  line-height: 1.7;
  color: var(--dim);
}

.codes__close {
  margin-top: clamp(44px, 8vh, 80px);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 300;
  color: var(--ink);
}

/* ---- Photo band ---- */

.photoband {
  position: relative;
  min-height: min(84vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sea-deep);
}

.photoband__bg {
  position: absolute;
  inset: -18% 0;
  background: url("../img/beach.jpg") center 88% / cover no-repeat;
  will-change: transform;
}

.photoband__veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, .42);
}

.photoband__line {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: .02em;
  color: #fff;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(10, 22, 40, .35);
}

/* ---- Get it ---- */

.get {
  background: var(--sea-deep);
  color: #fff;
}

.get__mail {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-top: clamp(26px, 4.5vh, 44px);
  padding-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  font-weight: 300;
  letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: opacity .3s var(--ease);
}

.get__mail:hover { opacity: .78; }

.get__arrow {
  display: inline-block;
  font-weight: 300;
  transition: transform .45s var(--ease);
}

.get__mail:hover .get__arrow { transform: translateX(8px); }

.get__note {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .62);
}

/* ---- Footer ---- */

.footer {
  padding: 44px 0;
  background: var(--sea-dark);
  color: #fff;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: .12em;
}

.footer__brand .mark { width: 16px; height: 16px; }

.footer__note,
.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}

a.footer__note {
  position: relative;
  padding-bottom: 2px;
  color: rgba(255, 255, 255, .88);
  transition: color .3s var(--ease);
}

a.footer__note::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

a.footer__note:hover { color: #fff; }
a.footer__note:hover::after { transform: scaleX(1); }

/* ---- Motion ---- */

.js .reveal { opacity: 0; transform: translateY(26px); }

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.inside__grid .reveal:nth-child(1) { transition-delay: .05s; }
.inside__grid .reveal:nth-child(2) { transition-delay: .15s; }
.inside__grid .reveal:nth-child(3) { transition-delay: .25s; }

.js .hero__wordmark span,
.js .hero__tagline,
.js .hero__mark { opacity: 0; }

.js .hero__wordmark span {
  transform: translateY(.35em);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(.3s + var(--i) * .055s);
}

.js .hero__mark {
  transform: translateY(10px);
}

.js .hero__tagline {
  transform: translateY(10px);
}

.js .hero__mark,
.js .hero__tagline {
  transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s;
}

.js .nav { opacity: 0; }

body.is-loaded .hero__wordmark span,
body.is-loaded .hero__tagline,
body.is-loaded .hero__mark {
  opacity: 1;
  transform: none;
}

body.is-loaded .nav { opacity: 1; }

/* ---- Responsive ---- */

@media (max-width: 860px) {
  :root { --nav-h: 60px; }

  .nav__links a:not(.nav__contact) { display: none; }

  .hero__bg { background-position: center 22%; }

  .hero__content { margin-top: clamp(78px, 17vh, 150px); }

  .statement { font-size: clamp(1.85rem, 7.2vw, 2.5rem); }

  .section__title { font-size: clamp(1.6rem, 6.4vw, 2.2rem); }

  .photoband__line { font-size: clamp(1.6rem, 6.6vw, 2.4rem); }

  .codes__grid { grid-template-columns: 1fr; }

  .inside__grid { grid-template-columns: 1fr; }

  .inside__col { padding: 26px 0; }

  .inside__col + .inside__col {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding-left: 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .hero__wordmark span,
  .js .hero__tagline,
  .js .hero__mark,
  .js .nav { opacity: 1; transform: none; }
  .hero__cue::after { animation: none; }
}
