/* ===========================
   GUREY AI NEON DARK SYSTEM
   =========================== */

   :root {
    /* Strict Colors */
    --color-bg: #000000;
    --color-surface: #0A0A0A;
    --color-surface-hover: #121212;
    --color-border: #2A2A2A;
    --color-border-hover: #3A3A3A;
    
    --color-primary-text: #FFFFFF;
    --color-secondary-text: #9F9FA9;
    
    --color-accent: #2FFF00; /* Neon green */
    --color-accent-dim: rgba(47, 255, 0, 0.1);
    
    /* Semantic Colors */
    --color-success: #2FFF00;
    --color-warning: #FFD000;
    --color-danger: #FF4D4D;
    --color-info: #3B82F6;
  
    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    
    /* Radii */
    --radius-card: 20px;
    --radius-control: 12px;
    --radius-badge: 8px;
  
    /* Elevation */
    --shadow-glow: 0 0 0 1px rgba(47, 255, 0, 0.3), 0 0 32px rgba(47, 255, 0, 0.15);
    
    /* Grid & Spacing */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;
  }
  
  /* Base Reset */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    background: var(--color-bg);
    color: var(--color-secondary-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    overflow-x: hidden;
    background: var(--color-bg);
    min-height: 100vh;
  }
  
  /* Typography Scales */
  .display {
    font-family: var(--font-sans);
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--color-primary-text);
  }
  
  .h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-primary-text);
  }
  
  .h2 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-primary-text);
  }
  
  .h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--color-primary-text);
  }
  
  .body-lg {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-secondary-text);
  }
  
  .body-md {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-secondary-text);
  }
  
  .label-sm {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-secondary-text);
  }
  
  .label-xs {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-secondary-text);
  }
  
  /* Accent texts */
  .text-neon {
    color: var(--color-accent);
    text-shadow: 0 0 16px rgba(47, 255, 0, 0.4);
  }
  
  .text-white {
    color: var(--color-primary-text);
  }
  
  /* Layout */
  .grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4); /* 32px margins */
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-3); /* 24px gutters */
  }
  
  @media (max-width: 1024px) {
    .grid-container {
      grid-template-columns: repeat(8, 1fr);
      padding: 0 var(--space-3);
      gap: var(--space-2);
    }
  }
  
  @media (max-width: 600px) {
    .grid-container {
      grid-template-columns: repeat(4, 1fr);
      padding: 0 var(--space-2);
    }
  }

  .col-span-full { grid-column: 1 / -1; }
  .col-span-6 { grid-column: span 6; }
  .col-span-4 { grid-column: span 4; }
  .col-span-8 { grid-column: span 8; }
  
  @media (max-width: 768px) {
    .col-span-6, .col-span-4, .col-span-8 { grid-column: 1 / -1; }
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 0 var(--space-4);
    height: 54px;
    border-radius: var(--radius-control);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .btn-primary {
    background: var(--color-primary-text);
    color: var(--color-bg);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--color-accent);
    box-shadow: 0 8px 24px rgba(47, 255, 0, 0.3);
  }
  
  .btn-secondary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-primary-text);
  }
  
  .btn-secondary:hover {
    border-color: var(--color-primary-text);
    background: var(--color-surface-hover);
    transform: translateY(-2px);
  }

  /* Wope Inspired Glowing Box */
  .glowing-box {
      position: relative;
      isolation: isolate;
      border-radius: 999px;
      display: inline-block;
      padding: 2px; /* The border width */
      overflow: hidden;
      margin-top: var(--space-6);
  }

  .glowing-box::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 200%;
      height: 200%;
      background-image: conic-gradient(
          from 0deg at 50% 50%,
          rgba(47, 255, 0, 0.8) 0deg,
          transparent 60deg,
          transparent 300deg,
          rgba(47, 255, 0, 0.8) 360deg
      );
      animation: borderTurn 4s infinite linear;
      transform: translate(-50%, -50%);
      z-index: -1;
  }

  .glowing-box-inner {
      background: var(--color-bg); /* Mask the middle */
      border-radius: 999px;
      display: flex;
      align-items: center;
      padding: 6px 6px 6px 24px;
      gap: var(--space-2);
  }

  .glowing-input {
      background: transparent;
      border: none;
      color: var(--color-primary-text);
      font-family: var(--font-sans);
      font-size: 16px;
      outline: none;
      width: 280px;
  }

  .glowing-input::placeholder {
      color: var(--color-secondary-text);
  }

  @keyframes borderTurn {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
  }
  
  /* MINIMALIST CARDS - Thick Double Border & Color Animation */
  .card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    height: 100%;
    
    /* Double Border Strategy */
    border: 2px solid var(--color-border);
    outline: 2px solid #555555;
    outline-offset: -8px;
    
    transition: all 0.4s ease;
  }
  
  .card:hover {
    border-color: var(--color-accent);
    outline-color: rgba(47, 255, 0, 0.5);
    background: var(--color-surface-hover);
    /* Color Animation */
    animation: neon-pulse 1.5s infinite alternate;
  }

  @keyframes neon-pulse {
    0% { box-shadow: 0 0 10px rgba(47, 255, 0, 0.1); }
    100% { box-shadow: 0 0 30px rgba(47, 255, 0, 0.3); }
  }

  /* Card content layer */
  .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  /* Icon inside Card */
  .card-icon {
    font-size: 32px;
    color: var(--color-accent);
    margin-bottom: var(--space-1);
    transition: transform 0.3s ease;
  }

  .card:hover .card-icon {
    transform: scale(1.1);
  }
  
  /* Status Indicator */
  .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent);
  }

  .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    background: rgba(47, 255, 0, 0.05);
    border: 1px solid rgba(47, 255, 0, 0.2);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-badge);
    color: var(--color-accent);
  }
  
  /* Specifically styled sections */
  .section-padding {
    padding: var(--space-16) 0;
  }

  @media (max-width: 768px) {
    .section-padding {
      padding: var(--space-10) 0;
    }
  }
  
  /* 3D Background Grid - Slowed down */
  .bg-grid-3d {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
      linear-gradient(rgba(47, 255, 0, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(47, 255, 0, 0.07) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    transform-origin: center center;
    z-index: -2; /* behind light cones */
    pointer-events: none;
    animation: grid-move 60s linear infinite; /* Slower animation */
    mask-image: linear-gradient(to top, transparent 0%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 60%, transparent 100%);
  }
  
  @keyframes grid-move {
    0% { transform: perspective(1000px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(1000px) rotateX(60deg) translateY(80px) translateZ(-200px); }
  }

  /* Better Stack Inspired Light Cones */
  .hero-light-cone-left, .hero-light-cone-right {
      position: absolute;
      top: 50%;
      width: 50vw;
      height: 100vh;
      transform: translateY(-50%);
      z-index: -1;
      pointer-events: none;
      opacity: 0.6;
  }
  .hero-light-cone-left {
      left: -25vw;
      background: radial-gradient(ellipse at right, rgba(47, 255, 0, 0.15) 0%, transparent 70%);
  }
  .hero-light-cone-right {
      right: -25vw;
      background: radial-gradient(ellipse at left, rgba(47, 255, 0, 0.15) 0%, transparent 70%);
  }

  /* Hero */
  .hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--space-10);
    text-align: center;
  }
  
  .hero-content {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  
  /* Image Frame */
  .img-frame {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    overflow: hidden;
    position: relative;
    
    /* Double Border Strategy */
    border: 2px solid var(--color-border);
    outline: 2px solid #555555;
    outline-offset: -8px;
    transition: all 0.4s ease;
  }
  
  .img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
  }
  
  .img-frame:hover {
    border-color: var(--color-accent);
    outline-color: rgba(47, 255, 0, 0.5);
    animation: neon-pulse 1.5s infinite alternate;
  }

  .img-frame:hover img {
    filter: grayscale(0%) contrast(1.05) brightness(1);
    transform: scale(1.05);
  }
  
  /* Info overlay on image */
  .img-badge {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    padding: var(--space-2) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    z-index: 2;
  }
  
  /* Process section */
  .process-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
  }
  
  .process-num {
    font-family: var(--font-sans);
    font-size: 64px;
    font-weight: 700;
    color: var(--color-border);
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    transition: color 0.4s ease;
    z-index: 1;
  }
  
  .card:hover .process-num {
    color: var(--color-accent-dim);
  }
  
  /* Values Grid */
  .values-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-3);
  }
  
  /* FAQ */
  .faq-list {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
  }
  
  @media (min-width: 768px) {
    .faq-list {
      grid-column: 3 / 11;
    }
  }
  
  .faq-item {
    border-bottom: 1px solid var(--color-border);
  }
  
  .faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    background: none;
    border: none;
    color: var(--color-primary-text);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
  }

  .faq-btn:hover {
    color: var(--color-accent);
  }
  
  .faq-icon {
    color: var(--color-secondary-text);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
    flex-shrink: 0;
  }
  
  /* Flip Arrow Up on Open */
  .faq-item.is-open .faq-icon {
    transform: rotate(-180deg);
    color: var(--color-accent);
  }
  
  .faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .faq-content p {
    padding-bottom: var(--space-4);
    color: var(--color-secondary-text);
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Reveal Animation Class */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* STICKY SEQUENCE FOR WHY SECTION */
  .sticky-sequence-container {
      height: 600vh; /* Increased scroll room for slower reading */
      position: relative;
  }
  .sticky-content {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
  }
  .sequence-text {
      position: absolute;
      width: 100%;
      text-align: center;
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease, transform 0.8s ease; /* Slower transition */
      pointer-events: none;
      padding: 0 var(--space-4);
  }
  .sequence-text.is-active {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
  }
  
  /* Nav (.minimal-nav / .nav-logo / .nav-links / .mobile-menu-btn / navPanelIn)
     moved to /site-nav.css as the shared single source of truth. */

  /* Minimal Footer */
  .minimal-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-8) 0 var(--space-4);
    background: var(--color-bg);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: 2fr 1fr 1fr 1fr;
    }
  }

  .footer-brand p {
    margin-top: var(--space-2);
    max-width: 300px;
  }

  .footer-col h4 {
    color: var(--color-primary-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
  }

  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .footer-col a {
    color: var(--color-secondary-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
  }

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

  .footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    color: var(--color-secondary-text);
    font-size: 12px;
  }

  @media (min-width: 600px) {
    .footer-bottom {
        flex-direction: row;
    }
  }
  
  .social-links {
    display: flex;
    gap: var(--space-2);
  }
  
  .social-links a {
    color: var(--color-secondary-text);
    transition: color 0.2s;
  }
  
  .social-links a:hover {
    color: var(--color-primary-text);
  }

  /* Better Centered CTA Block */
  .cta-block {
      background: var(--color-surface);
      border: 2px solid var(--color-border);
      outline: 2px solid #555555;
      outline-offset: -8px;
      border-radius: var(--radius-card);
      padding: var(--space-8) var(--space-4);
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--space-4);
      transition: all 0.4s ease;
  }
  
  .cta-block:hover {
      border-color: var(--color-accent);
      outline-color: rgba(47, 255, 0, 0.5);
      background: var(--color-surface-hover);
      animation: neon-pulse 1.5s infinite alternate;
  }

  /* Mobile Overrides for Glowing Box */
  @media (max-width: 600px) {
      .glowing-box-inner {
          flex-direction: column;
          padding: 8px;
          border-radius: 24px;
          width: 100%;
      }
      .glowing-box {
          border-radius: 24px;
          width: 100%;
          max-width: 320px;
      }
      .glowing-box::before {
          border-radius: 24px;
      }
      .glowing-input {
          width: 100% !important;
          padding: 12px;
          text-align: center;
      }
      .glowing-box-inner .btn {
          width: 100%;
      }
      /* Ensure hero text doesn't overflow */
      .display {
          word-wrap: break-word;
          hyphens: auto;
      }
  }
