/* ==========================================================================
   Modern Premium Glassmorphic Design System (Big Brand Aesthetic)
   ========================================================================== */

@layer reset, base, layout, components, pages, utilities;

@layer reset {

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

@layer base {
  :root {
    /* Brand Color Palettes (ECD KART style) */
    --color-dark-bg: #f4f6f5;
    --color-glass-surface: rgba(255, 255, 255, 0.85);
    --color-glass-border: rgba(43, 43, 43, 0.08);
    --color-glass-highlight: rgba(34, 139, 110, 0.05);

    /* Brand Colors (ECD KART style) - Darkened for WCAG AA Contrast Compliance */
    --color-brand-green: #1a6a54;
    /* Primary Green/Teal (passes 4.5:1 on white) */
    --color-brand-green-dark: #124939;
    /* Darker green shade (passes 7:1+ on white) */
    --color-brand-gold: #b57107;
    /* Accent Gold (passes 3:1 for headings/large text on white) */
    --color-brand-gold-dark: #8f5600;
    /* Darker gold shade */

    /* Legacy variables mapped for stylesheet compatibility */
    --color-accent-blue: var(--color-brand-green);
    --color-accent-indigo: var(--color-brand-green-dark);
    --color-accent-purple: var(--color-brand-gold);
    --color-accent-pink: var(--color-brand-gold-dark);
    --color-accent-green: #10b981;
    --color-accent-red: #ef4444;

    /* Typography Colors */
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #4a5568;
    --color-text-muted: #718096;

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Gradients - Darkened to ensure white text on top is contrast-compliant */
    --gradient-primary: linear-gradient(135deg, #1b536a 0%, #155543 100%);
    --gradient-hero: linear-gradient(135deg, #1b536a 0%, #155543 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
    --gradient-glow-blue: radial-gradient(circle, rgba(34, 139, 110, 0.12) 0%, transparent 60%);
    --gradient-glow-purple: radial-gradient(circle, rgba(232, 157, 28, 0.08) 0%, transparent 60%);

    /* Structural variables */
    --border-radius-sm: 10px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(34, 139, 110, 0.15);
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
  }

  body {
    background-color: #f4f6f5;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-block-size: 100vh;
    background-image:
      radial-gradient(circle at 10% 15%, rgba(34, 139, 110, 0.04) 0%, transparent 40%),
      radial-gradient(circle at 90% 85%, rgba(232, 157, 28, 0.03) 0%, transparent 45%),
      linear-gradient(135deg, #eaf2f6 0%, #e8f3f0 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
  }

  /* Global Background Drifting Grid */
  .global-bg-grid {
    position: fixed;
    top: -64px;
    left: -64px;
    width: calc(100vw + 128px);
    height: calc(100vh + 128px);
    background-image:
      linear-gradient(rgba(42, 123, 155, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(42, 123, 155, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    animation: heroGridDrift 20s linear infinite;
    pointer-events: none;
    z-index: -10;
    will-change: transform;
  }

  /* Animated Glowing Background Blobs */
  body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--gradient-glow-blue);
    z-index: -2;
    pointer-events: none;
    animation: float-blob-1 30s infinite alternate ease-in-out;
  }

  body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: var(--gradient-glow-purple);
    z-index: -2;
    pointer-events: none;
    animation: float-blob-2 35s infinite alternate ease-in-out;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    font-weight: 800;
    letter-spacing: -0.025em;
  }

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

  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--color-dark-bg);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--color-glass-border);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-blue);
  }
}

/* Animations */
@keyframes float-blob-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(5%, 10%) scale(1.1);
  }

  100% {
    transform: translate(-5%, -5%) scale(0.95);
  }
}

@keyframes float-blob-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-8%, -12%) scale(1.08);
  }

  100% {
    transform: translate(5%, 5%) scale(0.92);
  }
}

@layer layout {
  .container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
  }

  .section-padding {
    padding-block: 100px;
  }
}

@layer components {

  /* High-end Glassmorphism Cards */
  .glass-card {
    background-color: #ffffff;
    background: var(--gradient-glass);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-md);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
  }

  .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }

  .glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 20px 40px -10px rgba(0, 242, 254, 0.15);
  }

  /* Premium Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }

  .btn-primary {
    background: #2A7B9B !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(42, 123, 155, 0.3) !important;
    transition: var(--transition-smooth);
  }

  .btn-primary:hover {
    background: #e89d1c !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(232, 157, 28, 0.35) !important;
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-primary);
    backdrop-filter: blur(10px);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.1);
  }

  /* Form Elements */
  .form-group {
    margin-bottom: 25px;
  }

  .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
    font-size: 15px;
  }

  .form-control::placeholder {
    color: var(--color-text-muted);
  }

  .form-control:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  }
}

@layer components {

  /* Dynamic Glass Navigation */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-glass-border);
    transition: var(--transition-smooth);
  }

  .navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
  }

  .nav-logo img {
    height: 44px;
    transition: var(--transition-smooth);
  }

  .nav-logo:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3));
  }

  .nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
  }

  .nav-item {
    position: relative;
  }

  .nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-secondary);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-link:hover,
  .nav-item:hover>.nav-link {
    color: var(--color-accent-blue);
  }

  /* Floating Dropdown Menus */
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-sm);
    list-style: none;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 12px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.98) transparent;
  }

  .nav-item:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-item a {
    display: block;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
  }

  .dropdown-item a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-accent-blue);
    padding-left: 28px;
  }

  /* Frosted Backdrop Overlay */
  .nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 18px;
    justify-content: space-between;
    padding: 0;
  }

  .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
  }
}

@layer pages {

  /* Brand Hero Area */
  .hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #05161c 0%, #041713 100%);
  }

  .hero-section.light-theme {
    background: linear-gradient(135deg, #eaf2f6 0%, #e8f3f0 100%);
  }

  .hero-section.light-theme .hero-content h1 {
    color: #0f1c2c;
  }

  .hero-section.light-theme .hero-content h1 span {
    color: var(--color-brand-green-dark);
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-section.light-theme .hero-content p {
    color: #3b4d61;
  }

  .hero-section.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(42, 123, 155, 0.15);
    color: #0f1c2c;
  }

  .hero-section.light-theme .btn-secondary:hover {
    background: rgba(42, 123, 155, 0.08);
    color: #2A7B9B;
  }

  .hero-section.light-theme .hero-bg-grid {
    background-image:
      linear-gradient(rgba(42, 123, 155, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(42, 123, 155, 0.05) 1px, transparent 1px);
  }

  .hero-bg-grid {
    position: absolute;
    top: -64px;
    left: -64px;
    right: -64px;
    bottom: -64px;
    background-image:
      linear-gradient(rgba(42, 123, 155, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(42, 123, 155, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    animation: heroGridDrift 20s linear infinite;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
  }

  .hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 1;
  }

  .hero-orb.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 123, 155, 0.22), transparent 70%);
    top: -120px;
    left: -100px;
    animation: heroOrbA 12s ease-in-out infinite;
  }

  .hero-orb.orb2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34, 137, 113, 0.12), transparent 70%);
    bottom: -50px;
    right: -60px;
    animation: heroOrbB 15s ease-in-out infinite;
  }

  .hero-orb.orb3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 157, 28, 0.08), transparent 70%);
    top: 40%;
    left: 60%;
    animation: heroOrbA 18s ease-in-out infinite reverse;
  }

  @keyframes heroGridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(64px, 64px); }
  }

  @keyframes heroOrbA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
  }

  @keyframes heroOrbB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-24px, -18px); }
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
  }

  .hero-content h1 {
    font-size: clamp(34px, 5.5vw, 62px);
    line-height: 1.1;
    margin-bottom: 24px;
  }

  .hero-content h1 span {
    color: var(--color-brand-green-dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-content p {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 640px;
    line-height: 1.7;
  }

  /* Responsive Grid System Utilities */
  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .form-grid-3 {
    display: grid;
    grid-template-columns: 100px 1.1fr 1.1fr;
    gap: 20px;
  }

  /* Responsive Grid Elements */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .feature-icon {
    font-size: 36px;
    margin-bottom: 24px;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .expect-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .expect-box h3 {
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .expect-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .expect-list li {
    position: relative;
    padding-left: 28px;
    color: var(--color-text-secondary);
    font-size: 15px;
  }

  .expect-list li::before {
    font-family: 'bootstrap-icons' !important;
    font-weight: normal;
    position: absolute;
    left: 0;
    top: 2px;
  }

  .expect-box.do li::before {
    content: '\F272';
    color: var(--color-accent-blue);
  }

  .expect-box.dont li::before {
    content: '\F5C1';
    color: var(--color-accent-red);
  }

  .category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .category-item-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    padding: 0 !important;
  }

  /* Premium Pricing Card details */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }

  .pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .pricing-header {
    text-align: center;
    border-bottom: 1px solid var(--color-glass-border);
    padding-bottom: 25px;
    margin-bottom: 30px;
  }

  .pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-accent-blue);
    margin-block: 15px;
  }

  .pricing-price span {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 400;
  }

  .pricing-features {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .pricing-features li {
    padding-block: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
  }

  .pricing-features li::before {
    content: '\F272';
    font-family: 'bootstrap-icons' !important;
    font-weight: normal;
    color: var(--color-accent-blue);
  }

  /* Glass Compliance Tables */
  .glass-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-glass-border);
    box-shadow: var(--shadow-soft);
  }

  .glass-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: rgba(13, 22, 38, 0.2);
  }

  .glass-table th,
  .glass-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-glass-border);
    font-size: 14px;
  }

  .glass-table th {
    background: rgba(3, 7, 18, 0.4);
    color: var(--color-accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
  }

  .glass-table td {
    color: var(--color-text-secondary);
  }

  .glass-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
    color: var(--color-text-primary);
  }

  /* Accordions / FAQs */
  .accordion-item {
    margin-bottom: 16px;
  }

  .accordion-title {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-glass-border);
    padding: 20px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    font-size: 16px;
  }

  .accordion-title::-webkit-details-marker {
    display: none;
  }

  .accordion-title::after {
    content: '\F27C';
    font-family: 'bootstrap-icons' !important;
    font-weight: normal;
    font-size: 12px;
    transition: var(--transition-smooth);
    color: var(--color-text-secondary);
  }

  details[open] .accordion-title::after {
    transform: rotate(180deg);
    color: var(--color-accent-blue);
  }

  details[open] .accordion-title {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--color-accent-blue);
    background: rgba(0, 242, 254, 0.03);
  }

  .accordion-content {
    border: 1px solid var(--color-glass-border);
    border-top: none;
    background: rgba(13, 22, 38, 0.15);
    padding: 28px;
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
  }

  /* KYC Scroll agreement */
  .kyc-agreement-box {
    background: rgba(3, 7, 18, 0.3);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    height: 380px;
    overflow-y: scroll;
    margin-block: 25px;
    font-size: 14px;
    color: var(--color-text-secondary);
    scrollbar-width: thin;
    scrollbar-color: var(--color-glass-border) rgba(0, 0, 0, 0);
  }

  .kyc-agreement-box h4 {
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--color-text-primary);
    font-size: 15px;
  }

  .kyc-agreement-box p {
    margin-bottom: 12px;
  }

  /* Footer compliance banner */
  .footer-disclaimer {
    background: rgba(3, 7, 18, 0.5);
    border-top: 1px solid var(--color-glass-border);
    padding-block: 30px;
    margin-top: 60px;
    font-size: 13px;
    color: var(--color-text-secondary);
  }
}

@layer utilities {
  .text-center {
    text-align: center;
  }

  .text-right {
    text-align: right;
  }

  .mt-10 {
    margin-top: 10px;
  }

  .mt-20 {
    margin-top: 20px;
  }

  .mt-30 {
    margin-top: 30px;
  }

  .mt-40 {
    margin-top: 40px;
  }

  .mb-10 {
    margin-bottom: 10px;
  }

  .mb-20 {
    margin-bottom: 20px;
  }

  .mb-30 {
    margin-bottom: 30px;
  }

  .mb-40 {
    margin-bottom: 40px;
  }

  .text-danger {
    color: var(--color-accent-red);
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
  }

  .text-success {
    color: var(--color-accent-green);
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
  }
}

/* ==========================================================================
   Full Responsive Rules for All Screen Breakpoints
   ========================================================================== */

/* 1. Large Screen Adjustments */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 40px;
  }
}

/* 2. Tablet Screen Breakpoint */
@media (max-width: 991px) {
  .navbar-container {
    height: 80px;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 20px;
    transition: var(--transition-bounce);
    border-left: 1px solid var(--color-glass-border);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-item {
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-menu.active .nav-item:nth-child(1) {
    transition-delay: 0.05s;
  }

  .nav-menu.active .nav-item:nth-child(2) {
    transition-delay: 0.1s;
  }

  .nav-menu.active .nav-item:nth-child(3) {
    transition-delay: 0.15s;
  }

  .nav-menu.active .nav-item:nth-child(4) {
    transition-delay: 0.2s;
  }

  .nav-menu.active .nav-item:nth-child(5) {
    transition-delay: 0.25s;
  }

  .nav-menu.active .nav-item:nth-child(6) {
    transition-delay: 0.3s;
  }

  .nav-item.open>.nav-link i {
    transform: rotate(180deg);
    color: var(--color-accent-blue);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding-block: 12px;
  }

  /* Responsive dropdown toggles */
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    display: none;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    box-shadow: none;
    margin-top: 5px;
    padding: 0;
  }

  .dropdown-menu::before {
    display: none;
  }

  .nav-item:hover>.dropdown-menu,
  .nav-item.open>.dropdown-menu {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content p {
    margin-inline: auto;
  }

  .hero-content div {
    justify-content: center;
  }

  .hero-image {
    max-width: 500px;
    margin-inline: auto;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }

  .expect-section {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin-inline: auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  /* Grid Utility Overrides */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* 3. Small Mobile Breakpoint */
@media (max-width: 768px) {
  .section-padding {
    padding-block: 70px;
  }

  .glass-card {
    padding: 30px 20px;
  }

  .category-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .category-item-card {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Convert layout grid forms to single-column */
  form div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-content div {
    flex-direction: column;
    width: 100%;
  }

  .navbar-container {
    padding-inline: 16px;
  }
}

/* ==========================================================================
   Clean Solid Brand Green Footer (Big Brand UX)
   ========================================================================== */
.footer-area {
  background-color: #155543 !important; /* solid fallback */
  background: var(--gradient-hero) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 60px;
  color: rgba(255, 255, 255, 0.85) !important;
  /* light translucent white for body texts */
}

.footer-area h4,
.footer-area h5,
.footer-area strong,
.footer-area p strong {
  color: #ffffff !important;
  /* Bold pure white text for maximum readability */
}

.footer-area a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.85) !important;
  transition: var(--transition-smooth);
}

.footer-area a:hover {
  color: var(--color-brand-gold) !important;
  /* Gold hover matching branding */
  transform: translateX(4px);
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  font-size: 16px;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  transition: var(--transition-smooth);
}

.footer-social-icons a:hover {
  background: #ffffff;
  color: #44ffca !important;
  /* Invert colors: green icon on white background */
  transform: translateY(-2px) !important;
}

.footer-area i {
  color: #ffffff !important;
  /* White contact details icons inside green footer */
}

/* Responsive Footer Grids (AKS Research Style) */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: #ffffff !important;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-left: 3px solid var(--color-brand-gold);
  padding-left: 10px;
  line-height: 1.2;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  display: flex;
  align-items: center;
}

.footer-col ul li a i {
  font-size: 9px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.45) !important;
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover i {
  color: var(--color-brand-gold) !important;
  transform: translateX(2px);
}

.footer-compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 30px;
  }

  .footer-grid>.footer-col:last-child {
    grid-column: span 4;
    margin-top: 20px;
  }
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-grid>.footer-col:last-child {
    grid-column: span 2;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .footer-compliance-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
  }

  .footer-grid>.footer-col:first-child {
    grid-column: span 2;
  }

  /* Legal & Support - 2-column layout on mobile for compact layout */
  .footer-grid>.footer-col:nth-child(4) {
    grid-column: span 2;
  }

  .footer-grid>.footer-col:nth-child(4) ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 15px;
  }

  /* Reach Us - full width on mobile with a clean separator */
  .footer-grid>.footer-col:last-child {
    grid-column: span 2;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
  }
}

/* ==========================================================================
   Compliance Disclaimer Warning Modal (Big Brand UX)
   ========================================================================== */
.attention-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px;
}

.attention-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.attention-modal-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 600px;
  padding: 40px;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.attention-modal-overlay.active .attention-modal-card {
  transform: translateY(0);
}

/* ==========================================================================
   Hero Section Background Animated Graph (UX Showcase)
   ========================================================================== */
.hero-bg-graph-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 52%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}

#heroStockChart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ==========================================================================
   Live Status Badge Overlay (Hero Section)
   ========================================================================== */
.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-glass-border);
  padding: 8px 16px;
  border-radius: 50px;
  margin-top: 35px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  font-size: 13.5px;
  font-weight: 600;
  z-index: 10;
  position: relative;
  transition: var(--transition-smooth);
}

.live-status-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.live-badge-title {
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.live-badge-price {
  color: var(--color-text-primary);
  font-weight: 700;
}

.live-badge-change {
  font-weight: 700;
  font-size: 12.5px;
}

.live-badge-change.positive {
  color: #10b981;
}

.live-badge-change.negative {
  color: #ef4444;
}

@media (max-width: 768px) {
  .hero-bg-graph-wrapper {
    height: 65% !important;
    bottom: 30px !important;
  }
}

@media (max-width: 576px) {
  .hero-bg-graph-wrapper {
    height: 80% !important;
    bottom: 95px !important;
    opacity: 0.85 !important;
  }
  
  .live-status-badge {
    flex-direction: row !important;
    width: auto !important;
    max-width: 90%;
    margin-inline: auto;
    font-size: 11.5px !important;
    padding: 6px 12px !important;
    gap: 6px !important;
    margin-top: 25px !important;
  }

  .live-badge-title {
    font-size: 9px !important;
  }

  .live-badge-change {
    font-size: 11px !important;
  }
}