:root {
    --primary-color: #8B4513;
    --primary-dark: #6D4C41;
    --secondary-color: #D2B48C;
    --accent-color: #8B4513;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #FFFDD0;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Mobile adjustments to keep hero title fully visible */
@media (max-width: 576px) {
    .hero-section {
        padding-top: 130px; /* extra space for fixed navbar and safe areas */
        overflow: visible;  /* prevent clipping of large title */
    }
    .hero-title { margin-top: 0; }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    left: 16px;
    bottom: 16px;
    max-width: 360px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-large);
    padding: 16px;
    z-index: 1050; /* above navbar */
}

.cookie-consent h4 {
    font-size: 1rem;
    margin: 0 0 6px 0;
    color: var(--text-dark);
}

.cookie-consent p { 
    margin: 0 0 12px 0; 
    color: var(--text-light);
    font-size: 0.95rem;
}

.cookie-consent .cookie-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent .btn-accept {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
}

.cookie-consent .btn-accept:hover {
    opacity: 0.95;
}

.cookie-consent .link-cookie {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent .link-cookie:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cookie-consent .btn-close-cc {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.cookie-consent .btn-close-cc:hover {
    color: var(--text-dark);
}

@media (max-width: 576px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* Cookie Preferences Modal */
.cc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    z-index: 1100;
}

.cc-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 560px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-large);
    z-index: 1110;
}

.cc-modal .cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.cc-modal .cc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.cc-modal .cc-body {
    padding: 16px;
    color: var(--text-dark);
}

.cc-modal .cc-desc { color: var(--text-light); margin-bottom: 12px; }

.cc-modal .cc-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 0; 
    border-bottom: 1px dashed var(--border-color);
}
.cc-modal .cc-row:last-child { border-bottom: none; }

.cc-modal .cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border-color);
}

.cc-btn { 
    border-radius: 10px; 
    padding: 0.55rem 0.95rem; 
    font-weight: 600; 
    border: 1px solid var(--border-color);
}
.cc-btn-primary { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); 
    color: #fff; border: none; 
}
.cc-btn-outline { background: #fff; color: var(--text-dark); }
.cc-close-x { background:#fff; border:1px solid var(--border-color); width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; }

@media (max-width: 576px) {
  .cc-modal { width: calc(100% - 24px); }
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    overflow-x: hidden;
}

/* Typography */
.brand-text {
    font-family: 'Marck Script', cursive;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 400;
}

.brand-text-large {
    font-family: 'Marck Script', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: 400;
    line-height: 1.1;
}

.brand-text-small {
    font-family: 'Marck Script', cursive;
    font-size: 1.5rem;
    color: var(--background-white);
    font-weight: 400;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    text-decoration: none;
}

.navbar-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius:40px
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: var(--primary-dark);
}

/* Navbar active/Focus states */
.navbar .nav-link.active,
.navbar .nav-link:focus,
.navbar .nav-link:active {
    color: #ffffff !important;
    background-color: var(--primary-dark);
}

/* Navbar underline/bottom indicator */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 2px;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
    background: #ffffff;
    opacity: 0.9;
}

.navbar .nav-link.active::after {
    background: #ffffff;
    opacity: 1;
}

/* Mobile tap feedback */
@media (hover: none) {
  .navbar .nav-link:active {
    opacity: 0.9;
    transform: scale(0.98);
  }
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    background: var(--background-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(210, 180, 140, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    margin-bottom: 3rem;
}

/* Hero download badges container styling */
.hero-buttons .download-badges {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    background: var(--background-white);
    box-shadow: var(--shadow-large);
}

/* Ensure individual badges don't show inline borders */
.hero-buttons .download-badge {
    border: 0 !important;
    padding: 6px 8px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-buttons .download-badge:hover {
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-stats {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mockup-image {
height: 800px;
width: 1800px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transform-origin: center;
}

.hero-mockup-image:hover {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2));
}

.daily-word-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

.word-date {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.word-title {
    font-family: 'Marck Script', cursive;
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.word-meaning {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.word-origin {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.word-example {
    font-style: italic;
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Features Section */
.features-section {
    padding: 120px 0;
    background: var(--background-white);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--background-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--background-white);
    color: var(--text-dark);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.cta-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

/* Download Section */
.download-section {
    padding: 120px 0;
    background: var(--background-white);
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.download-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.download-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.store-badge {
    height: 60px;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

.download-stats .stat {
    text-align: center;
}

.download-stats .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.download-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Download Phone Image */
.download-phone-image {
    height: 100%;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transform-origin: center;
}

.download-phone-image:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2));
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--background-white);
    color: var(--text-dark);
    text-align: center;
}

.footer-brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand {
    font-family: 'Marck Script', cursive;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

.footer-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.9;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--primary-dark);
}

.footer-copyright {
    opacity: 0.6;
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* Breadcrumb (theme colors) */
.breadcrumb {
    --bs-breadcrumb-divider: '›';
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary-color);
}

.breadcrumb .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb .breadcrumb-item.active {
    color: var(--text-dark);
    opacity: 0.85;
    font-weight: 600;
}

/* Blog page link theming */
.blog-card h2 a {
    color: var(--text-dark);
}

.blog-card h2 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    /* ensure consistent left alignment */
    display: grid !important;
    grid-template-columns: 56px 1fr;
    column-gap: 12px; /* close to Bootstrap gap-3 (1rem) */
    align-items: start;
}

/* When no icon is desired on a legal row */
.legal-item.no-icon {
    grid-template-columns: 1fr;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-text-large {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .download-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .download-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-mockup-image {
        max-height: 600px;
    }
    
    .floating-phones {
        height: 300px;
    }
    
    .download-phone-image {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 180px;
    }
    
    .features-section,
    .screenshots-section,
    .download-section {
        padding: 80px 0;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-stats {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styles */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}