/* F-Cubed Design System
   Hard corners, Inter Tight, dual-hex logo, Webflow-inspired tokens.
   Use this in every template via <link rel="stylesheet" href="/static/f3-design.css">. */

:root {
  /* Neutrals */
  --n-100: #ffffff;
  --n-200: #fbfbfb;
  --n-300: #f3f3f3;
  --n-400: #e3e3e3;
  --n-500: #ababab;
  --n-600: #505050;
  --n-700: #292929;
  --n-800: #161616;

  /* Brand accents */
  --blue: #3898ec;        /* primary blue button (Webflow .w-button) */
  --blue-hover: #2a7fc9;
  --rose: #d4707e;
  --teal: #06b6d4;
  --red-accent: #fe566b;

  /* Semantic */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Auth dark theme */
  --auth-bg: #0c0c0e;
  --auth-card: #161618;
  --auth-input: #1e1e22;
  --auth-border: rgba(255,255,255,0.08);
  --auth-text-muted: #6b6b7b;
  --auth-text: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--n-600);
  background: var(--n-100);
}

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

/* ----- F-Cubed dual-hex logo ----- */
.f3-logo {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-block;
  overflow: visible;
  flex-shrink: 0;
}
.f3-logo .hex-blue,
.f3-logo .hex-pink {
  position: absolute;
  top: 0;
  width: 54px;
  height: 54px;
  transition: transform 0.6s ease-in-out;
}
.f3-logo .hex-blue { left: 0; }
.f3-logo .hex-pink { left: 38%; }
.f3-logo .hex-f3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-10%, -50%);
  font-size: 22px;
  font-weight: 500;
  color: var(--n-800);
  z-index: 1;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.f3-logo .hex-f3 sup {
  font-size: 12px;
  vertical-align: super;
  line-height: 0;
}
.f3-logo:hover .hex-blue { transform: rotate(90deg); }
.f3-logo:hover .hex-pink { transform: rotate(-90deg); }

/* Sized variants */
.f3-logo.sm { width: 40px; height: 40px; }
.f3-logo.sm .hex-blue, .f3-logo.sm .hex-pink { width: 40px; height: 40px; }
.f3-logo.sm .hex-f3 { font-size: 16px; }
.f3-logo.sm .hex-f3 sup { font-size: 9px; }

.f3-logo.lg { width: 72px; height: 72px; }
.f3-logo.lg .hex-blue, .f3-logo.lg .hex-pink { width: 72px; height: 72px; }
.f3-logo.lg .hex-f3 { font-size: 30px; }
.f3-logo.lg .hex-f3 sup { font-size: 16px; }

/* Dark-mode logo: F superscript turns white */
.f3-logo.dark .hex-f3 { color: var(--n-100); }

/* ----- Top nav (light, glassmorphic) ----- */
.f3-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--n-400);
}
.f3-nav-brand { display: flex; align-items: center; gap: 12px; }
.f3-nav-brand .brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--n-800);
}
.f3-nav-links { display: flex; align-items: center; gap: 4px; }
.f3-nav-link {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--n-600);
  transition: color 0.2s, background 0.2s;
  border-radius: 0;
}
.f3-nav-link:hover { color: var(--n-800); background: var(--n-300); }

/* ----- Buttons (hard corners, no border-radius) ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s, color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {            /* blue, the GET STARTED FREE style */
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-hover); }

.btn-dark {               /* dark, the GET STARTED NOW style */
  background: var(--n-800);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-outline {
  background: transparent;
  color: var(--n-800);
  border: 1px solid var(--n-400);
}
.btn-outline:hover { border-color: var(--n-800); background: var(--n-300); }

.btn-ghost {
  background: transparent;
  color: var(--n-600);
}
.btn-ghost:hover { color: var(--n-800); background: var(--n-300); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.78rem; }
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

/* ----- Forms ----- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--n-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.input,
input[type="text"].f3-input,
input[type="email"].f3-input,
input[type="password"].f3-input,
input[type="number"].f3-input,
textarea.f3-input,
select.f3-input {
  width: 100%;
  padding: 13px 14px;
  background: var(--n-100);
  color: var(--n-800);
  border: 1px solid var(--n-400);
  border-radius: 0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus,
.f3-input:focus {
  outline: none;
  border-color: var(--n-800);
  box-shadow: 0 0 0 3px rgba(22,22,22,0.06);
}

/* Auth form variants (dark theme) */
.auth-page {
  background: var(--auth-bg);
  color: var(--auth-text-muted);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-wrapper { width: 100%; max-width: 440px; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 32px; }
.auth-logo .brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--auth-text);
}
.auth-card {
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 0;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.auth-card h1 {
  color: var(--auth-text);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.auth-card .subtitle {
  font-size: 0.9rem;
  color: var(--auth-text-muted);
  margin-bottom: 24px;
}
.auth-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--auth-text-muted);
  margin: 16px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-card input {
  width: 100%;
  padding: 13px 14px;
  background: var(--auth-input);
  color: var(--auth-text);
  border: 1px solid var(--auth-border);
  border-radius: 0;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card input::placeholder { color: var(--auth-text-muted); }
.auth-card input:focus {
  outline: none;
  border-color: var(--n-100);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}
.auth-card .btn { margin-top: 20px; }
.auth-card .links {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--auth-text-muted);
}
.auth-card .links a { color: var(--n-100); font-weight: 500; }
.auth-card .links a:hover { opacity: 0.8; }
.auth-card .separator {
  text-align: center;
  margin: 28px 0 20px;
  position: relative;
  color: var(--auth-text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-card .separator::before,
.auth-card .separator::after {
  content: ''; position: absolute; top: 50%; width: 38%; height: 1px;
  background: var(--auth-border);
}
.auth-card .separator::before { left: 0; }
.auth-card .separator::after { right: 0; }
.auth-back {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--auth-text-muted);
}
.auth-back:hover { color: var(--auth-text); }

/* ----- Sections ----- */
.f3-section { padding: 80px 0; }
.f3-section-light { background: var(--n-100); }
.f3-section-muted { background: var(--n-200); }
.f3-section-dark { background: var(--n-800); color: var(--n-100); }

.f3-container { max-width: 1186px; margin: 0 auto; padding: 0 24px; }

.f3-subtitle {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--n-500);
}
.f3-h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--n-800);
  line-height: 1.1;
}
.f3-h2 {
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--n-800);
  line-height: 1.15;
}

/* ----- Cards (hard corners) ----- */
.f3-card {
  background: var(--n-100);
  border: 1px solid var(--n-400);
  border-radius: 0;
  padding: 24px;
}

/* Override: nuke common rounded edges from inherited components */
.no-radius, .no-radius * { border-radius: 0 !important; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .f3-nav { padding: 0 20px; height: 64px; }
  .f3-section { padding: 56px 0; }
  .auth-card { padding: 28px 22px; }
}
