/* Modern SaaS Styling for Daftaron */

:root {
    /* Extracted Brand Colors from New Logo */
    --primary: #112340;       /* Dark Navy from logo typography/accents */
    --primary-light: #1e3a66;
    --secondary: #0e57b7;     /* Vibrant Blue from logo "D" */
    --secondary-light: #2563eb;
    --secondary-dark: #09479b;
    
    /* Semantic Colors */
    --bg-page: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    
    --text-main: #0f172a;
    --text-heading: #112340;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Utilities */
    --border-color: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(17, 35, 64, 0.05), 0 2px 4px -1px rgba(17, 35, 64, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(17, 35, 64, 0.05), 0 4px 6px -2px rgba(17, 35, 64, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(17, 35, 64, 0.05), 0 10px 10px -5px rgba(17, 35, 64, 0.02);
    --shadow-blue: 0 10px 25px -5px rgba(14, 87, 183, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Theme Transition */
    --transition-speed: 0.3s;
}

/* Dark Mode Variables */
html.dark-mode {
    --bg-page: #0b1121;
    --bg-light: #111827;
    --bg-card: #1e293b;
    
    --text-main: #f8fafc;
    --text-heading: #ffffff;
    --text-muted: #94a3b8;
    --text-light: #475569;
    
    --border-color: #334155;
    
    --primary: #112340;
    --primary-light: #1e3a66;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Typography */
h1, h2, h3, h4, .logo-text, .plan-name {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.center {
    text-align: center;
}

/* Common Components */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(14, 87, 183, 0.1);
    color: var(--secondary);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.section-header {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-header.center {
    margin: 0 auto 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

.highlight {
    color: var(--secondary);
}

/* Theme Toggle Styles */
.theme-toggle {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all var(--transition-speed);
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.dark-mode-icon { display: none; }
.light-mode-icon { display: flex; }

.dark-mode .dark-mode-icon { display: flex; }
.dark-mode .light-mode-icon { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-heading);
    border-color: var(--text-heading);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--primary);
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    padding-top: calc(24px + env(safe-area-inset-top));
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    padding-top: calc(16px + env(safe-area-inset-top));
    box-shadow: var(--shadow-sm);
}

.dark-mode .navbar.scrolled {
    background-color: rgba(11, 17, 33, 0.85);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-heading);
    cursor: pointer;
}

/* Base styles for mobile menu (hidden on desktop) */
.mobile-menu-overlay, .mobile-menu {
    display: none;
}

/* Logo Cropping */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    position: relative;
}

.beta-badge {
    background-color: #f59e0b;
    color: white;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 2px;
}

.logo-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    border-radius: 8px;
}

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


/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240, 245, 252, 1) 0%, rgba(255, 255, 255, 1) 100%);
    transition: background var(--transition-speed);
}

.dark-mode .hero {
    background: linear-gradient(135deg, #0b1121 0%, #0f172a 100%);
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.shape-1 {
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(105, 176, 100, 0.15); /* Green soft bg */
}

.shape-2 {
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: rgba(17, 35, 64, 0.08); /* Blue soft bg */
}

.dark-mode .shape-1 { background: rgba(14, 87, 183, 0.1); }
.dark-mode .shape-2 { background: rgba(30, 58, 102, 0.15); }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 54px;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit';
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-divider {
    width: 2px;
    height: 40px;
    background-color: var(--border-color);
}

.dark-mode .stat-number {
    color: var(--text-heading);
}

/* Dashboard Visual */
.hero-visual {
    position: relative;
    perspective: 1200px;
}

.dashboard-preview {
    position: relative;
    width: 100%;
}

.dashboard-preview.custom-stack {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-dash-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.custom-stack .main-dash-img {
    position: absolute;
    top: 5%;
    right: 5%;
    width: auto;
    max-width: 80%;
    height: 85%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 6px solid white;
    background-color: white;
    box-shadow: -15px 25px 50px rgba(17, 35, 64, 0.2);
    transform: rotateY(-12deg) rotateX(4deg) scale(1.0);
    z-index: 3;
    transition: transform 0.5s ease, background-color var(--transition-speed), border-color var(--transition-speed);
}

.dark-mode .custom-stack .main-dash-img,
.dark-mode .mobile-dash-img {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.custom-stack .main-dash-img:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    z-index: 4;
}

.mobile-dash-img {
    position: absolute;
    bottom: 5%;
    left: 8%;
    width: auto;
    height: 75%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(17, 35, 64, 0.25);
    border: 4px solid white;
    transform: rotateY(15deg) rotateX(5deg) scale(1.0);
    z-index: 2;
    transition: transform 0.5s ease;
}

.mobile-dash-img:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
    z-index: 4;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    transition: background var(--transition-speed), border var(--transition-speed);
}

.dark-mode .floating-card {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.top-card {
    top: 40px;
    left: -40px;
}

.bottom-card {
    bottom: 40px;
    right: -40px;
    animation-delay: 3s;
}

.f-card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(14, 87, 183, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.dark-mode .f-card-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.f-card-icon.warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.f-card-text {
    display: flex;
    flex-direction: column;
}

.f-card-text strong {
    font-size: 16px;
    color: var(--text-heading);
}

.f-card-text span {
    font-size: 13px;
    color: var(--text-muted);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}


/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.platform-card {
    background: var(--bg-card);
    padding: 40px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.platform-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--text-muted);
    color: white;
}

.platform-card.active .platform-badge {
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.4);
}

.platform-card > i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 24px;
    display: block;
}

.problem-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.problem-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(239, 68, 68, 0.1); /* Red tint for problem */
    color: #ef4444;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.problem-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.problem-summary-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background-color: rgba(14, 87, 183, 0.05);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary);
    max-width: 800px;
    margin: 0 auto;
}

.dark-mode .problem-summary-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--secondary);
}

.problem-summary-box i {
    font-size: 32px;
    color: var(--secondary);
}


/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.solution-list li {
    display: flex;
    gap: 20px;
}

.s-icon {
    width: 56px;
    height: 56px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.s-text strong {
    font-family: 'Outfit';
    font-size: 20px;
    color: var(--text-heading);
    display: block;
    margin-bottom: 6px;
}

.solution-visual {
    position: relative;
    padding: 40px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background var(--transition-speed);
}

.dark-mode .solution-visual {
    background: linear-gradient(45deg, #1e293b, #0f172a);
    border: 1px solid var(--border-color);
}

.app-mockups {
    position: relative;
    width: 100%;
    height: 100%;
}

.mockup {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    position: absolute;
    width: 320px;
}

.dark-mode .mockup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.mockup-1 {
    top: 20%;
    left: 10%;
    z-index: 2;
}

.mockup-1 h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0088cc;
    margin-bottom: 16px;
}

.bot-msg {
    background-color: var(--bg-light);
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    margin-bottom: 12px;
    font-size: 14px;
}

.bot-msg strong {
    color: var(--primary);
}

.dark-mode .bot-msg strong {
    color: var(--secondary);
}

.mockup-2 {
    bottom: 10%;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 20px;
}


/* Features Grid Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-speed);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
}

.f-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    color: white;
}

.bg-blue { background-color: #3b82f6; }
.bg-purple { background-color: #8b5cf6; }
.bg-pink { background-color: #ec4899; }
.bg-orange { background-color: #f97316; }
.bg-teal { background-color: #0088cc; }
.bg-green { background-color: var(--secondary); }

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}


/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-speed);
}

.pricing-card.popular {
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.plan-name {
    font-size: 24px;
    margin-bottom: 8px;
}

.plan-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price {
    font-family: 'Outfit';
    font-size: 48px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
}

.price-details {
    display: flex;
    flex-direction: column;
}

.currency {
    font-weight: 600;
    font-size: 18px;
}

.period {
    color: var(--text-muted);
    font-size: 14px;
}

.plan-features {
    margin-bottom: 40px;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.plan-features i {
    color: var(--secondary);
    font-size: 20px;
    margin-top: 2px;
}

.sub-feat {
    color: var(--text-muted);
    font-size: 13px;
    display: block;
    margin-left: 32px;
}

.plan-btn {
    width: 100%;
}


/* Overage limits */
.overage-limits {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-speed);
}

.overage-header {
    padding: 20px 32px;
    background-color: var(--bg-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-speed);
}

.overage-header h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.overage-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.o-grid {
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    overflow-x: auto;
}

.o-item {
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
    min-width: max-content;
    gap: 32px;
}


/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-speed);
}

.dark-mode .cta-box {
    background: linear-gradient(135deg, #1e3a66, #112340);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 24px;
}

.cta-box p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}


/* Footer */
.footer {
    background-color: var(--bg-light);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
    transition: background var(--transition-speed), border-color var(--transition-speed);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-text {
    font-size: 28px;
}

.footer-desc {
    margin-top: 24px;
    color: var(--text-muted);
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--secondary);
    font-size: 20px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}


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

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: var(--text-main);
}

.active-platform:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.p-icon {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.platform-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.disabled-platform {
    opacity: 0.6;
    background-color: var(--bg-light);
    cursor: default;
}

.soon-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

/* Screenshots Section */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.screenshot-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: block;
}

.screenshot-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}


/* Animations */
.fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid, .solution-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 42px;
    }
    .hero {
        padding-top: 140px;
    }
    .hero-visual {
        margin-top: 60px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    .custom-stack {
        height: auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 30px;
        padding-top: 20px;
        position: relative !important;
    }
    .custom-stack .main-dash-img, 
    .mobile-dash-img {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        box-shadow: var(--shadow-lg) !important;
        border: 1px solid var(--border-color) !important;
    }
    .mobile-dash-img {
        margin-top: 0;
    }
    .floating-card {
        display: none; /* Simplify for smaller screens */
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pricing-card.popular {
        transform: scale(1);
    }
    .features-grid, .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .platforms-grid, .screenshots-grid {
        grid-template-columns: 1fr;
    }
    .screenshot-img {
        height: 250px;
    }
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 30px;
        line-height: 1.25;
    }
    .hero-desc {
        font-size: 15px;
    }
    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }
    .pricing-grid, .problem-grid, .features-grid, .o-grid {
        grid-template-columns: 1fr;
        overflow-x: auto; /* Added for o-grid */
    }
    
    .o-item {
        min-width: unset;
        width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-cta .btn {
        width: 100%;
    }

    .hero-visual {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .mobile-menu-overlay, .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-page);
        z-index: 2000;
        transition: right 0.3s ease, background-color var(--transition-speed);
        padding: 24px;
        padding-top: calc(24px + env(safe-area-inset-top));
        flex-direction: column;
    }
    .mobile-menu.active {
        right: 0;
    }
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 48px;
    }
    .close-btn {
        background: none;
        border: none;
        font-size: 32px;
        color: var(--text-heading) !important;
        cursor: pointer;
    }
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .mobile-nav-links li {
        text-align: center;
    }
    .mobile-nav-links a {
        font-size: 20px;
        font-weight: 600;
        color: var(--text-heading) !important;
        transition: color 0.3s ease;
    }
    .mobile-nav-links a:hover {
        color: var(--secondary) !important;
    }
    .mobile-nav-links .btn {
        margin-top: 16px;
        width: 100%;
        color: white;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cta-box h2 {
        font-size: 32px;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .solution-visual {
        min-height: auto;
        padding: 40px 20px;
    }
    .mockup {
        position: relative;
        width: 100%;
        margin-bottom: 20px;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .overage-content .o-grid {
        display: flex;
        flex-direction: column;
    }
}
