/* ==================== FONTS ==================== */
@font-face {
  font-family: "Libre Franklin";
  src: url('/font/LibreFranklin-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tinos";
  src: url('/font/Tinos-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tinos";
  src: url('/font/Tinos-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --font: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: "Tinos", serif;
  --dark-grey: #2C2C2C;
  --bg: #FFFDFB;
  --bg-dark: #090909;
  --text: #0A0A0A;
  --text-secondary: #858585;
  --primary: #B11D1D;
  --primary-light: #EFA9A9;
  --border: rgba(0, 0, 0, 0.08);
  --text-light: #F0F0F0;
  --card-bg: #F5F5F5;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --max-width: 1120px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --px: 60px;

  /* Font sizes */
  --fs-xs:   10px;   /* tiny labels, decorative */
  --fs-sm:   12px;   /* tags, badges, small meta */
  --fs-base: 14px;   /* secondary text, UI labels */
  --fs-md:   15px;   /* body text, nav links */
  --fs-lg:   16px;   /* standard / buttons */
  --fs-xl:   18px;   /* slightly prominent UI */
  --fs-2xl:  24px;   /* small headings */
  --fs-3xl:  32px;   /* section headings */
  --fs-4xl:  48px;   /* large headings */
}

html {
  scroll-behavior: smooth;
  font-size: var(--fs-lg);
}

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

body > main {
  flex: 1;
}

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

/* ==================== MAIN SECTION ==================== */
.main-section {
  padding-left: var(--px);
  padding-right: var(--px);
}

/* ==================== NAV ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  background: var(--bg);
  font-family: var(--font);
}

.nav-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-icon {
  height: 42px;
  width: auto;
}

.nav-wordmark {
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.nav-links a {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 10px 22px !important;
  border-radius: 100px;
  background: var(--text) !important;
  color: white !important;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500 !important;
  font-size: var(--fs-md);
  transition: opacity 0.15s;
  letter-spacing: -0.01em;
}

.nav-cta:hover {
  opacity: 0.82;
  color: white !important;
}

/* Nav auth (avatar + dropdown) */
.nav-link-subtle {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-link-subtle:hover { color: var(--text); }

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 12px;
  padding: 12px;
  min-width: 200px;
  box-shadow: 0 8px 32px -4px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 200;
  display: none;
}

.nav-dropdown.open { display: block; }

.nav-dropdown-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
}

.nav-dropdown-email {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

.nav-dropdown-item {
  width: 100%;
  text-align: left;
  padding: 7px 4px;
  font-size: var(--fs-base);
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  border-radius: 6px;
  transition: background 0.15s;
  display: block;
}

.nav-dropdown-item:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 500;
  font-size: var(--fs-md);
  font-family: var(--font);
  transition: all 0.15s var(--ease);
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--text);
  color: white;
}

.btn-primary:hover { opacity: 0.82; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0, 0, 0, 0.14);
}

.btn-ghost:hover { border-color: rgba(0, 0, 0, 0.3); }

.btn-large {
  padding: 16px 36px;
  font-size: var(--fs-xl);
}

/* ==================== SHARED LABEL ==================== */
.section-label {
  font-weight: 500;
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 30px 40px 40px;
  background: var(--bg);
}

.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-nav-icon {
  height: 42px;
  width: auto;
}

.footer-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  white-space: nowrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social-link {
  color: var(--text);
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.footer-social-link:hover { opacity: 0.6; }

/* ==================== ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ==================== RESPONSIVE NAV ==================== */
@media (max-width: 768px) {
  .nav-links { gap: 20px; }
}
