/* ============================================
   Bold Toad Foundation — v2 Dark Green Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --color-base:       #0F2B23;
  --color-base-light: #163D32;
  --color-surface:    #1A3C31;
  --color-surface-raised: #204A3D;
  --color-accent:     #C8E64A;
  --color-accent-dim: #A8C63A;
  --color-accent-soft: rgba(200, 230, 74, 0.12);
  --color-text:       #E8F0EC;
  --color-text-dim:   #9BB5AA;
  --color-text-muted: #6B8F80;
  --color-light-bg:   #F0EDE6;
  --color-light-surface: #FFFFFF;
  --color-light-text: #1A2E28;
  --color-light-dim:  #5A6E66;
  --color-light-border: #D4D0C8;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --max-width:    1140px;
  --nav-height:   72px;
  --radius:       8px;
  --radius-lg:    16px;
  --shadow-md:    0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg:    0 8px 40px rgba(0, 0, 0, 0.3);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body); color: var(--color-text);
  background: var(--color-base); line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent-dim); }

h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--color-text);
  line-height: 1.2; font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { max-width: 680px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--surface { background: var(--color-surface); }
.section--light {
  background: var(--color-light-bg); color: var(--color-light-text);
}
.section--light h2, .section--light h3, .section--light h4 { color: var(--color-light-text); }
.section--light p { color: var(--color-light-dim); }
.section--light .section-header__label { color: var(--color-base-light); }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(15, 43, 35, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 230, 74, 0.06);
  z-index: 1000; transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--color-text);
}
.logo-mark {
  width: 40px; height: 40px;
  transition: transform 0.3s var(--ease-out);
}
.nav__logo:hover .logo-mark { transform: scale(1.06) rotate(-3deg); }
.logo-mark img { width: 100%; height: 100%; }
.nav__logo-text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; letter-spacing: -0.02em;
}
.nav__links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--color-text-dim);
  letter-spacing: 0.01em; position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--color-accent);
  border-radius: 1px; transition: width 0.3s var(--ease-out);
}
.nav__links a:hover, .nav__links a.active { color: var(--color-accent); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--color-text);
  border-radius: 2px; transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 96px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 230, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: var(--color-accent-soft);
  border: 1px solid rgba(200, 230, 74, 0.2); border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: var(--color-accent);
  letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 24px;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.hero__badge::before {
  content: ''; width: 7px; height: 7px;
  background: var(--color-accent); border-radius: 50%;
}
.hero h1 { margin-bottom: 24px; animation: fadeUp 0.6s 0.1s var(--ease-out) both; }
.hero h1 .accent { color: var(--color-accent); font-style: italic; }
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--color-text-dim);
  margin-bottom: 40px; animation: fadeUp 0.6s 0.2s var(--ease-out) both;
}
.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s var(--ease-out) both;
}

/* Hero with mascot (split layout) */
.hero--split .container {
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
}
.hero--split .hero__content { flex: 1; min-width: 0; }
.hero__mascot {
  flex-shrink: 0; width: 320px;
  animation: fadeUp 0.8s 0.2s var(--ease-out) both;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
  transition: transform 0.4s var(--ease-out);
}
.hero__mascot:hover { transform: scale(1.04) rotate(-2deg); }
.hero__mascot img { width: 100%; height: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s var(--ease-out);
}
.btn--primary { background: var(--color-accent); color: var(--color-base); }
.btn--primary:hover {
  background: var(--color-accent-dim); color: var(--color-base);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent; color: var(--color-text);
  border: 1.5px solid rgba(200, 230, 74, 0.25);
}
.btn--secondary:hover {
  border-color: var(--color-accent); color: var(--color-accent);
  transform: translateY(-2px);
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(200, 230, 74, 0.08);
  border-radius: var(--radius-lg); padding: 36px;
  transition: all 0.3s var(--ease-out);
}
.card:hover {
  border-color: rgba(200, 230, 74, 0.2);
  box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.card--light {
  background: var(--color-light-surface);
  border: 1px solid var(--color-light-border);
}
.card--light:hover {
  border-color: var(--color-base-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.card--light h3 { color: var(--color-light-text); }
.card--light p { color: var(--color-light-dim); }

.card__icon {
  width: 48px; height: 48px; background: var(--color-accent-soft);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px; font-size: 1.4rem;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-text-dim); font-size: 0.95rem; }

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --- Project Card --- */
.project-card {
  background: var(--color-surface);
  border: 1px solid rgba(200, 230, 74, 0.1);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.project-card__header {
  background: var(--color-base-light);
  padding: 40px 36px; position: relative; overflow: hidden;
}
.project-card__header::after {
  content: ''; position: absolute; bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(200, 230, 74, 0.08); border-radius: 50%;
}
.project-card__status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: var(--color-accent-soft);
  border-radius: 100px; font-size: 0.78rem; font-weight: 600;
  color: var(--color-accent); letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 16px;
}
.project-card__status::before {
  content: ''; width: 6px; height: 6px;
  background: var(--color-accent); border-radius: 50%;
  animation: pulse 2s infinite;
}
.project-card__header h3 { font-size: 1.6rem; margin-bottom: 8px; }
.project-card__header p { color: var(--color-text-dim); font-size: 0.95rem; }
.project-card__body { padding: 36px; }
.project-card__body p { color: var(--color-text-dim); margin-bottom: 16px; }
.project-card__features { list-style: none; margin-top: 20px; }
.project-card__features li {
  padding: 8px 0; font-size: 0.92rem; color: var(--color-text);
  display: flex; align-items: flex-start; gap: 10px;
}
.project-card__features li::before {
  content: '→'; color: var(--color-accent); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* --- Section Headers --- */
.section-header { margin-bottom: 56px; }
.section-header__label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--color-text-dim); font-size: 1.05rem; }

/* --- Values --- */
.value-item { padding: 32px 0; border-bottom: 1px solid rgba(200, 230, 74, 0.08); }
.value-item:last-child { border-bottom: none; }
.value-item h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.value-item p { color: var(--color-text-dim); font-size: 0.95rem; }
.section--light .value-item { border-bottom-color: var(--color-light-border); }
.section--light .value-item p { color: var(--color-light-dim); }

/* --- Team --- */
.team-card {
  display: flex; gap: 36px; align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid rgba(200, 230, 74, 0.08);
  border-radius: var(--radius-lg); padding: 40px;
}
.team-card__icon {
  width: 72px; height: 72px; flex-shrink: 0;
  background: var(--color-accent-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.team-card h3 { margin-bottom: 4px; }
.team-card__role {
  font-size: 0.88rem; font-weight: 600; color: var(--color-accent);
  letter-spacing: 0.02em; margin-bottom: 16px; display: block;
}
.team-card p { color: var(--color-text-dim); font-size: 0.95rem; }

/* --- Science Block --- */
.science-block {
  background: var(--color-surface);
  border: 1px solid rgba(200, 230, 74, 0.1);
  border-radius: var(--radius-lg); padding: 40px;
  border-left: 4px solid var(--color-accent);
}
.science-block p { color: var(--color-text-dim); }
.science-block__cite {
  font-size: 0.82rem; color: var(--color-text-muted);
  font-style: italic; margin-top: 16px;
}

/* --- Support Notice --- */
.support-notice {
  background: var(--color-surface);
  border: 1px solid rgba(200, 230, 74, 0.1);
  border-radius: var(--radius-lg); padding: 48px;
  text-align: center; max-width: 720px; margin: 0 auto;
}
.support-notice h3 { margin-bottom: 16px; }
.support-notice p { color: var(--color-text-dim); font-size: 0.95rem; margin: 0 auto 12px; }
.support-notice__legal {
  font-size: 0.85rem; color: var(--color-text-muted);
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(200, 230, 74, 0.08);
  max-width: 100%;
}

/* --- Contact --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block h4 {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 8px;
}
.contact-block p { color: var(--color-text-dim); font-size: 0.95rem; line-height: 1.6; }
.contact-note {
  background: var(--color-surface); border-radius: var(--radius-lg);
  padding: 36px; border: 1px solid rgba(200, 230, 74, 0.1);
}
.contact-note h3 { margin-bottom: 12px; }
.contact-note p { color: var(--color-text-dim); font-size: 0.95rem; }

/* --- Footer --- */
.footer {
  background: var(--color-base-light); padding: 48px 0;
  color: var(--color-text-muted); font-size: 0.88rem;
  border-top: 1px solid rgba(200, 230, 74, 0.06);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer__logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--color-text); text-decoration: none;
}
.footer__logo .logo-mark { width: 28px; height: 28px; }
.footer__logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.footer__links { display: flex; gap: 24px; list-style: none; }
.footer__links a { color: var(--color-text-muted); font-size: 0.85rem; }
.footer__links a:hover { color: var(--color-accent); }
.footer__legal {
  width: 100%; text-align: center;
  padding-top: 24px; margin-top: 24px;
  border-top: 1px solid rgba(200, 230, 74, 0.06); font-size: 0.82rem;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links {
    display: none; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--color-base); flex-direction: column;
    padding: 24px; border-bottom: 1px solid rgba(200, 230, 74, 0.1);
    gap: 16px; box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-height) + 48px); padding-bottom: 64px; }
  .section { padding: 64px 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }
  .hero--split .container { flex-direction: column; text-align: center; }
  .hero--split .hero__content p { margin-left: auto; margin-right: auto; }
  .hero__mascot { width: 220px; order: -1; }
  .team-card { flex-direction: column; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card, .project-card__header, .project-card__body, .team-card { padding: 24px; }
}
