/* Arikco Build — client access portal
   Design system mirrored from the Arikekpar & Company site:
   near-black ground, hairline borders, zero radius, sand accent. */

:root {
  --bg: #0d0d0d;
  --bg-deep: #080808;
  --fg: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.62);
  --faint: rgba(245, 245, 245, 0.42);
  --accent: #d3cabb;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --panel: rgba(255, 255, 255, 0.03);
  --danger: #e5675c;
  --shell: min(1400px, 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

/* Any author `display` rule outranks the browser's [hidden] rule, so the attribute
   silently stops working on styled elements. This keeps `hidden` authoritative. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 25%),
    linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 60%, #070707 100%);
  color: var(--fg);
  font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #0a0a0a;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 768px) {
  .shell {
    padding-inline: 40px;
  }
}

@media (min-width: 1024px) {
  .shell {
    padding-inline: 56px;
  }
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--faint);
  margin: 0;
}

.display {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 6.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0;
}

.lede {
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #ffffff;
  color: #0a0a0a;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.button:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-2px);
}

.button:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.button--ghost {
  background: transparent;
  color: var(--fg);
}

.button--ghost:hover:not(:disabled) {
  background: #ffffff;
  color: #0a0a0a;
}

.button--block {
  width: 100%;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.arrow {
  width: 14px;
  height: 14px;
  flex: none;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  /* Opaque: white buttons and cards scroll underneath this bar, and a translucent
     header let them bleed through and wash out the text sitting on top. */
  background: #0a0a0a;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 34px;
  width: auto;
}

.brand__text {
  display: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg);
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

@media (min-width: 640px) {
  .brand__text {
    display: block;
  }
}

.site-header__meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
  transition: color 0.3s ease;
}

.site-header__meta:hover {
  color: var(--fg);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(72px, 12vw, 140px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 72px;
  }
}

.hero__copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero__aside {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero__aside dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.hero__aside div {
  display: grid;
  gap: 4px;
}

.hero__aside dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.hero__aside dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- how it works ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section__head {
  display: grid;
  gap: 18px;
  margin-bottom: 56px;
  max-width: 60ch;
}

.section__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
}

.steps {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 36px 28px 40px;
  background: var(--bg);
}

.step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.step h3 {
  margin: 6px 0 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---------- work placeholder (future portfolio) ---------- */

.work {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 760px) {
  .work {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 28px;
  background: var(--bg);
}

.work__item h3 {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--muted);
}

.work__tag {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
  border: 1px solid var(--line);
  padding: 5px 10px;
  white-space: nowrap;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: 48px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--faint);
}

@media (min-width: 760px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer a:hover {
  color: var(--fg);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

@media (min-width: 760px) {
  .site-footer__links {
    align-items: flex-end;
  }
}

.site-footer__admin {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--faint);
}

/* ---------- admin ---------- */

.admin-main {
  flex: 1;
  padding-block: clamp(40px, 6vw, 72px);
}

.admin-layout {
  display: grid;
  gap: 40px;
}

.admin-head {
  display: grid;
  gap: 14px;
  max-width: 62ch;
}

.admin-head a {
  color: var(--accent);
  border-bottom: 1px solid rgba(211, 202, 187, 0.4);
}

.admin-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(24px, 4vw, 36px);
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.admin-panel__head h2 {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.field-row {
  display: grid;
  gap: 0 20px;
}

@media (min-width: 720px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.label-hint {
  text-transform: none;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 245, 0.32);
}

.text-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease;
}

.text-button:hover {
  color: var(--fg);
}

.text-button--danger:hover {
  color: var(--danger);
}

.admin-signout {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #ffffff;
  color: #0a0a0a;
  padding: 11px 20px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin-signout:hover {
  background: var(--accent);
  color: #0a0a0a;
}

.client-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.client-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--bg);
}

.client-row__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-row__main h3 {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.client-row__email {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  word-break: break-all;
}

.client-row__url {
  font-size: 0.82rem;
  color: var(--accent);
  word-break: break-all;
}

.client-row__url:hover {
  text-decoration: underline;
}

.client-row__actions {
  display: flex;
  gap: 20px;
  flex: none;
}

.empty-note {
  margin: 0;
  padding: 28px 24px;
  background: var(--bg);
  color: var(--faint);
  font-size: 0.9rem;
}

/* ---------- access page ---------- */

.access-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.access-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(48px, 9vw, 96px);
}

.access-card {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: clamp(28px, 5vw, 44px);
}

.access-card__head {
  display: grid;
  gap: 12px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.access-card__head h1 {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.access-card__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.field label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font: inherit;
  font-size: 0.98rem;
  border-radius: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.field input::placeholder {
  color: rgba(245, 245, 245, 0.28);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.55);
}

.form-status {
  min-height: 22px;
  margin: 0 0 18px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.form-status[data-state="success"] {
  color: var(--accent);
}

.access-note {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--faint);
}

.access-note a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}

.access-note a:hover {
  color: var(--fg);
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 10, 10, 0.25);
  border-top-color: #0a0a0a;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal:nth-child(2) { animation-delay: 0.07s; }
.reveal:nth-child(3) { animation-delay: 0.14s; }
.reveal:nth-child(4) { animation-delay: 0.21s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
