/* ==========================================================================
   Phind / HUUH PTY LTD — shared stylesheet
   Used by index.html, privacy.html, terms.html
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-mono-300.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500.woff2') format('woff2');
}

/* Variable font: single file covers weights 400-900 (regular through black) */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/unbounded-variable.woff2') format('woff2-variations'), url('../fonts/unbounded-variable.woff2') format('woff2');
}

/* ---- Design tokens -------------------------------------------------------
   Values pulled directly from the rendered mockups.
   ---------------------------------------------------------------------- */

:root {
  /* brand */
  --black: #0A0A0A;
  --white: #F5F5F0;
  --lime: #C8FF00;
  --magenta: #FF3BFF;
  --orange: #FF5C00;

  /* text on --black, expressed as opacity steps of --white */
  --text-primary: var(--white);
  --text-70: rgba(245, 245, 240, 0.7);
  --text-65: rgba(245, 245, 240, 0.65);
  --text-60: rgba(245, 245, 240, 0.6);
  --text-40: rgba(245, 245, 240, 0.4);
  --text-30: rgba(245, 245, 240, 0.3);

  /* hairlines */
  --border-8: rgba(245, 245, 240, 0.08);
  --border-6: rgba(245, 245, 240, 0.06);

  /* fonts */
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'DM Mono', ui-monospace, monospace;

  /* layout */
  --container-wide: 1120px;
  --container: 920px;
  --container-narrow: 760px;
  --gutter: 48px;
  --gutter-mobile: 20px;
}

/* ---- Reset / base --------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--lime);
  transition: color 0.2s ease;
}

a:hover { color: var(--white); }

ul { margin: 0; }
li { margin: 0; }

/* ---- Logo (animated "Phi" wordmark) --------------------------------------- */

@keyframes phiCycle {
  0%   { color: var(--lime); }
  33%  { color: var(--magenta); }
  66%  { color: var(--orange); }
  100% { color: var(--lime); }
}

@media (prefers-reduced-motion: reduce) {
  .logo__phi { animation: none !important; }
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  display: inline-flex;
  align-items: flex-start;
  letter-spacing: -1px;
  text-decoration: none;
  font-size: 18px;
}

.logo__phi {
  color: var(--lime);
  animation: phiCycle 6s ease-in-out infinite;
}

.logo__nd {
  color: var(--white);
  display: inline-block;
  transform: translateY(2%);
}

/* ---- Site header / nav ----------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border-8);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 22px var(--gutter);
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-60);
  transition: color 0.2s;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--lime) !important; }

.site-nav a[aria-current="page"] {
  color: var(--lime);
  transition: none;
}

/* ---- Section label ("↳ 00 — company") -------------------------------------- */

.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 22px;
}

/* ---- Buttons / CTAs --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  background: var(--lime);
  padding: 14px 24px;
  text-decoration: none;
  width: fit-content;
  transition: 0.2s;
}

.btn:hover {
  color: var(--black);
  background: var(--white) !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 4px 4px 0 var(--lime) !important;
}

/* ---- Hero (index) ------------------------------------------------------------ */

.hero {
  padding: 120px var(--gutter) 90px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 28px;
  color: var(--white);
}

.hero p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-65);
  max-width: 640px;
  margin: 0;
}

.hero p .hl { color: var(--white); }

/* ---- Content sections (index) ------------------------------------------------ */

.section {
  padding: 70px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border-8);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.5px;
  margin: 0 0 28px;
  color: var(--white);
}

.section__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.section__body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-60);
  margin: 0;
}

#product h2 { margin-bottom: 20px; }
#contact h2 { margin-bottom: 24px; }

.section .tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: -0.3px;
  color: var(--lime);
  margin: 0 0 20px;
}

.section .lede {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-60);
  max-width: 640px;
  margin: 0;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.contact-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-60);
  margin: 0;
}

/* ---- Legal pages (privacy / terms) -------------------------------------------- */

.legal-hero {
  padding: 80px var(--gutter) 40px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 16px;
  color: var(--white);
}

.legal-hero .updated {
  font-size: 12px;
  color: var(--text-40);
  margin: 0;
}

.legal-body {
  padding: 0 var(--gutter) 100px;
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin: 0 0 12px;
}

.legal-body p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-60);
  margin: 0;
}

.legal-body p + p { margin-top: 10px; }

.legal-body ul {
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-60);
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal-body a { text-decoration: none; }

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

.site-footer {
  padding: 56px var(--gutter) 40px;
  border-top: 1px solid var(--border-8);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer .logo {
  font-size: 14px;
  letter-spacing: -0.5px;
}

.site-footer .logo__nd { transform: translateY(1%); }

.site-footer__tagline {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-30);
  margin-top: 6px;
}

.site-footer__columns {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__col h3 {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-30);
  margin: 0 0 4px;
  font-weight: 400;
}

.site-footer__col a {
  font-size: 12px;
  text-decoration: none;
  color: var(--text-60);
  transition: color 0.2s;
}

.site-footer__col a:hover { color: var(--lime); }

.site-footer__col address {
  font-style: normal;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-60);
}

.site-footer__bottom {
  max-width: var(--container);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-6);
  font-size: 11px;
  color: var(--text-30);
}

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

@media (max-width: 640px) {
  .site-header__inner {
    padding: 18px var(--gutter-mobile);
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .hero,
  .section,
  .legal-hero,
  .legal-body,
  .site-footer__inner,
  .site-footer__bottom {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
}

@media (max-width: 380px) {
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 9px; letter-spacing: 0.5px; }
}
