/* ========== Google Fonts ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ========== CSS Variables - TilNow Brand Colors ========== */
:root {
    --tilnow-blue: #005179;
    --tilnow-blue-dark: #003c5e;
    --tilnow-teal: #008a9b;
    --tilnow-teal-light: #2bb0bc;
    --tilnow-orange: #f26522;
    --tilnow-blue-light: #a2def9;
    --tilnow-green: #94c168;
    
    --color-text: #2c3e50;
    --color-text-light: #7f8c8d;
    --color-bg-white: #ffffff;
    --color-bg-light: #fafbfc;
    --color-border: #e0e0e0;
}

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: auto;
    min-width: 700px;
}

/* ========== Navigation Bar ========== */
.navbar {
    background-color: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 100px;
    width: auto;
}

.nav-tagline {
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-top: 0;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    padding: 10px 20px;
    color: var(--tilnow-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--tilnow-orange);
    background-color: rgba(242, 101, 34, 0.05);
}

.btn-login {
    padding: 10px 24px;
    color: var(--tilnow-blue);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--tilnow-blue);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-login:hover {
    background-color: var(--tilnow-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 81, 121, 0.3);
}

.btn-register {
    padding: 10px 24px;
    background-color: var(--tilnow-orange);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--tilnow-orange);
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-register:hover {
    background-color: #d9541c;
    border-color: #d9541c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
}

/* ========== Hero Section ========== */
.hero {
    background-color: var(--color-bg-white);
    padding: 50px 0 60px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: var(--tilnow-blue);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5em;
    color: var(--tilnow-teal);
    font-weight: 500;
    margin-bottom: 25px;
    max-width: 700px;
}

.hero-description {
    font-size: 1.1em;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 0 0 150px;
    max-width: 200px;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 81, 121, 0.15));
}

/* ========== Buttons ========== */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--tilnow-orange);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #d9541c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--tilnow-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    border: 2px solid var(--tilnow-blue);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--tilnow-blue);
    color: white;
    transform: translateY(-2px);
}

/* ========== Features Section ========== */
.features {
    background-color: var(--color-bg-light);
    padding: 50px 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--tilnow-blue);
    text-align: center;
    margin-bottom: 40px;
}

.section-title .inline-logo {
    height: 2.64em;
    vertical-align: middle;
    margin: 0 0 0.1em 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-bg-white);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--tilnow-blue);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ========== Benefits Section ========== */
.benefits {
    background-color: var(--color-bg-white);
    padding: 50px 0;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 15px;
}

.benefit-item h3 {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--tilnow-teal);
    margin-bottom: 15px;
}

.benefit-item p {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 1.05em;
}

/* ========== CTA Section ========== */
.cta {
    background: linear-gradient(135deg, var(--tilnow-teal) 0%, var(--tilnow-blue) 100%);
    padding: 50px 0;
    text-align: center;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-inline-logo {
    height: 2.625em;
    vertical-align: middle;
    margin: 0 0 0.1em 0;
}

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

.cta .btn-primary {
    background-color: var(--tilnow-orange);
}

.cta .btn-primary:hover {
    background-color: #d9541c;
}

.cta .btn-secondary {
    background-color: white;
    color: var(--tilnow-blue);
    border-color: white;
}

.cta .btn-secondary:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-bg-light);
}

/* ========== Footer ========== */
.footer {
    background-color: var(--tilnow-blue);
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 5px;
}

.footer-social {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-company-info p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
    opacity: 0.85;
}

.footer-reg-info {
    font-size: 0.85em;
    opacity: 0.75;
}

.footer-bottom {
    background-color: var(--tilnow-blue-dark);
    padding: 15px 0;
    margin-top: 20px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.75;
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        flex: 0 0 125px;
        max-width: 150px;
        margin: 0 auto;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .hero {
        padding: 50px 0 70px;
    }

    .hero-container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-description {
        font-size: 1em;
    }

    .section-title {
        font-size: 2em;
    }

    .features,
    .benefits,
    .cta {
        padding: 50px 0;
    }

    .features-container,
    .benefits-container,
    .cta-container {
        padding: 0 20px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 30px 20px 20px;
    }
    
    .footer-bottom-container {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
