/* ===================================================
   TaskLabX — Cursor-Inspired Warm Minimalism
   Design system: warm cream canvas, editorial serif,
   compressed gothic headlines, atmospheric shadows
   =================================================== */

:root {
  --bg: #f2f1ed;
  --bg-light: #f7f7f4;
  --bg-mid: #ebeae5;
  --bg-strong: #e6e5e0;
  --bg-dark: #e1e0db;
  --text: #26251e;
  --text-secondary: rgba(38, 37, 30, 0.55);
  --text-tertiary: rgba(38, 37, 30, 0.4);
  --heading-color: #26251e;
  --accent-color: #f54e00;
  --hover-color: #cf2d56;
  --border: rgba(38, 37, 30, 0.1);
  --border-strong: rgba(38, 37, 30, 0.18);
  --success-color: #1a7a42;
  --error-color: #c93545;
  --shadow-lg: rgba(0,0,0,0.14) 0px 28px 70px, rgba(0,0,0,0.1) 0px 14px 32px;
  --shadow-md: rgba(0,0,0,0.08) 0px 14px 40px, rgba(0,0,0,0.05) 0px 6px 16px;
  --shadow-sm: rgba(0,0,0,0.06) 0px 4px 12px;
  --radius-lg: 1rem;
  --radius-md: 0.5rem;
  --radius-pill: 9999px;
  --transition: 0.22s ease;
  --font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Lora', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--hover-color);
}

p,
li,
label,
input,
textarea,
button {
  color: var(--text);
}

p {
  color: var(--text-secondary);
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-display);
  color: var(--heading-color);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  letter-spacing: -0.04em;
}

h2 {
  letter-spacing: -0.035em;
}

section h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

ul {
  list-style-position: outside;
}

/* === Container === */

.container {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

/* === Navbar === */

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 241, 237, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 1.5rem;
}

.nav-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.accent,
.gradient-text {
  color: var(--accent-color);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
}

.navbar a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 400;
  transition: color var(--transition);
}

.navbar a:hover,
.navbar a:focus-visible {
  color: var(--hover-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-user-email {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--bg-mid);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-display);
}

.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--bg-mid);
}

/* Benchmark dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-link {
  padding-right: 0.3rem !important;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem 0.5rem 0.5rem 0.15rem;
  font-size: 0.7rem;
  line-height: 1;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown-toggle:hover {
  color: var(--hover-color);
  background: var(--bg-mid);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: rgba(0,0,0,0.14) 0px 14px 32px, rgba(0,0,0,0.06) 0px 4px 12px;
  min-width: 160px;
  z-index: 30;
}

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

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-mid);
  color: var(--hover-color);
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--bg-light);
}

.nav-toggle-label span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--text);
  border-radius: var(--radius-pill);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-label span + span {
  margin-top: 0.28rem;
}

/* === Hero === */

.hero,
.page-header {
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 10rem 1.5rem 8rem;
  text-align: center;
  min-height: min(80vh, 720px);
  display: grid;
  place-items: center;
  background: var(--bg);
}

/* Hide cyberpunk background elements */
.hero-bg {
  display: none;
}

.shape,
.shape-1,
.shape-2,
.shape-3,
.particles {
  display: none;
}

.hero::before,
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245, 78, 0, 0.04), transparent 60%);
  pointer-events: none;
}

.hero-content,
.footer-content,
.feature-grid,
.stats-grid,
.about-grid,
.philosophy-grid,
.agents-grid,
.contact-grid,
.island-grid {
  display: grid;
  gap: 2rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(800px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero h1,
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero p,
.subtitle,
.tagline {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.75;
}

.tagline,
.subtitle {
  max-width: 640px;
  margin: 0 auto;
}

.page-header {
  padding: 5rem 0 3rem;
  text-align: center;
  background: var(--bg);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

/* === Sections === */

.features,
.stats,
.about-content,
.services-content,
.agents-content,
.contact-content,
.island-content,
.news-content,
.projects-content,
.philosophy-section,
.island-section {
  padding: 5rem 0;
}

.feature-grid,
.stats-grid,
.philosophy-grid,
.about-grid,
.contact-grid,
.island-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.agents-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.about-grid {
  align-items: center;
}

.about-text {
  display: grid;
  gap: 1.25rem;
}

.about-text p {
  font-size: 1.02rem;
}

.philosophy-grid,
.island-features,
.footer-content {
  margin-top: 2rem;
}

.footer-content {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* === Cards === */

.feature-card,
.service-card,
.agent-card,
.philosophy-card,
.contact-form-wrapper,
.contact-info,
.stat-item,
.island-card,
.island-feature,
.about-visual,
.island-cta {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-strong);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover,
.service-card:hover,
.agent-card:hover,
.philosophy-card:hover,
.stat-item:hover,
.island-card:hover,
.island-feature:hover,
.contact-info:hover,
.contact-form-wrapper:hover,
.about-visual:hover,
.island-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.feature-card,
.agent-card,
.stat-item,
.island-card {
  text-align: center;
}

/* === Icons === */

.feature-icon,
.contact-icon,
.island-icon,
.service-icon {
  font-size: 1.5rem;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 8px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
}

.service-card ul,
.footer-section ul {
  padding-left: 1.25rem;
}

.service-card li,
.footer-section li,
.island-section li {
  color: var(--text-secondary);
}

/* === Buttons === */

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible {
  color: var(--hover-color);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--hover-color);
  color: var(--bg);
  border-color: var(--hover-color);
}

.btn-secondary {
  background: var(--bg-mid);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--hover-color);
  background: var(--bg-strong);
}

.btn-full {
  width: 100%;
}

/* === Agents === */

.agent-avatar img {
  width: min(180px, 100%);
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.avatar-placeholder {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-dark);
  color: var(--accent-color);
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* === Stats === */

.stats-grid {
  align-items: stretch;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--heading-color);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* === About === */

.about-visual {
  min-height: 100%;
}

.about-visual svg,
.island-graphic svg {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* === Island === */

.island-section {
  margin-top: 2rem;
}

.island-features {
  display: grid;
  gap: 1rem;
}

.island-section .island-features {
  padding-left: 0;
  list-style: none;
}

.island-section .island-features li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.island-section .island-features span {
  flex: 0 0 auto;
}

.island-content .island-features {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.island-feature {
  text-align: center;
}

.island-activity,
.agent-bio,
.contact-item p {
  color: var(--text-secondary);
}

.island-cta {
  margin-top: 2rem;
  text-align: center;
}

/* === CTA Section === */

.cta-section {
  margin-top: 2.5rem;
  padding: 2.25rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-strong);
  box-shadow: var(--shadow-sm);
}

.cta-section p {
  max-width: 44rem;
  margin: 0 auto 1.5rem;
}

/* === Island Badge === */

.island-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.island-badge p {
  margin: 0;
}

.no-agents {
  grid-column: 1 / -1;
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

/* === Contact === */

.contact-grid {
  align-items: start;
}

.contact-info,
.contact-form-wrapper {
  height: 100%;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.contact-item:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  background: var(--bg-mid);
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* === Forms === */

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.55rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-light);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-tertiary);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(245, 78, 0, 0.1);
}

/* === Messages === */

.success-message,
.error-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.success-message {
  color: var(--success-color);
  background: rgba(26, 122, 66, 0.06);
  border: 1px solid rgba(26, 122, 66, 0.2);
}

.error-message {
  color: var(--error-color);
  background: rgba(201, 53, 69, 0.06);
  border: 1px solid rgba(201, 53, 69, 0.2);
}

/* === Footer === */

.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  color: var(--text-secondary);
}

.footer-content {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.footer-section {
  display: grid;
  gap: 0.9rem;
}

.footer-section h4,
.footer-section h3 {
  color: var(--heading-color);
  font-weight: 500;
}

.footer-section ul {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  padding-left: 0;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-section a:hover,
.footer-section a:focus-visible {
  color: var(--hover-color);
}

.footer-bottom {
  width: min(1200px, 100%);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* === News Page === */

.stock-ticker-section {
  padding: 0 0 2rem;
}

.stock-ticker {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-strong);
  box-shadow: var(--shadow-sm);
}

.stock-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.stock-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.stock-update {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
}

.stock-data {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.stock-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.stock-price .price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--heading-color);
}

.stock-price .change {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
}

.stock-price .change.positive {
  color: var(--success-color);
}

.stock-price .change.negative {
  color: var(--error-color);
}

.stock-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stock-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stock-meta-item .label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stock-meta-item .value {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text);
}

.stock-news {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stock-news .news-label {
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-display);
}

.news-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.news-intro .btn {
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.news-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.news-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-strong);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.news-source {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
}

.news-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.news-tag-nvidia {
  background: rgba(118, 185, 0, 0.08);
  border-color: rgba(118, 185, 0, 0.25);
  color: #5a8a00;
}

.news-tag-openclaw {
  background: rgba(245, 78, 0, 0.08);
  border-color: rgba(245, 78, 0, 0.25);
  color: var(--accent-color);
}

.news-tag-ai-models {
  background: rgba(157, 78, 221, 0.08);
  border-color: rgba(157, 78, 221, 0.25);
  color: #7b3db8;
}

.news-tag-developer-tools {
  background: rgba(0, 120, 212, 0.08);
  border-color: rgba(0, 120, 212, 0.25);
  color: #0068b8;
}

.news-tag-industry {
  background: rgba(38, 37, 30, 0.06);
  border-color: var(--border);
  color: var(--text-secondary);
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
}

.news-card-footer a {
  color: var(--accent-color);
  font-weight: 500;
}

.news-card-footer a:hover {
  color: var(--hover-color);
}

/* === Projects Page === */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.project-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-strong);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.project-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.project-status {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  background: rgba(26, 122, 66, 0.08);
  color: var(--success-color);
  border: 1px solid rgba(26, 122, 66, 0.25);
  font-family: var(--font-display);
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-launch:hover {
  background: var(--hover-color);
  color: var(--bg);
  border-color: var(--hover-color);
  box-shadow: var(--shadow-sm);
}

/* Iframe Modal Overlay */
.project-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
}

.project-overlay.active {
  display: block;
}

.project-overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* === Agents Filter === */

.agents-filter {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-search {
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(245, 78, 0, 0.1);
}

.filter-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-mid);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.filter-tag:hover {
  color: var(--hover-color);
  border-color: var(--border-strong);
}

.filter-tag.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.filter-stats {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.agent-card.hidden {
  display: none;
}

.no-results {
  grid-column: 1 / -1;
  padding: 1.5rem;
  text-align: center;
  border-radius: 8px;
  background: var(--bg-light);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

/* Agent card detail elements */
.agent-card-header {
  margin-bottom: 1rem;
}

.agent-badges {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.provider-badge,
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-display);
  border: 1px solid var(--border);
}

.status-badge {
  background: var(--bg-mid);
  color: var(--text-secondary);
}

.provider-openrouter {
  background: rgba(26, 122, 66, 0.08);
  border-color: rgba(26, 122, 66, 0.25);
  color: var(--success-color);
}

.provider-codex {
  background: rgba(245, 78, 0, 0.08);
  border-color: rgba(245, 78, 0, 0.25);
  color: var(--accent-color);
}

.provider-anthropic {
  background: rgba(157, 78, 221, 0.08);
  border-color: rgba(157, 78, 221, 0.25);
  color: #7b3db8;
}

.provider-unknown {
  background: var(--bg-mid);
  border-color: var(--border);
  color: var(--text-tertiary);
}

.agent-card-body {
  display: grid;
  gap: 0.5rem;
}

.agent-name {
  font-size: 1.1rem;
  font-weight: 500;
}

.agent-role {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
}

.agent-model-info {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  padding: 0.4rem 0.6rem;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-label {
  font-weight: 500;
}

.agent-activity {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
}

.activity-label {
  font-weight: 500;
}

/* === Animations === */

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-1rem); }
  100% { transform: translateY(0); }
}

.floating-shapes {
  display: none;
}

.floating-shapes img {
  display: none;
}

/* === Responsive: Tablet === */

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .nav-user-email {
    justify-content: center;
    width: 100%;
  }

  .nav-container {
    position: relative;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    margin-top: 1rem;
    padding: 0.6rem;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 6px;
  }

  .nav-links a:hover {
    background: var(--bg-mid);
  }

  .nav-dropdown {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-link {
    flex: 1;
  }

  .nav-dropdown-toggle {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1rem;
  }

  .nav-dropdown-menu a {
    padding: 0.6rem 1rem;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .container {
    width: min(100% - 1.5rem, 1200px);
  }

  .hero,
  .page-header {
    padding-top: 4.5rem;
  }

  .hero {
    padding-bottom: 5rem;
    min-height: auto;
  }

  .features,
  .stats,
  .about-content,
  .services-content,
  .agents-content,
  .contact-content,
  .island-content,
  .news-content,
  .projects-content,
  .philosophy-section,
  .island-section {
    padding: 3.5rem 0;
  }

  .feature-grid,
  .services-grid,
  .stats-grid,
  .about-grid,
  .philosophy-grid,
  .agents-grid,
  .contact-grid,
  .footer-content,
  .island-grid,
  .island-content .island-features,
  .news-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .agents-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-card,
  .service-card,
  .agent-card,
  .philosophy-card,
  .contact-form-wrapper,
  .contact-info,
  .stat-item,
  .island-card,
  .island-feature,
  .about-visual,
  .island-cta {
    padding: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn,
  .cta-section .btn,
  .island-cta .btn {
    width: 100%;
  }
}

/* === Responsive: Mobile === */

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }

  .hero {
    min-height: auto;
    padding: 5rem 0;
  }

  .hero h1,
  .page-header h1 {
    font-size: 1.9rem;
  }

  .hero p,
  .subtitle,
  .agent-bio,
  .contact-item p {
    font-size: 0.95rem;
  }

  .logo {
    font-size: 1.2rem;
  }
}
