:root {
    --primary: #FFD700;
    /* Tin Yellow */
    --primary-hover: #E6C200;
    --bg-dark: #0F172A;
    /* Slate 900 */
    --bg-card: #1E293B;
    /* Slate 800 */
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo .highlight {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Specificity override for buttons in navbar */
.nav-links .btn-primary {
    color: #000 !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    padding: 10px 24px;
    border: 2px solid var(--text-muted);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.1), transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screen-content {
    width: 100%;
    height: 100%;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 32px;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-card);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    /* alignment */
    align-items: center;
    /* alignment */
    height: 40px;
    /* fixed height to match text size */
}

.feature-icon-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Download */
.download {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-dark), #000);
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download p {
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile */
/* Mobile Nav Trigger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Navbar */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding-top: 80px;
        transition: 0.3s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    /* Hero */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Phone Mockup Scaling */
    .phone-mockup {
        width: 260px;
        height: 520px;
        border-width: 6px;
    }

    /* General Padding */
    .section-title h2 {
        font-size: 2rem;
    }

    .features {
        padding: 60px 0;
    }
}

/* --- Corporate Theme Overrides --- */
.highlight-blue {
    color: #3b82f6;
    /* Blue 500 */
}

.corporate-hero {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 50%);
    text-align: center;
}

.center-align .hero-text {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.btn-blue {
    background-color: #3b82f6;
    color: white;
}

.btn-blue:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-controls {
    display: flex;
    gap: 10px;
    font-weight: 600;
}

.lang-controls a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.lang-controls a:hover,
.lang-controls a.active {
    color: white;
}

.portfolio-card {
    border-top: 4px solid var(--primary);
    /* Default Tin Yellow for Tin Reminder Card */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tin-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: black;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.corporate-section {
    padding: 80px 0;
}

.corporate-section.dark {
    background: #000;
}

/* --- Scroll Animations --- */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grids */
.features-grid .feature-card:nth-child(2) {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(4) {
    transition-delay: 0.3s;
}