/* ============================================================
   forgemade.com — Shared Styles
   ============================================================ */

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

:root {
  --black:    #000000;
  --white:    #ffffff;
  --off-white:#e2e2e2;
  --gray-1:   #aaaaaa;
  --gray-2:   #555555;
  --gray-3:   #2a2a2a;
  --surface:  #0e0e0e;
  --border:   #1f1f1f;
  --red:      #b02a2a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography ------------------------------------------- */

.cinzel {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cormorant {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

p { color: var(--off-white); }

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

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

/* ---- Rule ------------------------------------------------- */

.rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gray-2);
  margin: 0 auto;
}

.rule--left { margin: 0; }
.rule--full { width: 100%; }

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, transparent 100%);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav__mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav__name {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-1);
  transition: color 0.2s;
}

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

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__mark {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero__wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(48px, 10vw, 112px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 32px;
}

.hero__rule {
  width: 1px;
  height: 48px;
  background: var(--gray-2);
  margin: 0 auto 32px;
}

.hero__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--off-white);
  letter-spacing: 0.02em;
  margin-bottom: 64px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 32px;
  background: var(--gray-3);
}

/* ---- Section Base ----------------------------------------- */

.section {
  padding: 120px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.section--full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 20px;
}

.section__heading {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* ---- Apps ------------------------------------------------- */

.apps {
  border-top: 1px solid var(--border);
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.2s;
}

.app-card:hover { opacity: 0.75; }

.app-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-card__name {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.app-card__desc {
  font-size: 14px;
  color: var(--gray-1);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.6;
}

.app-card__platform {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-top: 12px;
}

.app-card__arrow {
  font-size: 24px;
  color: var(--gray-2);
  flex-shrink: 0;
}

/* ---- Creed ------------------------------------------------ */

.creed {
  border-top: 1px solid var(--border);
  text-align: center;
}

.creed__text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--off-white);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.creed__text strong {
  color: var(--white);
  font-style: normal;
  font-weight: 600;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.7;
}

.footer__name {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.footer__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer__links a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-2);
  transition: color 0.2s;
}

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

.footer__copy {
  font-size: 11px;
  color: var(--gray-3);
  letter-spacing: 0.05em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

.btn--ghost {
  border-color: var(--gray-2);
  color: var(--gray-1);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

/* ---- App Store Badge -------------------------------------- */

.badge-appstore {
  display: inline-block;
  height: 44px;
  transition: opacity 0.2s;
}

.badge-appstore:hover { opacity: 0.75; }

/* ---- Product Page ----------------------------------------- */

.product-hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

.product-hero__icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  object-fit: cover;
  margin-bottom: 36px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.product-hero__name {
  font-size: clamp(36px, 6vw, 72px);
  margin-bottom: 16px;
}

.product-hero__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--gray-1);
  margin-bottom: 48px;
}

.product-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Features Grid ---------------------------------------- */

.features {
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 0;
}

.feature-cell {
  background: var(--black);
  padding: 40px 36px;
}

.feature-cell__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 16px;
}

.feature-cell__heading {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-cell__body {
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.7;
}

/* ---- Contact Form ----------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gray-2);
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

.form-field select option {
  background: var(--surface);
}

/* ---- Privacy Page ----------------------------------------- */

.prose {
  max-width: 680px;
}

.prose h2 {
  font-size: 18px;
  margin: 48px 0 16px;
  letter-spacing: 0.06em;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--off-white);
  margin-bottom: 16px;
}

.prose a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .nav__links {
    gap: 24px;
  }

  .section {
    padding: 80px 24px;
  }

  .app-card {
    grid-template-columns: auto 1fr;
    gap: 24px;
  }

  .app-card__arrow { display: none; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 48px 24px;
  }

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

  .form-field--full { grid-column: 1; }
}
