* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

.small {
    padding: 6px 12px;
    font-size: 14px;
}

.full-width {
    width: 100%;
    justify-content: center;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: #1e293b;
}

.nav-logo i {
    color: #3b82f6;
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3b82f6;
}

.hero {
    padding: 140px 0 80px;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.feature-item i {
    color: #3b82f6;
}

.waitlist-counter {
    background: #f8fafc;
    padding: 24px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.counter-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.counter-text {
    color: #64748b;
    font-weight: 500;
}

#waitlist-count {
    color: #3b82f6;
    font-weight: 700;
}

.join-waitlist-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-waitlist-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.products, .stats {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr; /* stack cards on mobile */
    }
}

.coming-soon-card {
    position: relative;
    filter: blur(1px);
    opacity: 0.7;
    pointer-events: auto; /* still clickable */
    transition: all 0.3s ease;
}

.coming-soon-card:hover {
    filter: blur(0);
    opacity: 1;
    cursor: pointer;
}


.product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.product-icon i {
    font-size: 28px;
    color: white;
}

.jirra-gradient {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.larrakia-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
}

.icn-gradient {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.grantsnt-gradient {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-tag {
    color: #3b82f6;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.product-description {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-features span {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.stats {
    background: #f8fafc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 8px;
}

.stat-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.stat-source {
    font-size: 14px;
    color: #64748b;
}

.footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 30px;
    margin-top: 10px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #94a3b8;
}

.footer-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-features span {
    color: #94a3b8;
    font-size: 14px;
    padding: 4px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
} 

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlide 0.3s ease-out;
}

.modal-content.large {
    max-width: 800px;
} 

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: #64748b;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Auth Form */
.auth-form {
    padding: 24px;
}

.form-tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.tab-content input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-hint {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-top: 16px;
}

/* Waitlist Form */
.waitlist-form {
    padding: 24px;
    text-align: center;
}

.waitlist-form p {
    color: #64748b;
    margin-bottom: 24px;
}

.waitlist-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 16px;
}

/* Coming Soon */
.coming-soon-content {
    padding: 40px 24px;
    text-align: center;
}

.coming-soon-icon {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 24px;
}

.coming-soon-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.coming-soon-content p {
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Product Demo */
.product-demo {
    padding: 24px;
}

#product-gif-container {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.nothing-tab{
    text-align: center;
    font-weight: bolder;
    font-size: larger;
    display: block;   /* make sure it behaves as block */
    width: 100%;      /* span full row */
    margin: 10px 0;
}

.logo-text-footer{
    color: white;
}

/* Two-column modal layout */
.modal-content.large.two-column {
    display: flex;
    flex-direction: column;
    max-width: 1000px;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 20px;
}

.product-demo {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #333;
}

.product-details ul {
    padding-left: 20px;
    list-style-type: disc;
}

.product-details p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
}

.btn-primary-last {
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
    color: #fff;
    padding: 8px 16px;       /* tighter padding */
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;   /* instead of inline-flex to shrink to text */
    margin: 10px 0;
    width: auto !important;  /* force override */
    max-width: fit-content;  /* prevents stretching */
}

.btn-primary-last:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.insights-chart {
  padding: 80px 0;
  background: #f9fafb;
}

.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: -50px;
  padding-left: 30px;
  margin-bottom: 0; /* remove unnecessary spacing */
    padding-bottom: 0;
    height: auto;
}

.analytics {
  background: #ffffff;
  padding: 80px 0;
  margin-right: 16px;
}

.modal-content.large.two-column {
    display: flex;
    flex-direction: row;  /* two columns: left=video, right=details */
    gap: 20px;            /* space between columns */
    width: 90%;           /* or 100% of modal */
    max-width: 1200px;    /* optional */
}

#product-video-container {
    flex: 1;              /* take all available space on left */
    display: flex;
    justify-content: center;
    align-items: center;
}

#product-video-container video {
    width: 100%;          /* full width */
    height: 100%;         /* fill container height */
    object-fit: cover;    /* maintain aspect ratio, crop if needed */
    border-radius: 8px;
}

.product-details {
    flex: 1;              /* take half modal width */
    overflow-y: auto;     /* scroll if content is long */
    padding: 0 20px;
}

.modal-content.large.two-column {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
}

/* For mobile screens */
@media (max-width: 768px) {
    .modal-content.large.two-column {
        flex-direction: column; /* stack video above details */
    }

    #product-video-container {
        width: 100%;
        height: 250px; /* fixed height on mobile */
    }

    #product-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#product-video {
    pointer-events: none; /* disables all interactions */
}

/* Desktop: two-column layout */
.modal-content.large.two-column {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
}

#product-gif-container {
    flex: 1; /* take full left side */
    display: flex;
    justify-content: center;
    align-items: center;
}

#product-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    pointer-events: none; /* disables user interaction */
}

.product-details {
    flex: 1; /* right side */
    overflow-y: auto;
    padding: 0 20px;
}

/* Mobile: stack video above content */
@media (max-width: 768px) {
    .modal-content.large.two-column {
        flex-direction: column; /* stack vertically */
    }

    #product-gif-container {
        width: 100%;
        height: auto; /* adjust height naturally */
        margin-bottom: 20px; /* space below video */
    }

    #product-video {
        width: 100%;
        height: 200px; /* fixed height for mobile */
        object-fit: cover;
    }

    .product-details {
        width: 100%;
        padding: 0 10px;
    }
}


/* Mobile: stack video above content */
@media (max-width: 768px) {
    .modal-content.large.two-column {
        flex-direction: column; /* stack vertically */
    }

    .product-modal-body {
        display: flex !important;   /* override grid */
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
    }

    #product-gif-container {
        width: 100%;
        height: 250px; /* or auto */
        margin-bottom: 20px;
    }

    #product-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-details {
        width: 100%;
        padding: 0 10px;
    }
}
