/* ═══════════════════════════════════════════════════════════════
   Semetra.ch — Shared Styles
   Multi-page marketing site for Semetra Workspace
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --ink:       #0d0820;
  --ink-80:    #2a2440;
  --ink-60:    #4a4560;
  --ink-40:    #7a7590;
  --ink-20:    #b5b0c5;
  --ink-10:    #ddd9e8;
  --ink-05:    #eeeaf5;
  --surface:   #f8f6fc;
  --white:     #ffffff;
  --accent:    #4f46e5;
  --accent-h:  #4338ca;
  --accent-s:  #eef2ff;
  --green:     #10b981;
  --green-s:   #d1fae5;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --violet:    #7c3aed;
  --violet-s:  #ede9fe;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-s:  0 1px 3px rgba(13,8,32,0.06);
  --shadow-m:  0 4px 16px rgba(13,8,32,0.08);
  --shadow-l:  0 12px 40px rgba(13,8,32,0.1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ─ NAVIGATION ─ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-10);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.5px;
}
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--ink-60); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta {
  background: var(--ink); color: var(--white);
  padding: 8px 20px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.85rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: #2a1f50; }
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; border-radius: 8px;
}
.nav-toggle:hover { background: var(--ink-05); }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-mobile-menu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  backdrop-filter: none;
  z-index: 99; padding: 24px;
  flex-direction: column; gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: block; padding: 16px 12px;
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-radius: 12px;
}
.nav-mobile-menu a:hover { background: var(--surface); }
.nav-mobile-cta {
  display: block; text-align: center;
  margin-top: 16px; padding: 14px;
  background: var(--ink); color: var(--white) !important;
  border-radius: 10px; font-weight: 700; font-size: 1rem;
}

/* ─ NAV AUTH ─ */
#nav-auth-desktop {
  display: flex; align-items: center; gap: 4px;
}
.nav-login-link {
  color: var(--ink-60); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-login-link:hover { color: var(--ink); background: var(--ink-05); }
.nav-user-link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; padding: 4px 12px 4px 4px;
  border-radius: 10px; transition: background 0.2s;
}
.nav-user-link:hover { background: var(--ink-05); }
.nav-user-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: white; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-user-name {
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.nav-pro-badge {
  display: inline-block; padding: 1px 6px; border-radius: 100px;
  background: var(--accent-s); color: var(--accent);
  font-size: 0.6rem; font-weight: 700; margin-left: 4px;
}

/* ─ BUTTONS ─ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2a1f50; transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-20); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; border-radius: 8px; }
.btn-white { background: var(--white); color: var(--ink); font-weight: 700; padding: 14px 32px; border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* ─ SECTIONS ─ */
.section { padding: 80px 24px; }
.section-alt { background: var(--surface); }
.section-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 400;
  line-height: 1.2; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-desc { font-size: 1.05rem; color: var(--ink-60); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.section-header { text-align: center; margin-bottom: 56px; }

/* ─ CARDS ─ */
.card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke-width: 2; fill: none; }

/* ─ TAGS ─ */
.tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.3px;
  vertical-align: middle; margin-left: 6px;
}
.tag-free { background: var(--green-s); color: #059669; }
.tag-pro { background: var(--accent-s); color: var(--accent); }
.tag-new { background: #fef3c7; color: #92400e; }
.tag-ai { background: var(--violet-s); color: var(--violet); }
.tag-soon { background: var(--ink-05); color: var(--ink-40); }

/* ─ FOOTER ─ */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.6);
  padding: 56px 24px 24px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1120px; margin: 0 auto;
}
.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem; color: var(--white); margin-bottom: 8px;
}
.footer-tagline { font-size: 0.82rem; line-height: 1.6; margin-bottom: 12px; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.5); text-decoration: none; padding: 3px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1120px; margin: 40px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }

/* ─ ANIMATIONS ─ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }

/* ─ RESPONSIVE ─ */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .section { padding: 56px 16px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; }
}
