/* Floof Logic design system — palette shared with the FloofClaw apps */
:root {
  --bg: #0f1318;
  --bg-strong: #141b22;
  --panel: rgba(20, 27, 34, 0.88);
  --panel-border: rgba(152, 176, 201, 0.18);
  --text: #edf3f8;
  --muted: #9ba9b7;
  --accent: #28b39a;
  --accent-2: #f08a4b;
  --accent-3: #72a7ff;
  --accent-gradient: linear-gradient(135deg, #28b39a, #72a7ff);
  --warm-gradient: linear-gradient(135deg, #f08a4b, #f5b06b);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --radius: 20px;
  --radius-sm: 12px;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: "SFMono-Regular", Menlo, Monaco, monospace;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(240, 138, 75, 0.04), transparent 55%),
    linear-gradient(180deg, #14100b 0%, #120f0c 55%, #10131a 85%, #151b22 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; line-height: 1.1; }

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2.5rem;
}

h3 { font-size: 1.5rem; line-height: 1.3; }

p { color: var(--muted); font-size: 1.125rem; margin-bottom: 1.5rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
  background: rgba(40, 179, 154, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; }
section { padding: 6rem 0; }

.section-divider {
  position: relative;
}
.section-divider::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(152, 176, 201, 0) 0%,
    rgba(152, 176, 201, 0.22) 50%,
    rgba(152, 176, 201, 0) 100%);
}

/* Nav (subpages) */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}
.site-nav .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav .brand span { color: var(--accent); }
.site-nav .links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
  transition: var(--transition);
}
.site-nav .links a:hover, .site-nav .links a.active { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent-gradient);
  color: #071310;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px rgba(40, 179, 154, 0.25);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(40, 179, 154, 0.4);
}
.btn.warm {
  background: var(--warm-gradient);
  color: #1c0e04;
  box-shadow: 0 4px 14px rgba(240, 138, 75, 0.25);
}
.btn.warm:hover { box-shadow: 0 8px 22px rgba(240, 138, 75, 0.4); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(40, 179, 154, 0.5);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(40, 179, 154, 0.12); box-shadow: none; }

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.logo-container {
  display: grid;
  place-items: center;
  padding: 2rem 0;
  position: relative;
  z-index: 1;
  animation: fadeIn 1s ease-in-out;
}
.logo-container svg {
  width: 100%;
  max-width: 280px;
  overflow: visible;
  filter: drop-shadow(0 0 20px rgba(240, 138, 75, 0.35));
  transition: var(--transition);
}
.logo-container svg:hover { transform: scale(1.03); }

.hero-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in-out 0.3s backwards;
  position: relative;
  z-index: 1;
}
.hero-text .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 1rem;
}
.hero-cta-row { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  color: var(--accent);
  cursor: pointer;
  z-index: 1;
  text-decoration: none;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

/* Feature panel (FloofClaw / Vellum) */
.feature-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.feature-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
}
.feature-panel.warm::before { background: var(--warm-gradient); }
.feature-panel h2 { margin-bottom: 1rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
}
.stat.warm .num { color: var(--accent-2); }
.stat.cool .num { color: var(--accent-3); }
.stat .label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.project-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(40, 179, 154, 0.35);
}
.project-card:hover::before { transform: scaleX(1); }
.project-card h3 { margin-top: 0; color: var(--text); }
.project-card p { margin-bottom: 1.5rem; font-size: 1rem; flex-grow: 1; }
.project-card .card-actions { margin-top: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.project-card .card-actions .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.project-card:hover .project-image { transform: scale(1.03); }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid rgba(40, 179, 154, 0.4);
  background: rgba(40, 179, 154, 0.08);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag.warm { color: var(--accent-2); border-color: rgba(240, 138, 75, 0.4); background: rgba(240, 138, 75, 0.08); }
.tag.cool { color: var(--accent-3); border-color: rgba(114, 167, 255, 0.4); background: rgba(114, 167, 255, 0.08); }

/* Deep-dive entries (projects page) */
.deep-dive {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem;
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}
.deep-dive h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.deep-dive .sub { font-size: 1.05rem; color: var(--text); font-style: italic; font-family: var(--font-display); }
.deep-dive ul { color: var(--muted); margin: 0 0 1.5rem 1.25rem; }
.deep-dive li { margin-bottom: 0.6rem; font-size: 1.05rem; }
.deep-dive li strong { color: var(--text); font-weight: 600; }
.deep-dive .dive-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.deep-dive img { max-width: 100%; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }

/* Inline links inside copy */
p a, li a {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
p a:hover, li a:hover { color: var(--accent); }

/* Subscribe */
.subscribe { text-align: center; padding: 8rem 0; }
.subscribe p { max-width: 500px; margin: 0 auto 2.5rem; }
.subscribe form {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  margin-top: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}
.subscribe form:hover { border-color: rgba(40, 179, 154, 0.4); }
.subscribe input[type="email"] {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 999px;
  outline: none;
  min-width: 300px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}
.subscribe input[type="email"]::placeholder { color: var(--muted); }
.subscribe .hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.subscribe button[type="submit"]:disabled {
  background: #3a444e;
  cursor: wait;
  transform: none;
  box-shadow: none;
  opacity: 0.82;
}
#notification {
  display: none;
  background: linear-gradient(135deg, #28b39a, #1d8a77);
  color: #071310;
  font-weight: 600;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 2rem auto;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.5s ease-out;
}

/* Footer */
.footer { padding: 4rem 0 0; text-align: center; }
.social-links { display: flex; justify-content: center; margin-bottom: 2rem; }
.x-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  transition: var(--transition);
  color: var(--text);
  text-decoration: none;
}
.x-link:hover { transform: translateY(-3px); border-color: rgba(40, 179, 154, 0.5); color: var(--accent); }
.x-icon { width: 18px; height: 18px; margin-right: 8px; }
.x-link span { font-size: 14px; font-weight: 500; }
.copyright {
  text-align: center;
  font-size: 0.875rem;
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--panel-border);
  margin-top: 3rem;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.active { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(152, 176, 201, 0.18); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(152, 176, 201, 0.3); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in { opacity: 1; transform: none; }
}

/* Mobile */
@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .project-grid { grid-template-columns: 1fr; }
  .feature-panel, .deep-dive { padding: 2rem 1.5rem; }
  .subscribe form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 90%;
    max-width: 400px;
    margin: 1rem auto;
    gap: 0.5rem;
    border-radius: var(--radius);
  }
  .subscribe input[type="email"] { min-width: 0; width: 100%; text-align: center; }
  .subscribe button[type="submit"] { width: 100%; }
  .container { padding: 0 1.5rem; }
  section { padding: 4rem 0; }
}
