/* ============================================================
   WEBSIDED — less is more.
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --fg: #f5f5f4;
  --muted: #8b8b90;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7dd3fc;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- ambient background ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 20% -10%, rgba(125, 211, 252, 0.07), transparent 60%),
    radial-gradient(50rem 35rem at 90% 110%, rgba(167, 139, 250, 0.06), transparent 60%);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -2%, 0) scale(1.04); }
}

/* ---------- entrance animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

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

/* ---------- header ---------- */
header {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-weight: 800;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--fg);
  transition: color 0.3s ease;
}

.wordmark:hover {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

nav a:hover {
  color: var(--fg);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- hero (index) ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.logo {
  font-size: clamp(2.75rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  background: linear-gradient(120deg, #f5f5f4 30%, #7dd3fc 50%, #f5f5f4 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheen 7s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

.tagline {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  max-width: 34rem;
  line-height: 1.7;
}

.tagline strong {
  color: var(--fg);
  font-weight: 500;
}

/* ---------- content pages ---------- */
main.page {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 2rem) 5rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1rem;
}

p strong, li strong {
  color: var(--fg);
  font-weight: 500;
}

ul {
  list-style: none;
  margin: 0 0 1rem;
}

li {
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  padding-left: 1.25rem;
  position: relative;
}

li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease, color 0.3s ease;
}

a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- app card ---------- */
.app-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  text-decoration: none;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}

.app-card:hover {
  border-color: rgba(125, 211, 252, 0.4);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.02);
}

.app-card .app-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-card .app-name .arrow {
  color: var(--muted);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

.app-card:hover .app-name .arrow {
  transform: translateX(6px);
  color: var(--accent);
}

.app-card .app-desc {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  line-height: 1.7;
}

/* ---------- contact box ---------- */
.contact-box {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
}

.contact-box .row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
}

.contact-box .row + .row {
  border-top: 1px solid var(--line);
}

.contact-box .label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-box .value {
  font-size: 1.05rem;
}

/* ---------- footer ---------- */
footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

footer .links {
  display: flex;
  gap: 1.5rem;
}

footer a {
  color: var(--muted);
  border: none;
  transition: color 0.3s ease;
}

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

@media (max-width: 560px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
}
