/* =====================================================
   FONTS
   ===================================================== */
@font-face {
  font-family: 'Fraunces';
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  src: url('fonts/fraunces-italic-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================
   TOKENS
   ===================================================== */
:root {
  --bg: #f9f7f4;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --muted: #999;
  --border: #ece9e4;
  --gold: #c8a96e;
  --violet: #7b3fe4;
  --cyan: #2ec5d3;
  --grad: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-violet: 0 8px 32px rgba(123, 63, 228, 0.12);
  --serif: 'Fraunces', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =====================================================
   HEADER — home page
   ===================================================== */
.home-header {
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.home-header img {
  max-width: 220px;
  width: 100%;
  height: auto;
  animation: fadeUp 0.6s ease-out both;
  animation-delay: 0.1s;
}

/* =====================================================
   HEADER — legal pages
   ===================================================== */
.legal-header {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, rgba(26, 26, 26, 0.12) 50%, transparent) 1;
}

.legal-header a {
  text-decoration: none;
  display: inline-block;
}

.legal-header img {
  max-width: 120px;
  width: 100%;
  height: auto;
  transition: transform 200ms ease;
}

.legal-header a:hover img {
  transform: scale(1.02);
}

/* =====================================================
   MAIN — home page
   ===================================================== */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.home-main::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    rgba(123, 63, 228, 0.22) 0%,
    rgba(46, 197, 211, 0.12) 45%,
    transparent 70%
  );
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--ink);
  line-height: 1.15;
  animation: fadeUp 0.6s ease-out both;
  animation-delay: 0.25s;
}

.brand-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 80px;
  height: 4px;
  background: var(--grad);
  border-radius: 2px;
  margin: 1.5rem auto;
  transform-origin: left center;
  animation: dividerIn 0.6s ease-out both;
  animation-delay: 0.45s;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 460px;
  line-height: 1.65;
  animation: fadeUp 0.6s ease-out both;
  animation-delay: 0.6s;
}

/* =====================================================
   APPS SHOWCASE
   ===================================================== */
.apps {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin-top: 4.5rem;
  text-align: left;
}

.apps > h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.apps > h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--grad);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-violet);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--grad);
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.app-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.app-card > p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0.5rem;
}

.app-card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--violet);
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.3rem 0;
  position: relative;
}

.app-card-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--violet);
  transition: width 200ms ease;
}

.app-card-link:hover::after {
  width: 100%;
}

.app-coming-soon {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(123, 63, 228, 0.08);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  align-self: flex-start;
  margin-top: auto;
}

/* =====================================================
   ABOUT CARD
   ===================================================== */
.about {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  max-width: 580px;
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 200ms ease;
}

.about:hover {
  box-shadow: var(--shadow-violet);
}

.about h2 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.about p {
  font-size: 1rem;
  color: #444;
  line-height: 1.75;
}

.about p + p {
  margin-top: 0.85rem;
}

/* =====================================================
   MAIN — legal pages
   ===================================================== */
.legal-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  width: 100%;
}

.legal-main h1 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.effective {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.legal-main h2 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--violet);
}

.legal-main p {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.85rem;
}

.legal-main ul {
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
}

.legal-main ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.3rem;
}

.legal-main a {
  color: var(--gold);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, transparent, rgba(26, 26, 26, 0.12) 50%, transparent) 1;
}

footer a {
  color: var(--muted);
  margin: 0 0.5rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 200ms ease;
}

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

footer a:hover::after {
  width: 100%;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dividerIn {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 600px) {
  .home-header img {
    max-width: 160px;
  }

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

  .about {
    padding: 1.5rem;
  }

  .legal-main h1 {
    font-size: 1.5rem;
  }
}

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