/* ===========================
   NutorAI — Design tokens
   =========================== */
   :root {
    --bg: #0a0e1a;
    --bg-alt: #0d1224;
    --surface: rgba(255,255,255,0.03);
    --surface-border: rgba(255,255,255,0.08);
    --border-strong: rgba(140,120,255,0.25);
  
    --text: #f0f0ff;
    --text-muted: #9aa3c4;
    --text-faint: #6b7394;
  
    --purple: #9d8cff;
    --cyan: #5ce1ff;
    --pink: #ff8cc8;
    --amber: #ffc864;
  
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
  
    --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  }
  
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
  }
  
  a { color: inherit; text-decoration: none; }
  
  img { max-width: 100%; display: block; }
  
  /* ===========================
     Typography
     =========================== */
  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
  }
  
  h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.08; }
  h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
  h3 { font-size: 1.3rem; }
  
  .eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
  }
  
  .accent {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  /* ===========================
     Nav
     =========================== */
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10,14,26,0.7);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--surface-border);
  }
  
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
  }
  
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .nav-links {
    display: flex;
    gap: 28px;
    font-size: 0.92rem;
    color: var(--text-muted);
  }
  
  .nav-links a:hover { color: var(--text); }
  
  /* ===========================
     Hero
     =========================== */
  .hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
  }
  
  .hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
      linear-gradient(rgba(140,120,255,0.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(140,120,255,0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
    pointer-events: none;
  }

  .hero-cube {
    position: absolute;
    right: -10%;
    top: 42%;
    transform: translateY(-50%);
    width: min(480px, 52vw);
    max-width: none;
    height: auto;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    user-select: none;
  }
  
  .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
  }

  .hero-inner h1 {
    position: relative;
    isolation: isolate;
  }

  .hero-inner h1::before {
    content: '';
    position: absolute;
    left: -8%;
    top: 50%;
    transform: translateY(-50%);
    width: 110%;
    height: 160%;
    background: radial-gradient(
      ellipse at 25% 50%,
      var(--purple) 0%,
      var(--cyan) 42%,
      transparent 72%
    );
    filter: blur(72px);
    opacity: 0.17;
    z-index: -1;
    pointer-events: none;
  }
  
  .hero-sub {
    margin-top: 24px;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
  }
  
  .hero-cta {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  /* ===========================
     Buttons
     =========================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    border: 0.5px solid transparent;
  }
  
  .btn:active { transform: scale(0.98); }
  
  .btn-primary {
    background: var(--purple);
    color: #0a0e1a;
  }
  
  .btn-primary:hover { opacity: 0.88; }
  
  .btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(255,255,255,0.18);
  }
  
  .btn-ghost:hover { border-color: rgba(255,255,255,0.4); }
  
  /* ===========================
     Sections
     =========================== */
  .section { padding: 90px 0; }
  
  .section-alt {
    background: var(--bg-alt);
    border-top: 0.5px solid var(--surface-border);
    border-bottom: 0.5px solid var(--surface-border);
  }
  
  .section-head {
    max-width: 640px;
    margin-bottom: 56px;
  }
  
  .section-sub {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 1.02rem;
  }
  
  /* ===========================
     Project grid / cards
     =========================== */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
  
  .project-card {
    background: var(--surface);
    border: 0.5px solid var(--surface-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }
  
  .project-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
  }
  
  .project-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(140,120,255,0.10), rgba(0,220,255,0.05));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .media-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(157,140,255,0.35), rgba(92,225,255,0.2));
    border: 0.5px solid rgba(255,255,255,0.12);
    position: relative;
  }

  .media-placeholder[data-icon="grid"]::after {
    content: '';
    position: absolute;
    inset: 14px;
    background:
      linear-gradient(var(--purple) 1px, transparent 1px) 0 0 / 8px 8px,
      linear-gradient(90deg, var(--purple) 1px, transparent 1px) 0 0 / 8px 8px;
    opacity: 0.6;
  }

  .media-placeholder[data-icon="tool"]::after {
    content: '⚙';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    opacity: 0.7;
  }

  .media-placeholder[data-icon="wave"]::after {
    content: '〜';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--cyan);
    opacity: 0.8;
  }

  .media-placeholder[data-icon="leaf"]::after {
    content: '◆';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--cyan);
    opacity: 0.7;
  }

  .media-placeholder[data-icon="book"]::after {
    content: '▤';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--purple);
    opacity: 0.8;
  }

  .project-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
  }

  .project-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
  }

  .project-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 0.5px solid var(--surface-border);
  }

  .tag-live { color: var(--cyan); border-color: rgba(92,225,255,0.3); background: rgba(92,225,255,0.08); }
  .tag-soon { color: var(--amber); border-color: rgba(255,200,100,0.3); background: rgba(255,200,100,0.08); }
  .tag-demo { color: var(--pink); border-color: rgba(255,140,200,0.3); background: rgba(255,140,200,0.08); }

  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--purple);
    margin-top: 4px;
    transition: gap 0.15s ease;
  }

  .project-link:hover { gap: 10px; }
  .project-link.disabled { color: var(--text-faint); cursor: default; }
  .project-link.disabled:hover { gap: 6px; }

  /* ===========================
     Resources
     =========================== */
  .resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .resource-card {
    background: var(--surface);
    border: 0.5px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease;
  }

  .resource-card:hover { border-color: var(--border-strong); }

  .resource-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
  }

  .resource-meta {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
  }

  /* ===========================
     Contact
     =========================== */
  .contact-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  /* ===========================
     Footer
     =========================== */
  .footer {
    border-top: 0.5px solid var(--surface-border);
    padding: 40px 0;
    background: var(--bg-alt);
  }

  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
  }

  .footer-links {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .footer-links a:hover { color: var(--text); }

  .footer-copy {
    width: 100%;
    font-size: 0.82rem;
    color: var(--text-faint);
  }

  /* ===========================
     Responsive
     =========================== */
  @media (max-width: 640px) {
    .nav-links { gap: 18px; font-size: 0.85rem; }
    .hero { padding: 80px 0 70px; }
    .hero-cube {
      width: 200px;
      right: -28%;
      opacity: 0.14;
    }
    .hero-inner h1::before {
      width: 100%;
      filter: blur(48px);
      opacity: 0.14;
    }
    .section { padding: 70px 0; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
  }

.logo-img {
  width: 32px;
  height: auto;
  display: block;
}

.logo-img.small {
  width: 24px;
}