/* ==========================================================================
   SAMADI PRO - Design System & Custom Properties
   ========================================================================== */
:root {
    /* Color Palette (Based on SAMADI PRO Design System) */
    --bg-dark: #0F1113;
    --bg-secondary: #141618;
    --bg-card: #141618;
    --bg-card-hover: #0B0C0D;
    --border-color: #2A2E31;
    
    /* Accent Yellow Palette (Screenshot Exact Match: #E2B42A) */
    --gold-primary: #E2B42A;
    --gold-light: #F2C94C;
    --gold-dark: #C9A227;
    --gold-glow: rgba(226, 180, 42, 0.1);
    --gold-glow-intense: rgba(226, 180, 42, 0.25);
    
    /* Text Colors */
    --text-pure: #FFFFFF;
    --text-muted: #4B5563;
    --text-muted-dark: #374151;
    --text-dark: #0F1113;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Border Radius */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    /* Header & Layout Sizes */
    --header-height: 80px;
    --max-width: 1200px;
}

/* ==========================================================================
   Reset & Core Setup
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #2A2E31 #0F1113;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0F1113;
}
::-webkit-scrollbar-thumb {
    background: #2A2E31;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E2B42A;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: transparent;
    color: var(--text-pure);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Atmospheric Glows & Interactive Canvas Background
   ========================================================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    background: #0F1113; /* Pure dark obsidian background from SAMADI PRO palette */
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 100;
    background: rgba(7, 7, 7, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(7, 7, 7, 0.85);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    height: 70px;
}

.header-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-pure);
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.logo-accent {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-pure);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-pure);
    border-radius: 1px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Buttons Framework
   ========================================================================== */
.btn {
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.75rem 1.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Outline Button styling */
.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    background: rgba(242, 201, 76, 0.08);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-outline:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Primary Button styling */
.btn-primary {
    background: var(--gold-primary);
    color: var(--text-dark);
    border: none;
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--gold-glow-intense);
    transform: translateY(-2px);
    background: var(--gold-light);
}

/* Button Arrow Scaling */
.icon-arrow-diagonal {
    width: 14px;
    height: 14px;
    transition: var(--transition-bounce);
}

.btn:hover .icon-arrow-diagonal {
    transform: translate(2px, -2px);
}

/* Play/Link button style */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-pure);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-text:hover {
    color: var(--gold-light);
}

.play-btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    position: relative;
}

.play-btn-circle svg {
    width: 14px;
    height: 14px;
    color: var(--text-pure);
    transform: translateX(1.5px);
    transition: var(--transition-smooth);
}

.btn-text:hover .play-btn-circle {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.08);
}

.btn-text:hover .play-btn-circle svg {
    color: var(--gold-light);
}

/* ==========================================================================
   Mobile Nav Menu Drawer
   ========================================================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(7, 7, 7, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav-link {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    color: var(--gold-light);
    transform: scale(1.05);
}

.mobile-cta-btn {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--header-height) + 3rem) 2rem 4rem 2rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.22fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
    margin-bottom: 2.2rem;
}

/* Left Hero Text block */
.hero-text-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1px;
    background-color: var(--gold-primary);
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.title-highlight {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.8rem;
    max-width: 500px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

/* Right Vertical Stack features */
.features-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================================================================
   Premium Glassmorphic Cards (Framework)
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-card::before {
    display: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 12px 40px rgba(242, 201, 76, 0.06);
    background: var(--bg-card-hover);
}

.glass-card:hover::before {
    display: none;
}

/* Shared Feature Card Structure */
.feature-card {
    padding: 1.2rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
}

.card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.feature-card:hover .card-icon-wrapper {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.card-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-pure);
    transition: var(--transition-smooth);
}

.feature-card:hover .card-title {
    color: var(--gold-light);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Slide arrow transition inside card */
.card-arrow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.card-arrow {
    width: 18px;
    height: 18px;
    transition: var(--transition-bounce);
}

.feature-card:hover .card-arrow-wrapper {
    color: var(--gold-light);
    transform: translateX(4px);
}



/* ==========================================================================
   Technologies & Partner Footer
   ========================================================================== */
.tech-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.footer-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    opacity: 0.75;
}

.partners-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.65;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--text-pure);
    transform: translateY(-2px);
}

.logo-svg {
    width: 22px;
    height: 22px;
    transition: var(--transition-smooth);
}

.partner-logo:hover .logo-svg {
    color: var(--gold-light);
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4));
}

/* ==========================================================================
   Interactive Modals & Success Frames
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 4, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-window {
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-bounce);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.modal-overlay.active .modal-window {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--gold-light);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--text-pure) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition-smooth);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-pure);
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.btn-submit {
    margin-top: 1rem;
    width: 100%;
}

/* Success messaging view */
.form-success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.success-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.form-success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-pure);
}

.form-success-message p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.6;
}

.success-close-btn {
    margin-top: 1rem;
    padding: 0.6rem 2.2rem;
}

/* ==========================================================================
   Responsive Adaptations (Breakpoints)
   ========================================================================== */

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1.1fr 1fr;
        gap: 2.5rem;
    }
    
    .features-horizontal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .partners-logo-grid {
        gap: 1.5rem;
    }
}

/* Small Laptops / Tablets (max-width: 900px) */
@media (max-width: 900px) {
    .nav-links, #header-cta-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Change hero split to single column */
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text-block {
        align-items: center;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .subtitle {
        max-width: 600px;
    }
    
    /* Stack bottom grids to single/double columns */
    .features-horizontal-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .features-horizontal-grid .feature-card {
        min-height: auto;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 1fr;
        align-items: center;
    }
    
    .features-horizontal-grid .card-icon-wrapper {
        margin-bottom: 0;
    }
    
    .features-horizontal-grid .card-arrow-wrapper {
        margin-top: 0;
    }
    
    .partners-logo-grid {
        justify-content: center;
        gap: 2rem 3rem;
    }
}

/* Burger Animation states */
.mobile-menu-toggle.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: calc(var(--header-height) + 1.5rem) 1.2rem 3rem 1.2rem;
    }
    
    .hero-section {
        gap: 2.2rem;
    }
    
    .main-title {
        font-size: 2.3rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
    }
    
    .cta-actions .btn, .cta-actions .btn-text {
        width: 100%;
        justify-content: center;
    }
    
    .feature-card {
        padding: 1.5rem;
        gap: 1.2rem;
    }
    
    .card-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .card-icon {
        width: 22px;
        height: 22px;
    }
    
    .features-horizontal-grid .feature-card {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }
    
    .features-horizontal-grid .card-icon-wrapper {
        display: none; /* Hide icon wrapper on very small screens to fit text */
    }
    
    .modal-window {
        padding: 2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Desktop Scroll-free (Single Screen) Layout Mode
   ========================================================================== */
@media (min-width: 901px) and (min-height: 650px) {
    body {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-top: calc(var(--header-height) + 1.8rem);
        padding-bottom: 1rem;
        height: calc(100vh - var(--header-height) - 90px);
        box-sizing: border-box;
        min-height: 0;
    }
    
    .hero-section {
        flex: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: 1.22fr 1.05fr;
        gap: 4.5rem;
        align-items: stretch;
    }
    
    .hero-text-block {
        justify-content: center;
        padding-bottom: 0;
    }
    
    .subtitle {
        margin-bottom: 1.8rem;
    }
    
    .features-vertical-stack {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.5rem;
        min-height: 0;
    }
    
    .features-vertical-stack .feature-card {
        flex: 1;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 0.45rem 0.8rem;
        min-height: 0;
        gap: 0.9rem;
    }
    
    .features-vertical-stack .card-icon-wrapper {
        width: 28px;
        height: 28px;
        border-radius: var(--radius-sm);
    }
    
    .features-vertical-stack .card-icon {
        width: 12px;
        height: 12px;
    }
    
    .features-vertical-stack .card-title {
        font-size: 0.74rem;
    }
    
    .features-vertical-stack .card-desc {
        font-size: 0.65rem;
    }
    
    .tech-footer {
        flex-shrink: 0;
        height: 80px;
        padding: 0.8rem 0;
        margin-top: 0;
        display: flex;
        align-items: center;
    }
    
    .footer-container {
        gap: 0.8rem;
    }
}
