:root {
    --matte-blue: #1e3a5f;
    --dark-blue: #0f172a;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Custom Colors */
.text-gold {
    color: var(--gold);
}

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

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

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

.border-gold {
    border-color: var(--gold);
}

.from-gold {
    --tw-gradient-from: var(--gold);
}

.to-gold-light {
    --tw-gradient-to: var(--gold-light);
}

/* Buttons - Finger Friendly */
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--slate-900);
    font-weight: 600;
    padding: 1rem 2rem;
    min-height: 44px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Glowing Button Effect */
.btn-glow {
    animation: glow 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
                0 0 40px rgba(212, 175, 55, 0.2);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6),
                0 0 60px rgba(212, 175, 55, 0.3),
                0 10px 25px rgba(212, 175, 55, 0.4);
    animation: glow-hover 0.5s ease-in-out forwards;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
                    0 0 40px rgba(212, 175, 55, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6),
                    0 0 60px rgba(212, 175, 55, 0.3);
    }
}

@keyframes glow-hover {
    to {
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.7),
                    0 0 70px rgba(212, 175, 55, 0.4),
                    0 10px 30px rgba(212, 175, 55, 0.5);
    }
}

.btn-secondary {
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    min-height: 44px;
    border-radius: 0.5rem;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--slate-900);
    transform: translateY(-2px);
}

/* App Cards with Matte Gradient Background */
.app-card {
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.4) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(30, 58, 95, 0.3) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%,
        transparent 50%,
        rgba(212, 175, 55, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

/* Featured App Card - Premium Style */
.app-card-featured {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15) 0%,
        rgba(30, 58, 95, 0.5) 30%,
        rgba(15, 23, 42, 0.7) 70%,
        rgba(212, 175, 55, 0.15) 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
}

.app-card-featured:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.3);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--slate-900);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 0 0.9rem 0 0.9rem;
    letter-spacing: 0.5px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.app-icon-wrapper {
    margin-bottom: 1.5rem;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Process Cards with Matte Gradient */
.process-card {
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.3) 0%,
        rgba(15, 23, 42, 0.5) 50%,
        rgba(30, 58, 95, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.process-card:hover::before {
    transform: scaleX(1);
}

.process-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.process-icon {
    color: var(--gold);
    margin: 1rem auto 1.5rem;
    display: inline-block;
}

/* Blog Cards with Matte Gradient */
.blog-card {
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.4) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(30, 58, 95, 0.3) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.blog-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-list-item {
    background: linear-gradient(135deg, 
        rgba(30, 58, 95, 0.3) 0%,
        rgba(15, 23, 42, 0.5) 50%,
        rgba(30, 58, 95, 0.2) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.blog-list-item:hover {
    border-color: var(--gold);
    transform: translateX(8px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s backwards;
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--slate-900);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Tablet Breakpoint (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .process-number {
        font-size: 2.5rem;
    }
}

/* Mobile Breakpoint (below 768px) */
@media (max-width: 768px) {
    /* Typography Scaling */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Reduce horizontal padding from 10% to 5% */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    section {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    
    /* Hero Section Mobile */
    section.min-h-screen {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    section.min-h-screen h1 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    section.min-h-screen p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Button Adjustments */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Grid to Column Layout - Force single column on mobile */
    .grid.md\:grid-cols-3,
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* App Cards Mobile */
    .app-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .app-card-featured {
        transform: scale(1) !important;
        margin-bottom: 1rem;
    }
    
    .app-card-featured:hover {
        transform: translateY(-4px) scale(1) !important;
    }
    
    .app-icon {
        width: 64px;
        height: 64px;
    }
    
    .featured-badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.6rem;
    }
    
    /* Process Cards Mobile */
    .process-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .process-number {
        font-size: 2rem;
    }
    
    .process-icon svg {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    /* Blog Cards Mobile */
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-image {
        height: 150px;
    }
    
    .blog-list-item {
        padding: 1rem;
    }
    
    .blog-list-item:hover {
        transform: translateX(4px);
    }
    
    .blog-list-item .w-full.md\:w-48 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* Navigation Mobile - Ensure hamburger works */
    nav .container {
        padding: 1rem 1.25rem;
    }
    
    nav .w-10.h-10 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    nav .text-2xl {
        font-size: 1.25rem !important;
    }
    
    #mobile-menu {
        padding-bottom: 1rem;
    }
    
    #mobile-menu a {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    footer {
        padding: 1.5rem 1.25rem;
    }
    
    footer .flex.flex-col {
        gap: 1rem;
    }
    
    footer .flex.space-x-6 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Sections Padding */
    section.py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    section.pt-32 {
        padding-top: 6rem !important;
    }
    
    /* Newsletter Form Mobile */
    form.flex.flex-col input,
    form.flex.flex-col button {
        width: 100%;
        font-size: 0.95rem;
    }
    
    /* Feature Items Mobile */
    .feature-item {
        padding: 0.625rem;
        gap: 0.5rem;
    }
    
    .feature-item svg {
        width: 1.125rem !important;
        height: 1.125rem !important;
    }
    
    .feature-item span {
        font-size: 0.875rem;
    }
}

/* Small Mobile Breakpoint (below 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.3rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .app-card,
    .process-card,
    .blog-card,
    .blog-list-item {
        padding: 1.25rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    nav .text-2xl {
        font-size: 1.125rem !important;
    }
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: var(--gold);
    color: var(--slate-900);
}

::-moz-selection {
    background-color: var(--gold);
    color: var(--slate-900);
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}
