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

  :root {
    --bg-deep:    #080d1a;
    --bg-card:    #0d1528;
    --bg-glass:   rgba(13,21,40,0.72);
    --blue:       #2f80ff;
    --blue-glow:  rgba(47,128,255,0.22);
    --purple:     #9b5de5;
    --purple-glow:rgba(155,93,229,0.22);
    --cyan:       #00d4ff;
    --text-pri:   #f0f4ff;
    --text-sec:   #8a9bbf;
    --text-muted: #4a5878;
    --border:     rgba(255,255,255,0.06);
    --border-hi:  rgba(47,128,255,0.3);
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  22px;
    --transition: 0.32s cubic-bezier(.4,0,.2,1);
  }

  html { scroll-behavior: smooth; overflow-x: hidden; }

  body {
    font-family: 'Epilogue', sans-serif;
    background: var(--bg-deep);
    color: var(--text-pri);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
  }

  /* ─── NOISE TEXTURE ─── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
  }

  /* ─── GLOBAL GLOW ORBS ─── */
  .orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
  }
  .orb-1 { width: 600px; height: 600px; background: rgba(47,128,255,0.08); top: -200px; left: -200px; }
  .orb-2 { width: 500px; height: 500px; background: rgba(155,93,229,0.09); bottom: 10%; right: -150px; }
  .orb-3 { width: 350px; height: 350px; background: rgba(0,212,255,0.05); top: 50%; left: 40%; }

  /* ─── NAVBAR ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: rgba(8,13,26,0.88);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.6s ease both;
    overflow: visible;
  }

  @keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

  .nav-logo {
    display: flex; align-items: center; gap: 5px;
    text-decoration: none; flex-shrink: 0;
  }
  .nav-logo-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .nav-logo-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(90deg, #fff 30%, var(--blue) 70%, var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
  }

  .nav-links {
    display: flex; align-items: center; gap: 0.2rem;
    list-style: none;
  }
  .nav-links a {
    display: block;
    padding: 6px 14px;
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    letter-spacing: 0.01em;
  }
  .nav-links a:hover { color: var(--text-pri); background: rgba(255,255,255,0.05); }
  .nav-links a.active { color: var(--blue); }

  .nav-cta {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff; border: none; padding: 8px 18px;
    border-radius: var(--radius-sm); font-family: 'Epilogue', sans-serif;
    font-weight: 600; font-size: 0.85rem; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    transition: opacity var(--transition), box-shadow var(--transition);
    letter-spacing: 0.01em;
  }
  .nav-cta:hover { opacity: 0.88; box-shadow: 0 0 22px var(--blue-glow); }

  /* ─── HERO ─── */
  .hero {
    position: relative; z-index: 1;
    min-height: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: 100px 2rem 3.5rem;
    overflow: hidden;
  }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(47,128,255,0.1);
    border: 1px solid rgba(47,128,255,0.25);
    border-radius: 100px;
    padding: 5px 14px 5px 10px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--blue); letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    animation: fadeUp 0.6s 0.2s ease both;
  }
  .hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 1.8s infinite; }
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(0.7)} }

  .hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 820px;
    animation: fadeUp 0.7s 0.35s ease both;
    margin-bottom: 1rem;
  }
  .hero h1 .grad {
    background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 40%, var(--purple) 80%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }

  .hero-sub {
    color: var(--text-sec); font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 560px; font-weight: 400;
    animation: fadeUp 0.7s 0.5s ease both;
    margin-bottom: 1.4rem;
  }

  /* Hero Search */
  .hero-search-wrap {
    width: 100%; max-width: 560px;
    animation: fadeUp 0.7s 0.62s ease both;
    margin-bottom: 1.4rem;
  }
  .hero-search {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 13px 16px; gap: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
    backdrop-filter: blur(10px);
  }
  .hero-search:focus-within {
    border-color: var(--border-hi);
    box-shadow: 0 0 0 4px rgba(47,128,255,0.08);
  }
  .hero-search svg { color: var(--text-muted); flex-shrink: 0; }
  .hero-search input {
    background: none; border: none; outline: none;
    color: var(--text-pri); font-family: 'Epilogue', sans-serif;
    font-size: 1rem; width: 100%;
  }
  .hero-search input::placeholder { color: var(--text-muted); }
  .hero-search-btn {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff; border: none; border-radius: 9px;
    padding: 8px 18px; font-family: 'Epilogue', sans-serif;
    font-weight: 600; font-size: 0.88rem; cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
    transition: opacity var(--transition);
  }
  .hero-search-btn:hover { opacity: 0.85; }

  .hero-btns {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
    animation: fadeUp 0.7s 0.75s ease both;
    margin-bottom: 1.8rem;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff; text-decoration: none; border: none;
    padding: 13px 28px; border-radius: var(--radius-md);
    font-family: 'Epilogue', sans-serif; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; letter-spacing: 0.01em;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 4px 24px rgba(47,128,255,0.3);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(47,128,255,0.45); }

  .btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-pri); text-decoration: none;
    padding: 13px 28px; border-radius: var(--radius-md);
    font-family: 'Epilogue', sans-serif; font-weight: 500; font-size: 0.95rem;
    cursor: pointer; letter-spacing: 0.01em;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    backdrop-filter: blur(8px);
  }
  .btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }

  /* Visitor Counter */
  .visitor-counter {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(13,21,40,0.7);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 18px;
    animation: fadeUp 0.7s 0.9s ease both;
    backdrop-filter: blur(12px);
  }
  .visitor-dot { width: 8px; height: 8px; border-radius: 50%; background: #22d15b; flex-shrink: 0; box-shadow: 0 0 8px rgba(34,209,91,0.6); animation: pulse 2s infinite; }
  .visitor-text { font-size: 0.85rem; color: var(--text-sec); letter-spacing: 0.01em; }
  .visitor-count {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.08rem;
    background: linear-gradient(90deg, #22d15b, #00f589);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.15s cubic-bezier(.4,0,.2,1);
  }
  .visitor-count.bump { transform: scale(1.2); }

  /* Hero scroll indicator */
  .hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    animation: fadeUp 0.7s 1.1s ease both;
    opacity: 0.4;
  }
  .hero-scroll span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
  .scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--text-muted), transparent); animation: scrollAnim 2s ease infinite; }
  @keyframes scrollAnim { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }


  /* ── HERO SUBTLE ALIVE EFFECTS ── */

  /* Mouse-tracking glow */
  .hero-mouse-glow {
    position: absolute; width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47,128,255,0.08) 0%, rgba(155,93,229,0.04) 50%, transparent 70%);
    pointer-events: none; z-index: 0;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    transition: left 1.4s cubic-bezier(0.23,1,0.32,1), top 1.4s cubic-bezier(0.23,1,0.32,1);
    will-change: left, top;
  }

  /* Aurora blobs scoped to hero */
  .hero-aurora {
    position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  }
  .aurora-blob {
    position: absolute; border-radius: 50%;
    filter: blur(110px);
  }
  .aurora-blob-1 {
    width: 580px; height: 580px; opacity: 0.45;
    background: radial-gradient(circle, rgba(47,128,255,0.5) 0%, transparent 70%);
    top: -180px; left: -120px;
    animation: auroraA 20s ease-in-out infinite alternate;
  }
  .aurora-blob-2 {
    width: 480px; height: 480px; opacity: 0.35;
    background: radial-gradient(circle, rgba(155,93,229,0.55) 0%, transparent 70%);
    bottom: -100px; right: -80px;
    animation: auroraB 26s ease-in-out infinite alternate;
  }
  .aurora-blob-3 {
    width: 320px; height: 320px; opacity: 0.25;
    background: radial-gradient(circle, rgba(0,212,255,0.5) 0%, transparent 70%);
    top: 45%; left: 38%;
    animation: auroraC 16s ease-in-out infinite alternate;
  }
  @keyframes auroraA {
    0%   { transform: translate(0,0)       scale(1); }
    100% { transform: translate(60px,40px) scale(1.12); }
  }
  @keyframes auroraB {
    0%   { transform: translate(0,0)        scale(1); }
    100% { transform: translate(-50px,-40px) scale(1.15); }
  }
  @keyframes auroraC {
    0%   { transform: translate(0,0);  }
    100% { transform: translate(-40px, 35px) scale(1.2); }
  }

  /* Animated gradient on .grad text */
  .hero h1 .grad {
    background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 25%, var(--purple) 55%, var(--blue) 80%, var(--cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: gradFlow 6s linear infinite;
  }
  @keyframes gradFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
  }

  /* ─── SECTION LAYOUT ─── */
  section { position: relative; z-index: 1; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

  .section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--blue);
    margin-bottom: 0.8rem;
  }
  .section-label::before { content: ''; width: 20px; height: 2px; background: var(--blue); border-radius: 2px; }

  .section-title {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.025em; line-height: 1.1;
    margin-bottom: 0.7rem;
  }
  .section-sub { color: var(--text-sec); font-size: 1rem; max-width: 500px; }

  .section-head { margin-bottom: 2rem; }
  .section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

  .view-all {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--blue); text-decoration: none; font-weight: 600; font-size: 0.88rem;
    transition: gap var(--transition), opacity var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .view-all:hover { gap: 10px; opacity: 0.8; }

  /* ─── BLOG SECTION ─── */
  #blog { padding: 3.5rem 0; }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }

  .blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    animation: fadeUp 0.7s ease both;
    cursor: pointer;
  }
  .blog-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-hi);
    box-shadow: 0 12px 48px var(--blue-glow), 0 0 0 1px var(--border-hi);
  }

  .card-img-wrap {
    position: relative; overflow: hidden;
    height: 200px;
    background-color: #0d1528;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.55s ease;
  }
  .blog-card:hover .card-img-wrap { transform: scale(1.04); }
  .card-img-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(8,13,26,0.82) 0%, rgba(8,13,26,0.2) 55%, transparent 100%);
  }
  .card-img-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 12px; border-radius: 100px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; backdrop-filter: blur(8px);
    white-space: nowrap;
  }
  .tag-ai       { background: rgba(47,128,255,0.3);  color: #7eb8ff; border: 1px solid rgba(47,128,255,0.45); }
  .tag-robotics { background: rgba(0,212,255,0.2);   color: var(--cyan); border: 1px solid rgba(0,212,255,0.38); }
  .tag-research { background: rgba(155,93,229,0.28); color: #cba4ff; border: 1px solid rgba(155,93,229,0.45); }
  /* Shimmer on image area */
  .card-img-wrap::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.025) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
  }
  @keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

  .card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; min-width: 0; }

  .card-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    color: var(--text-muted); font-size: 0.76rem; font-weight: 500;
    margin-bottom: 0.75rem;
  }
  .card-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }

  .card-title {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    font-size: 1.05rem; line-height: 1.32;
    letter-spacing: -0.01em; color: var(--text-pri);
    margin-bottom: 0.7rem;
    transition: color var(--transition);
    /* Clamp to 3 lines max to prevent layout break */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-card:hover .card-title { color: #fff; }

  .card-excerpt {
    color: var(--text-sec); font-size: 0.865rem;
    line-height: 1.68; flex: 1;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid var(--border); padding-top: 1rem;
    flex-shrink: 0;
  }

  .card-author { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
  .author-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.62rem; font-weight: 700; color: #fff; flex-shrink: 0;
  }
  .author-name { font-size: 0.78rem; font-weight: 600; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .card-read-more {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    color: var(--blue); text-decoration: none; font-weight: 600;
    font-size: 0.82rem; transition: gap var(--transition);
    white-space: nowrap;
  }
  .card-read-more:hover { gap: 9px; }

  /* ─── TRENDING ─── */
  #trending { padding: 5rem 0; }
  .trending-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
  }
  .trending-item {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1.3rem 1.8rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: pointer;
    position: relative;
  }
  .trending-item:last-child { border-bottom: none; }
  .trending-item:hover { background: rgba(255,255,255,0.025); }

  @keyframes trendSlideIn {
    from { opacity: 0; transform: translateY(-52px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes newFlash {
    0%,100% { background: transparent; }
    25%     { background: rgba(47,128,255,0.08); }
    55%     { background: transparent; }
    75%     { background: rgba(47,128,255,0.05); }
  }
  .trending-item.entering {
    animation: trendSlideIn 0.52s cubic-bezier(0.22,1,0.36,1) forwards,
               newFlash 2.6s 0.52s ease forwards;
  }

  .trend-num {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
    font-size: 1.6rem; line-height: 1;
    color: var(--text-muted); min-width: 36px;
    transition: color var(--transition);
  }
  .trending-item:hover .trend-num { color: var(--blue); }

  .trend-bar {
    width: 3px; height: 40px; border-radius: 3px; flex-shrink: 0;
    background: linear-gradient(to bottom, var(--blue), var(--purple));
    opacity: 0.25;
    transition: opacity var(--transition);
  }
  .trending-item:hover .trend-bar { opacity: 0.8; }

  .trend-content { flex: 1; min-width: 0; }
  .trend-title {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    font-size: 0.98rem; color: var(--text-pri);
    margin-bottom: 3px; line-height: 1.3;
    letter-spacing: -0.01em;
  }
  .trend-sub { color: var(--text-muted); font-size: 0.8rem; }

  .trend-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .trend-views {
    font-size: 0.75rem; color: var(--text-muted); font-weight: 500;
    white-space: nowrap; letter-spacing: 0.02em;
    transition: color 0.4s;
  }
  .trend-views.bump { color: var(--cyan); }

  .trend-arrow {
    color: var(--text-muted); flex-shrink: 0;
    transition: color var(--transition), transform var(--transition);
  }
  .trending-item:hover .trend-arrow { color: var(--blue); transform: translateX(4px); }

  .trend-new-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.28);
    color: var(--cyan);
    border-radius: 100px;
    padding: 2px 9px;
    font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; flex-shrink: 0;
    animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
  }
  .trend-new-badge-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--cyan);
    animation: pulse 1.4s infinite;
  }
  @keyframes badgePop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
  }

  .trend-live {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,60,60,0.1);
    border: 1px solid rgba(255,60,60,0.25);
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; color: #ff6b6b;
    margin-left: 8px; vertical-align: middle;
  }
  .trend-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #ff4444; animation: pulse 1.1s infinite;
  }

  .trend-updated {
    font-size: 0.75rem; color: var(--text-muted);
    margin-top: 3px;
  }

  .trend-toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(72px);
    z-index: 9000;
    background: rgba(13,21,40,0.97);
    border: 1px solid rgba(0,212,255,0.22);
    border-radius: 12px;
    padding: 11px 20px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,212,255,0.08);
    backdrop-filter: blur(20px);
    font-size: 0.84rem; color: var(--text-pri);
    transition: transform 0.42s cubic-bezier(0.22,1,0.36,1), opacity 0.42s ease;
    opacity: 0; pointer-events: none; white-space: nowrap;
  }
  .trend-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

  /* ─── NEWSLETTER ─── */
  #newsletter { padding: 3rem 0 4.5rem; }

  .nl-wrap {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #080f20;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 0 0 1px rgba(47,128,255,0.08), 0 40px 100px rgba(0,0,0,0.5);
  }

  /* Animated gradient mesh background */
  .nl-bg {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
  }
  .nl-bg::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47,128,255,0.18) 0%, transparent 65%);
    top: -200px; left: -150px;
    animation: nlFloat1 8s ease-in-out infinite;
  }
  .nl-bg::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155,93,229,0.18) 0%, transparent 65%);
    bottom: -180px; right: -100px;
    animation: nlFloat2 10s ease-in-out infinite;
  }
  @keyframes nlFloat1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(40px,30px) scale(1.08)} }
  @keyframes nlFloat2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-30px,-20px) scale(1.06)} }

  /* Grid lines decoration */
  .nl-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  }

  .nl-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 420px;
  }

  /* Left panel */
  .nl-left {
    padding: 4rem 3rem 4rem 4rem;
    display: flex; flex-direction: column; justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.06);
  }

  .nl-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--blue);
    margin-bottom: 1.4rem;
  }
  .nl-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }

  .nl-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.08; letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
  }
  .nl-title .accent {
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }

  .nl-desc {
    color: var(--text-sec); font-size: 0.975rem; line-height: 1.72;
    margin-bottom: 2.2rem; max-width: 380px;
  }

  /* Social proof avatars */
  .nl-proof {
    display: flex; align-items: center; gap: 12px;
  }
  .nl-avatars {
    display: flex;
  }
  .nl-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid #080f20;
    margin-left: -8px; background-size: cover; background-position: center;
    flex-shrink: 0;
  }
  .nl-avatars .nl-avatar:first-child { margin-left: 0; }
  .nl-av1 { background: linear-gradient(135deg,#f857a6,#ff5858); }
  .nl-av2 { background: linear-gradient(135deg,#4facfe,#00f2fe); }
  .nl-av3 { background: linear-gradient(135deg,#43e97b,#38f9d7); }
  .nl-av4 { background: linear-gradient(135deg,#fa709a,#fee140); }
  .nl-av5 { background: linear-gradient(135deg,#a18cd1,#fbc2eb); }
  .nl-proof-text { font-size: 0.82rem; color: var(--text-sec); line-height: 1.4; }
  .nl-proof-text strong { color: var(--text-pri); font-weight: 700; }

  /* Right panel */
  .nl-right {
    padding: 4rem 4rem 4rem 3rem;
    display: flex; flex-direction: column; justify-content: center; gap: 0;
  }

  /* Stats row */
  .nl-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin-bottom: 2.2rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; overflow: hidden;
    background: rgba(255,255,255,0.02);
  }
  .nl-stat {
    padding: 1rem 0.8rem; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
  }
  .nl-stat:last-child { border-right: none; }
  .nl-stat-val {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: block; line-height: 1.1; margin-bottom: 2px;
  }
  .nl-stat-label { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

  /* Form area */
  .nl-form-label {
    font-size: 0.78rem; font-weight: 600; color: var(--text-sec);
    letter-spacing: 0.02em; margin-bottom: 0.6rem;
    display: block;
  }
  .nl-form-row {
    display: flex; gap: 0; margin-bottom: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: rgba(255,255,255,0.04);
  }
  .nl-form-row:focus-within {
    border-color: rgba(47,128,255,0.5);
    box-shadow: 0 0 0 3px rgba(47,128,255,0.1);
  }
  .nl-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text-pri); font-family: 'Epilogue', sans-serif;
    font-size: 0.9rem; padding: 13px 16px;
  }
  .nl-input::placeholder { color: var(--text-muted); }
  .nl-submit {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: #fff; border: none; padding: 0 22px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700; font-size: 0.88rem; cursor: pointer;
    white-space: nowrap; letter-spacing: 0.01em;
    transition: opacity var(--transition), box-shadow var(--transition);
    display: flex; align-items: center; gap: 7px;
  }
  .nl-submit:hover { opacity: 0.88; box-shadow: -4px 0 20px rgba(47,128,255,0.3); }

  .nl-perks {
    display: flex; flex-wrap: wrap; gap: 8px 16px;
  }
  .nl-perk {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.75rem; color: var(--text-muted);
  }
  .nl-perk svg { color: #22d15b; flex-shrink: 0; }

  @media (max-width: 820px) {
    .nl-inner { grid-template-columns: 1fr; }
    .nl-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 3rem 2.5rem 2.5rem; }
    .nl-right { padding: 2.5rem 2.5rem 3rem; }
  }
  @media (max-width: 500px) {
    .nl-left, .nl-right { padding: 2rem 1.5rem; }
    .nl-stats { grid-template-columns: repeat(3,1fr); }
  }

  /* ─── FOOTER ─── */
  footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
  }
  .footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
  }
  .footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .footer-logo-icon {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .footer-logo-text {
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1rem;
    background: linear-gradient(90deg, #fff, var(--blue));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  }
  .footer-copy { color: var(--text-muted); font-size: 0.82rem; }
  .footer-links { display: flex; gap: 1.5rem; list-style: none; }
  .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: color var(--transition); }
  .footer-links a:hover { color: var(--text-sec); }

  /* ─── COOKIE BANNER ─── */
  .cookie-banner {
    position: fixed; bottom: -120px; left: 50%; transform: translateX(-50%);
    z-index: 2000;
    background: rgba(13,21,40,0.96);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex; align-items: center; gap: 14px;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    transition: bottom 0.55s cubic-bezier(.4,0,.2,1);
    max-width: 520px; width: calc(100% - 2rem);
  }
  .cookie-banner.show { bottom: 1.2rem; }
  .cookie-icon { font-size: 20px; flex-shrink: 0; }
  .cookie-text { flex: 1; font-size: 0.8rem; color: var(--text-sec); line-height: 1.4; }
  .cookie-text strong { color: var(--text-pri); font-weight: 600; }
  .cookie-text a { color: var(--blue); text-decoration: none; }
  .cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
  .cookie-accept {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff; border: none; border-radius: 8px;
    padding: 7px 14px; font-family: 'Epilogue', sans-serif;
    font-weight: 600; font-size: 0.78rem; cursor: pointer;
    transition: opacity var(--transition);
  }
  .cookie-accept:hover { opacity: 0.85; }
  .cookie-decline {
    background: rgba(255,255,255,0.06);
    color: var(--text-muted); border: 1px solid var(--border);
    border-radius: 8px; padding: 7px 14px;
    font-family: 'Epilogue', sans-serif; font-weight: 500;
    font-size: 0.78rem; cursor: pointer;
    transition: background var(--transition);
  }
  .cookie-decline:hover { background: rgba(255,255,255,0.1); }

  /* ─── DIVIDER ─── */
  .section-divider {
    width: 100%; height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 30%, var(--border) 70%, transparent);
  }

  /* ─── STAGGER ANIMATIONS ─── */
  .blog-card:nth-child(1) { animation-delay: 0.1s; }
  .blog-card:nth-child(2) { animation-delay: 0.22s; }
  .blog-card:nth-child(3) { animation-delay: 0.34s; }

  /* ─── SCROLL REVEAL ─── */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.visible { opacity: 1; transform: none; }

  /* ─── SEARCH HIGHLIGHT ─── */
  .blog-card.hidden { display: none; }

  /* ─── MOBILE ─── */
  @media (max-width: 960px) {
    .blog-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
  }
  @media (max-width: 700px) {
    .blog-grid { grid-template-columns: 1fr; }
    nav { gap: 0.8rem; padding: 0 1rem; }
    .newsletter-box { padding: 2.5rem 1.5rem; }
    .newsletter-form { flex-direction: column; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 480px) {
    .hero { padding: 90px 1.2rem 5rem; }
    .container { padding: 0 1.2rem; }
    .trending-item { padding: 1rem 1.2rem; gap: 1rem; }
  }

  /* ─── HAMBURGER MENU ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background var(--transition);
  z-index: 1100;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.1); }
.nav-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-pri);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: rgba(8,13,26,0.97);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.4rem;
  z-index: 999;
  animation: slideDown 0.25s ease both;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-mobile-menu a:hover { color: var(--text-pri); }
.nav-mobile-menu .nav-cta {
  margin-top: 0.8rem;
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-align: center;
}

@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }  /* hide top-right CTA, use menu one instead */
}
@media (max-width: 480px) {
  .hero-search { flex-wrap: wrap; }
  .hero-search-btn { width: 100%; justify-content: center; border-radius: 9px; padding: 10px; }
  .trend-views { display: none; }
}
/* ─── PREVENT MOBILE OVERFLOW ─── */
@media (max-width: 700px) {
  .orb-1 { width: 280px; height: 280px; }
  .orb-2 { width: 240px; height: 240px; }
  .orb-3 { width: 180px; height: 180px; }
  .aurora-blob-1 { width: 260px; height: 260px; }
  .aurora-blob-2 { width: 220px; height: 220px; }
  .aurora-blob-3 { width: 160px; height: 160px; }
  .hero-mouse-glow { display: none; }
  .nl-bg::before { width: 300px; height: 300px; }
  .nl-bg::after  { width: 260px; height: 260px; }
}
/* ─── MOBILE TEXT & SPACING FIX ─── */
@media (max-width: 700px) {
  .container { padding: 0 1.2rem; }

  .hero { padding: 100px 1.4rem 4rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); word-break: break-word; }
  .hero-sub { font-size: 0.95rem; padding: 0 0.3rem; }
  .hero-search-wrap { width: 100%; padding: 0 0.2rem; }
  .hero-btns { gap: 0.75rem; padding: 0 0.2rem; }
  .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 0.9rem; }
  .visitor-counter { padding: 8px 14px; }

  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-head-row { padding: 0 0.2rem; }
  .section-sub { font-size: 0.9rem; }

  .blog-card { margin: 0; }
  .card-body { padding: 1.1rem 1.2rem 1.3rem; }
  .card-title { font-size: 1rem; }
  .card-excerpt { font-size: 0.84rem; }

  .trending-inner { border-radius: var(--radius-md); }
  .trending-item { padding: 1rem 1.1rem; gap: 0.8rem; }
  .trend-title { font-size: 0.9rem; }
  .trend-sub { font-size: 0.75rem; white-space: normal; }
  .trend-num { font-size: 1.2rem; min-width: 26px; }

  .nl-left, .nl-right { padding: 2rem 1.4rem; }
  .nl-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .nl-desc { font-size: 0.9rem; }
  .nl-form-row { border-radius: 10px; }
  .nl-input { font-size: 0.88rem; padding: 12px 14px; }
  .nl-submit { padding: 0 16px; font-size: 0.84rem; }

  .footer-inner { padding: 0 1.2rem; gap: 0.8rem; }
  .footer-links { gap: 1rem; flex-wrap: wrap; }

  .cookie-banner { padding: 12px 14px; gap: 10px; }
  .cookie-text { font-size: 0.76rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .hero { padding: 95px 1rem 3.5rem; }
  .hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .card-body { padding: 1rem; }
  .trending-item { padding: 0.9rem 1rem; }
  .nl-left, .nl-right { padding: 1.6rem 1rem; }
}
/* ═══════════════════════════════════════════
   FULL RESPONSIVE — ALL BREAKPOINTS
   ═══════════════════════════════════════════ */

/* ── LARGE DESKTOP (1400px+) ── */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero h1 { font-size: 4.8rem; }
  .blog-grid { gap: 2rem; }
}

/* ── TABLET LANDSCAPE (960px–1200px) ── */
@media (max-width: 1200px) and (min-width: 960px) {
  .container { padding: 0 2rem; }
  .blog-grid { gap: 1.2rem; }
  .nl-left { padding: 3rem 2.5rem 3rem 3rem; }
  .nl-right { padding: 3rem 3rem 3rem 2.5rem; }
  #blog { padding: 5rem 0 4rem; }
  #trending { padding: 2.5rem 0; }
}

/* ── TABLET PORTRAIT (768px–960px) ── */
@media (max-width: 960px) and (min-width: 768px) {
  .container { padding: 0 1.8rem; }
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem; }
  .hero { padding: 110px 2rem 4rem; }
  .hero h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
  .hero-search-wrap { max-width: 480px; }
  #blog { padding: 5rem 0 3.5rem; }
  #trending { padding: 2.5rem 0; }
  .trending-item { padding: 1.1rem 1.5rem; }
  .nl-left { padding: 3rem 2rem 3rem 2.5rem; }
  .nl-right { padding: 3rem 2.5rem 3rem 2rem; }
  .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  nav { padding: 0 1.5rem; }
}

/* ── SMALL TABLET (600px–768px) ── */
@media (max-width: 768px) and (min-width: 600px) {
  .container { padding: 0 1.5rem; }
  .hero { padding: 105px 1.8rem 4rem; }
  .hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .blog-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .card-img-wrap { height: 220px; }
  #blog { padding: 4.5rem 0 3rem; }
  #trending { padding: 2rem 0; }
  .trending-item { padding: 1rem 1.3rem; gap: 1rem; }
  .nl-inner { grid-template-columns: 1fr; }
  .nl-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 2.5rem 2rem; }
  .nl-right { padding: 2.5rem 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}

/* ── MOBILE (max 480px) ── */
@media (max-width: 480px) {
  .nl-form-row { flex-direction: column; border-radius: 12px; overflow: visible; border: none; background: none; }
  .nl-input { border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; background: rgba(255,255,255,0.04); padding: 13px 14px; }
  .nl-submit { border-radius: 10px; padding: 14px 20px; justify-content: center; width: 100%; }
  .trend-toast { max-width: calc(100% - 2rem); white-space: normal; text-align: center; justify-content: center; }
  .cookie-banner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .cookie-btns { width: 100%; justify-content: center; }
  #blog { padding: 4rem 0 2.5rem; }
  #trending { padding: 1.5rem 0; }
  #newsletter { padding: 2rem 0 3rem; }
  .nl-wrap { border-radius: 18px; }
  .hero-logo-wrap { width: 120px; height: 120px; }
  .hero-logo-img { width: 100px; height: 100px; }
  .section-head { margin-bottom: 1.8rem; }
  .blog-grid { gap: 1rem; }
}
/* ─── SKELETON LOADER ─── */
  .skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, #0d1528 25%, #162040 50%, #0d1528 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }
  .skeleton-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 10px; }
  .skeleton-line {
    border-radius: 6px;
    background: linear-gradient(90deg, #0d1528 25%, #162040 50%, #0d1528 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }
  .skeleton-line.short  { height: 10px; width: 40%; }
  .skeleton-line.medium { height: 14px; width: 80%; }
  .skeleton-line.long   { height: 14px; width: 100%; }
  .skeleton-line.title  { height: 18px; width: 90%; }
  @keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

  /* ─── BLOGGER ERROR / EMPTY STATE ─── */
  .blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
  }
  .blog-empty .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
  .blog-empty h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.3rem; color: var(--text-sec); margin-bottom: 0.5rem; }
  .blog-empty p { font-size: 0.9rem; line-height: 1.6; max-width: 400px; margin: 0 auto; }

  /* ─── HERO LOGO ANIMATION ─── */
  .hero-logo-wrap {
    position: relative;
    width: 160px; height: 160px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
  }

  .hero-logo-img {
    width: 140px; height: 140px;
    object-fit: contain;
    position: relative; z-index: 2;
    animation: heroLogoFloat 4s ease-in-out infinite, heroLogoFadeIn 0.8s 0.05s ease both;
    filter: brightness(1.08) contrast(1.05);
  }

  .hero-logo-glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47,128,255,0.22) 0%, rgba(0,212,255,0.1) 45%, transparent 70%);
    animation: heroGlowPulse 4s ease-in-out infinite;
    z-index: 1;
  }

  .hero-logo-wrap::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(47,128,255,0.15);
    animation: heroRingExpand 4s ease-in-out infinite;
    z-index: 0;
  }

  @keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
  }

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

  @keyframes heroGlowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.15); }
  }

  @keyframes heroRingExpand {
    0%, 100% { transform: scale(1);    opacity: 0.4; }
    50%       { transform: scale(1.18); opacity: 0.08; }
  }

  /* ─── SPACING POLISH ─── */
  .hero-badge { margin-bottom: 1.4rem; }
  .hero h1    { margin-bottom: 1.2rem; }
  .hero-sub   { margin-bottom: 2rem; }
  .hero-search-wrap { margin-bottom: 1.8rem; }
  .hero-btns  { margin-bottom: 2.8rem; }

  #blog     { padding: 7rem 0 5rem; }

  .section-head { margin-bottom: 2.8rem; }
  .blog-grid    { gap: 1.6rem; }


  /* ─── TIC-TAC-TOE GAME SECTION ─── */
  #game { padding: 4rem 0; }
  .game-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 2rem;
  }
  .game-board-area {
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  }
  .ttt-status-bar {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center;
  }
  .ttt-status {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-pri); letter-spacing: -0.01em;
  }
  .ttt-status .highlight { color: var(--cyan); }
  .ttt-score-board {
    display: flex; gap: 1.2rem; align-items: center;
  }
  .ttt-score-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem 1.1rem;
    text-align: center; min-width: 72px;
  }
  .ttt-score-item .score-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted); display: block;
  }
  .ttt-score-item .score-val {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.6rem; font-weight: 800; line-height: 1;
    display: block; margin-top: 2px;
  }
  .score-you .score-val  { color: var(--blue); }
  .score-draw .score-val { color: var(--text-sec); }
  .score-ai .score-val   { color: var(--purple); }
  .ttt-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 10px; padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  }
  .ttt-cell {
    width: 96px; height: 96px;
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.6rem; font-weight: 900;
    cursor: pointer; transition: background var(--transition), border-color var(--transition), transform 0.15s;
    user-select: none;
  }
  .ttt-cell:hover:not(.taken) {
    background: rgba(47,128,255,0.1);
    border-color: var(--border-hi);
    transform: scale(1.04);
  }
  .ttt-cell.x-cell { color: var(--blue); }
  .ttt-cell.o-cell { color: var(--purple); }
  .ttt-cell.win-cell {
    background: rgba(0,212,255,0.12);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0,212,255,0.25);
    animation: cellPop 0.35s cubic-bezier(.34,1.56,.64,1) both;
  }
  @keyframes cellPop {
    from { transform: scale(0.82); }
    to   { transform: scale(1);    }
  }
  .ttt-cell.taken { cursor: not-allowed; }
  .ttt-controls {
    display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center;
  }
  .ttt-btn {
    padding: 9px 22px; border-radius: var(--radius-sm);
    font-family: 'Epilogue', sans-serif; font-weight: 600; font-size: 0.88rem;
    cursor: pointer; border: none; transition: opacity var(--transition), transform var(--transition);
    letter-spacing: 0.01em;
  }
  .ttt-btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
    box-shadow: 0 4px 18px rgba(47,128,255,0.3);
  }
  .ttt-btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
  .ttt-btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-sec);
  }
  .ttt-btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--text-pri); transform: translateY(-2px); }
  .ttt-difficulty {
    display: flex; gap: 0.5rem; align-items: center;
  }
  .ttt-diff-btn {
    padding: 6px 14px; border-radius: var(--radius-sm);
    font-family: 'Epilogue', sans-serif; font-weight: 600; font-size: 0.78rem;
    cursor: pointer; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted);
    transition: all var(--transition);
  }
  .ttt-diff-btn.active { background: rgba(47,128,255,0.15); border-color: var(--blue); color: var(--blue); }
  .ttt-diff-btn:hover:not(.active) { border-color: rgba(255,255,255,0.2); color: var(--text-sec); }
  .ttt-info-box {
    max-width: 420px; text-align: center;
    color: var(--text-muted); font-size: 0.82rem; line-height: 1.6;
  }
  .ttt-info-box strong { color: var(--text-sec); }
  @media (max-width: 480px) {
    .ttt-cell { width: 80px; height: 80px; font-size: 2.1rem; }
    .ttt-grid  { gap: 7px; padding: 12px; }
  }

  /* ─── SEO & ACCESSIBILITY ─── */
  :focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* Ensure blog cards are crawlable as article items */
  .blog-card [itemprop="headline"] {
    font-weight: 700;
  }

  /* Improve image SEO with contain + alt */
  .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Breadcrumb schema visual */
  .seo-breadcrumb {
    display: none; /* Hidden visually but present for schema */
  }