body {
    font-family: 'Inter', sans-serif;
}

:root {
  --bg-gradient: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
  --text-dark: #222;
  --text-light: #888;

  /* 3D Dark Clay Properties */
  --clay-dark-bg: #2a2a2a;
  --clay-shadow-out: 10px 15px 25px rgba(0, 0, 0, 0.15),
    -5px -5px 15px rgba(255, 255, 255, 0.8);
  --clay-shadow-in: inset 2px 2px 5px rgba(255, 255, 255, 0.15),
    inset -2px -2px 5px rgba(0, 0, 0, 0.5);

  /* 3D Brain Highlight */
  --brain-glow: drop-shadow(0 10px 15px rgba(23, 17, 113, 0.5));
}


.glass {
    backdrop-filter: blur(10px);
}

.hero-gradient {
    background:
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, .18), transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(168, 85, 247, .12), transparent 30%);
}

.dark-gradient {
    background:
        radial-gradient(circle at center,
            #1e1b4b,
            #0f172a);
}

.placeholder {
    background: #e5e7eb;
    border: 2px dashed #cbd5e1;
}

.blur-ball {
    position: absolute;
    border-radius: 9999px;
    filter: blur(40px);
    opacity: .5;
}


/* ── HERO ── */
.hero {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    justify-content: center;
    /* padding: 72px 64px 56px; */
    overflow: hidden;
    position: relative;
    min-height: 520px;
    margin-top: 5rem;
    /* margin: 8% 0px auto; */
    /* margin: auto; */
    
}

.hero::before {
    content: '';
    position: absolute;
    /* top: -80px; */
    /* right: -80px; */
    /* width: 500px; */
    /* height: 500px; */
    /* background: radial-gradient(circle, rgba(249, 115, 22, .15) 0%, rgba(139, 92, 246, .1) 50%, transparent 70%); */
    /* background: radial-gradient(circle, #17117124 0%, rgba(139, 92, 246, .1) 50%, transparent 70%); */
    background-image: url('https://tgsgrading.com/assets/assets/logo.png');
    pointer-events: none;
    border-radius: 50%;
        right: 0;
    width: 400px;
    height: 500px;
    background-repeat: no-repeat;
    bottom: 0;
    background-size: contain;
    filter: opacity(0.02);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

.hero-title {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 10px;
}

.hero-title .accent {
    color: var(--orange);
}

.hero-subtitle {
    color: var(--gray-500);
    font-size: 15px;
    max-width: 380px;
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
}

.stat-label {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}

.hero-image {
    flex-shrink: 0;
    position: relative;
}

.hero-card-slab {
    width: 280px;
    height: 340px;
    background: linear-gradient(145deg, #e8e8e8, #c8c8c8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .15), 0 8px 20px rgba(0, 0, 0, .1);
    position: relative;
}

.hero-card-slab::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 32px;
    background: rgba(255, 255, 255, .5);
    border-radius: 6px 6px 0 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    opacity: .5;
}

.hero-orb-1 {
    width: 14px;
    height: 14px;
    background: var(--orange);
    top: 30px;
    right: -10px;
}

.hero-orb-2 {
    width: 22px;
    height: 22px;
    background: #8b5cf6;
    bottom: 60px;
    right: -20px;
}


:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --orange: #171171;
    --orange-light: #fdba74;
    --navy: #121315;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --placeholder: #c8c8c8;
    --purple:  #171171;
    --purple-light: #ede9fe;
}

.text-principal,.text-violet-600{
    color: #171171!important;
}

.bg-principal{
    background-color: #171171!important;
    color: #fff!important;
}

.border-principal{
    border-color: #171171!important;
}

.bg-principal {
    background-color: #171171!important;
}
.border-violet-600 {
    border-color: #171171!important;
}
.hover\:bg-principal:hover {
    background-color: #171171!important;
}

/* ── CTA BANNER ── */
.cta-banner {
    background: #0d1117;
    padding: 72px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .35) 0%, rgba(249, 115, 22, .15) 60%, transparent 80%);
    pointer-events: none;
}

.cta-banner-text h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -.02em;
    max-width: 520px;
}

.cta-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex-shrink: 0;
}

.btn-purple {
    background: var(--purple);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .15s;
    text-decoration: none;
}

.btn-purple:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.cta-secondary-link {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.cta-secondary-link:hover {
    color: var(--white);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
}

/* ── PLACEHOLDER IMAGE ── */
.img-placeholder {
    background: var(--placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
}

/* ── NAV ── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
}

.nav-logo .flame {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--black);
}

.nav-links a.active {
    color: var(--orange);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s, transform .15s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #222;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    /* border: 1.5px solid var(--gray-300); */
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color .2s;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--black);
}



      .comparison-container {
        position: relative;
        width: 100%;
        max-width: 800px;
        aspect-ratio: 16/9;
        border-radius: 16px;
        overflow: hidden;
        /* box-shadow:
          0 20px 60px -20px rgba(0, 0, 0, 0.15),
          0 0 0 1px rgba(0, 0, 0, 0.05); */
        /* background: #fff; */
        user-select: none;
            height: 76vh;
      }

      .image-wrapper {
        position: absolute;
        inset: 0;
        overflow: hidden;
      }

      .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
      }

      .image-before {
        position: absolute;
        inset: 0;
        z-index: 1;
        clip-path: inset(0 50% 0 0);
      }

      .image-after {
        position: absolute;
        inset: 0;
        z-index: 0;
        filter: saturate(1.1) contrast(1.05);
      }

      /* Labels */
      .label {
        position: absolute;
        top: 20px;
        padding: 8px 16px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        color: #fff;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: 100px;
        z-index: 2;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
      }

      .comparison-container:hover .label {
        opacity: 1;
        transform: translateY(0);
      }

      .label-before {
        left: 20px;
      }

      .label-after {
        right: 20px;
      }

      /* Slider Handle Line with Gradient Fade */
      .slider-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 2px;
        transform: translateX(-50%);
        z-index: 3;
        pointer-events: none;
      }

      .slider-line::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          to bottom,
          transparent 0%,
          rgba(255, 255, 255, 0.3) 15%,
          rgba(255, 255, 255, 0.9) 40%,
          rgba(255, 255, 255, 0.9) 60%,
          rgba(255, 255, 255, 0.3) 85%,
          transparent 100%
        );
      }

      /* Knob */
      .slider-knob {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 44px;
        height: 44px;
        transform: translate(-50%, -50%);
        background: #fff;
        border-radius: 50%;
        z-index: 4;
        cursor: grab;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow:
          0 4px 20px rgba(0, 0, 0, 0.15),
          0 0 0 1px rgba(0, 0, 0, 0.05);
        transition:
          transform 0.2s ease,
          box-shadow 0.2s ease;
      }

      .slider-knob:active {
        cursor: grabbing;
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow:
          0 2px 10px rgba(0, 0, 0, 0.1),
          0 0 0 1px rgba(0, 0, 0, 0.05);
      }

      .slider-knob svg {
        width: 20px;
        height: 20px;
        color: #1a1a1a;
        opacity: 0.6;
      }

      /* Hover glow effect on knob */
      .slider-knob::before {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        background: radial-gradient(
          circle,
          rgba(255, 255, 255, 0.8) 0%,
          transparent 70%
        );
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
      }

      .comparison-container:hover .slider-knob::before {
        opacity: 1;
      }

      /* Dragging state */
      .comparison-container.dragging .image-before {
        transition: none;
      }

      .comparison-container.dragging .slider-line,
      .comparison-container.dragging .slider-knob {
        transition: none;
      }

      /* Smooth transitions when not dragging */
      .image-before,
      .slider-line,
      .slider-knob {
        transition: left 0.1s ease-out;
      }

      /* Responsive */
      @media (max-width: 640px) {
        .comparison-container {
          border-radius: 12px;
        }

        .slider-knob {
          width: 36px;
          height: 36px;
        }

        .slider-knob svg {
          width: 16px;
          height: 16px;
        }

        .label {
          font-size: 0.75rem;
          padding: 6px 12px;
        }
      }





    /* ── HOW IT WORKS ── */
    .how-it-works {
      /* padding: 80px 64px; */
      text-align: center;
    }

    .section-eyebrow {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--orange);
      margin-bottom: 12px;
    }

    .how-steps {
      display: flex;
      align-items: flex-start;
      justify-content: center;
      gap: 0;
      margin-top: 56px;
      position: relative;
    }

    .step {
      flex: 1;
      max-width: 220px;
      text-align: center;
      position: relative;
    }

    .step::after {
      content: '›';
      position: absolute;
      top: 24px;
      right: -8px;
      color: var(--gray-300);
      font-size: 22px;
    }

    .step:last-child::after { display: none; }

    .step-num {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .1em;
      color: var(--orange);
      margin-bottom: 12px;
    }

    .step-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin: 0 auto 16px;
    }

    .step:nth-child(1) .step-icon { background: #ede9fe; }
    .step:nth-child(2) .step-icon { background: #fff7ed; }
    .step:nth-child(3) .step-icon { background: #f0fdf4; }
    .step:nth-child(4) .step-icon { background: #fdf2f8; }

    .step h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
    .step p  { font-size: 13px; color: var(--gray-500); line-height: 1.6; }



    .ai-platform{
    /* max-width:1400px; */
    margin:auto;
    /* padding:120px 40px; */
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    align-items:center;
    padding: 0 4rem;
}

.badge{
    background:#ede9fe;
    color: #171171!important;
    padding:10px 18px;
    border-radius:999px;
    font-size:.8rem;
    font-weight:600;
}

.ai-left h2{
    font-size:4rem;
    line-height:1;
    margin:25px 0;
    color:#111827;
}

.ai-left p{
    color:#6b7280;
    font-size:1.1rem;
    max-width:500px;
}

.ai-left ul{
    margin-top:30px;
    display:grid;
    gap:15px;
}

.ai-left li{
    list-style:none;
    color:#374151;
}

.ai-left li::before{
    content:"✓";
    color: #171171;
    margin-right:10px;
}

.grade-card{
    position:relative;
    background:white;
    border-radius:32px;
    padding:50px;
    box-shadow:
    0 20px 60px rgba(0,0,0,.08);
}

.slab{
    display:flex;
    justify-content:center;
}

.slab img{
    width:280px;
}

.score-box{
    position: absolute;
    top: 0px;
    right: -8px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    z-index: 1;

}

.score-box h3{
    font-size:2.5rem;
    color: #171171;
}

.metric{
    position:absolute;
    background:white;
    padding:15px 20px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
}

.metric span{
    color: #171171;
    font-weight:700;
}

.metric-1{
    top:120px;
    left:-20px;
}

.metric-2{
    top:250px;
    left:-30px;
}

.metric-3{
    top:140px;
    right:-20px;
}

.metric-4{
    top:270px;
    right:-20px;
}

.verified{
    margin-top:30px;
    text-align:center;
    color:#16a34a;
    font-weight:700;
}


.card-scene{
    perspective:1200px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.slab-card{
    width:320px;
    transform-style:preserve-3d;
    will-change:transform;
}

.slab-card img{
    width:100%;
    display:block;
    filter:drop-shadow(0 30px 50px rgba(124,58,237,.18));
}

.glow{
    position:absolute;
    width:400px;
    height:400px;

    background:
    radial-gradient(
        circle,
        rgba(124,58,237,.25),
        transparent 70%
    );

    filter:blur(40px);
    z-index:-1;
}





/* --- Main Graphic Container --- */
.graphic-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 450px;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

/* --- Concentric Circles --- */
.circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.02);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.circles::before {
  content: "";
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
  position: absolute;
}

.circles::after {
  content: "";
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  position: absolute;
}

/* --- Center Brain --- */
.brain {
  position: relative;
  z-index: 10;
  /* width: 60px; */
  /* height: 60px; */
  filter: var(--brain-glow);
  max-width: 280px;
}

/* --- Connecting Lines --- */
.lines-svg {
  position: absolute;
  /* top: 0;
  left: 0;
  width: 100%;
  height: 100%; */
  z-index: 2;
  pointer-events: none;
      width: 140%;
    height: 140%;
}

.line-path {
  fill: none;
  stroke: #333;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.6;
}

/* --- Floating Icons --- */
.icon-node {
  position: absolute;
  width: 55px;
  height: 55px;
  background: var(--clay-dark-bg);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
  box-shadow: var(--clay-shadow-out), var(--clay-shadow-in);
  z-index: 5;
  cursor: pointer;
  transition: border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-node:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.icon-node svg {
  /* width: 60px; */
  /* height: 32px; */
  fill: white;
}

/* Node Positions */
.n-l1 {
  /* top: 20%;
  left: 15%; */

    top: 11%;
    left: 2%;
}
.n-l2 {
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  left: 0;
}
.n-l3 {
  bottom: 20%;
  left: 15%;

      bottom: 6%;
    left: 3%;
}

.n-r1 {
  top: 20%;
  right: 15%;

      top: 11%;
    right: 3%;
}
.n-r2 {
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  font-family: serif;
  right: -3%;
}
.n-r3 {
  bottom: 20%;
  right: 15%;
      bottom: 8%;
    right: 4%;

}

/* Specific logo adjustments based on image */
.logo-text {
  font-size: 16px;
  letter-spacing: -0.5px;
}

/* --- Typography Section --- */
.text-section {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 10;
}

h1 {
  font-weight: 300;
  font-size: 42px;
  letter-spacing: -1px;
  color: #333;
  line-height: 1.2;
}

h1 strong {
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  font-size: 48px;
}

.pointer-emoji {
  font-size: 24px;
  margin-top: 20px;
  display: inline-block;
}


.grading-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.grading-side {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 55px;
}

.grade-item {
  text-align: center;
}

.grade-item h4 {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
}

.grade-item p {
margin-top: -2px;
    color: #4b5563;
    line-height: 1.7;
    font-size: .9rem;
}

.grading-center {
  position: relative;
  width: 700px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-node {
  position: relative !important;
  margin: 0 auto;
  /* width: 90px;
  height: 90px; */
  border-radius: 24px;
}

.static-node svg {
  width: 42px;
  height: 42px;
}

.logo-text {
  font-size: 2rem;
  font-weight: 700;
}

.brain {
  position: relative;
  z-index: 10;
  max-width: 300px;
}

.lines-svg {
  position: absolute;
  inset: 0;
    height: 140%;
  z-index: 2;
  top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.line-path {
  fill: none;
  stroke: #666;
  stroke-width: 1.5;
  opacity: 0.7;
}

@media (max-width: 1200px) {
  .grading-layout {
    flex-direction: column;
    gap: 40px;
  }

  .grading-center {
    width: 100%;
    max-width: 700px;
  }

  .grading-side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .grade-item {
    width: 260px;
  }
}

@media (max-width: 768px) {
  .lines-svg {
    display: none;
  }

  .grade-item {
    width: 100%;
  }

  .grade-item h4 {
    font-size: 1rem;
  }
}

.layyers svg {
     width: 40px;
    height: 40px;
}
.bg-principal {
    background-color: #171171!important;
}