/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #FF6B6B;
    --dark: #1a1a2e;
    --light: #ffffff;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--light);
}

html {
    scroll-behavior: smooth;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.language-selector {
    padding: 0.5rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: white;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.language-selector:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.language-selector:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
    opacity: 0.5;
}

.hero-background::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #667eea33, transparent);
    top: -300px;
    right: -200px;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero-background::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #764ba233, transparent);
    bottom: -200px;
    left: -100px;
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 15px;
    position: relative;
    animation: scroll 2s infinite;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--gray);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes scroll {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; transform: translateY(10px); }
}

/* ===== Apps Section ===== */
.apps-section {
    padding: 120px 0;
    background: var(--gray-light);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.25rem;
    margin-bottom: 4rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.app-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: var(--transition);
}

.app-card.nook::before {
    background: var(--gradient-1);
}

.app-card.makenote::before {
    background: var(--gradient-2);
}

.app-card.beforeyouforget::before {
    background: var(--gradient-3);
}

.app-card.myanimaldiary::before {
    background: var(--gradient-4);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 12px;
}

.app-icon svg,
.app-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.app-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.app-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.app-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: var(--gray-light);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
}

.btn-app {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-app:hover {
    background: var(--primary);
    transform: translateX(5px);
}

/* ===== About Section ===== */
.about-section {
    padding: 120px 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 120px 0;
    background: var(--gray-light);
}

.contact-info {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===== App Detail Pages ===== */
.app-detail-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.app-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.app-detail-hero.nook::before {
    background: var(--gradient-1);
}

.app-detail-hero.makenote::before {
    background: var(--gradient-2);
}

.app-detail-hero.beforeyouforget::before {
    background: var(--gradient-3);
}

.app-detail-hero.myanimaldiary::before {
    background: var(--gradient-4);
}

.app-detail-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-detail-text h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.app-detail-text p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.app-detail-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-detail-icon svg,
.app-detail-icon img {
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.features-section {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem;
    background: var(--gray-light);
    border-radius: 16px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.nook .feature-icon {
    background: var(--gradient-1);
}

.makenote .feature-icon {
    background: var(--gradient-2);
}

.beforeyouforget .feature-icon {
    background: var(--gradient-3);
}

.myanimaldiary .feature-icon {
    background: var(--gradient-4);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

.cta-section {
    padding: 100px 0;
    background: var(--gray-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.app-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.sub-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.sub-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.sub-link:hover {
    color: var(--dark);
}

/* ===== FAQ, Terms, Privacy Pages ===== */
.content-page {
    padding: 140px 0 100px;
    min-height: 100vh;
}

.content-page h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.content-page .subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.faq-item p {
    color: var(--gray);
    line-height: 1.7;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.content-section p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* ===== MakeNote Video Section ===== */
.app-video-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: #000;
}

.app-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.app-logo-badge {
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    margin-bottom: 1rem !important;
}

.hero-description {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
}

.btn-primary svg {
    vertical-align: middle;
}

/* ===== Intent Recognition Section ===== */
.how-it-works-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.intent-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.intent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.intent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.intent-card:hover::before {
    opacity: 0.05;
}

.note-card {
    border-left-color: #3b82f6;
}

.note-card::before {
    background: #3b82f6;
}

.todo-card {
    border-left-color: #10b981;
}

.todo-card::before {
    background: #10b981;
}

.reminder-card {
    border-left-color: #f59e0b;
}

.reminder-card::before {
    background: #f59e0b;
}

.event-card {
    border-left-color: #ef4444;
}

.event-card::before {
    background: #ef4444;
}

.intent-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.intent-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.intent-card .example {
    font-size: 1rem;
    font-style: italic;
    color: var(--gray);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.intent-card .description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== MakeNote CTA Section ===== */
.makenote-cta {
    background: linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
}

.makenote-cta h2,
.makenote-cta p {
    color: white;
}

.makenote-cta .btn-primary {
    background: white;
    color: #FF8C42;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.makenote-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.02);
}

.cta-subtext {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem !important;
    margin-top: 1rem !important;
}

.makenote-cta .sub-link {
    color: rgba(255, 255, 255, 0.9);
}

.makenote-cta .sub-link:hover {
    color: white;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links a:hover {
        background: rgba(102, 126, 234, 0.05);
    }
    
    .language-selector {
        margin: 1rem 2rem;
        width: calc(100% - 4rem);
    }
    
    .hamburger {
        display: flex;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-detail-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .app-links {
        flex-direction: column;
    }
}
