/* Using Satoshi font from Fontshare */
/* Font weights loaded: 300 (Light), 400 (Regular), 500 (Medium), 500i (Medium Italic), 700 (Bold), 900 (Black) */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    background-color: #ffffff;
    color: #20201f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Main container */
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 200px 20px 80px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Hero section wrapper */
.hero-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Initial state for animated elements - hidden by default until animation starts */
.hero-card,
.image-container,
.hero-title,
.hero-subheadline,
.hero-description,
.button-group {
    opacity: 0;
}

/* When animations are ready, trigger them */
.hero-section.animate-ready .hero-card {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}

.hero-section.animate-ready .image-container {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-section.animate-ready .hero-title {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-section.animate-ready .hero-subheadline {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.35s;
}

.hero-section.animate-ready .hero-description {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.hero-section.animate-ready .button-group {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

/* Hero card */
.hero-card {
    background-color: oklch(97.788% 0.004 56.375);
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid oklch(93.268% 0.016 262.751);
    max-width: 900px;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: row;
    overflow: visible; /* Allow overflow above the card */
    position: relative;
    align-items: flex-start;
}

/* Image container */
.image-container {
    width: 335px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-right: 32px;
    margin-top: -120px; /* Overflow upward effect - visible above card */
    display: flex;
    align-items: flex-start;
    height: 420px; /* 300px (card height) + 120px (overflow above) */
    overflow: hidden; /* Hide image below card bottom */
}

/* Hero image */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Content area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 32px 32px 0;
    overflow: visible;
    position: relative;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

/* Typography */
.hero-title {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 42px;
    font-weight: 900; /* Black */
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #20201f;
    margin: 0;
    margin-bottom: 4px;
}

.hero-subheadline {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500; /* Medium */
    font-style: italic; /* Medium Italic */
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #4a4a48;
    margin: 0;
    margin-bottom: 4px;
}

.hero-description {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 300; /* Light */
    line-height: 1.6;
    color: #686864;
    margin: 0;
    max-width: 500px;
}

.goodnotes-logo {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin: 0 2px;
}

/* Button styles */
.button-group {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700; /* Bold */
    padding: 12px 24px;
    border-radius: 9999px; /* Pill shape */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: #20201f;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 1s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0072b1;
    box-shadow: 0 6px 16px rgba(0, 114, 177, 0.3), 0 2px 6px rgba(0, 114, 177, 0.2);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #20201f;
    border: 1px solid #e5e5e4;
}

.btn-secondary:hover {
    background-color: #f9f9f8;
    border-color: #d4d4d2;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Responsive Breakpoints */

/* Mobile: max-width 767px */
@media (max-width: 767px) {
    .main-container {
        padding: 20px;
    }

    .hero-section {
        max-width: 100%;
    }

    .hero-card {
        flex-direction: column;
        height: auto; /* Remove fixed height on mobile */
        overflow: visible; /* Allow content to show fully */
        align-items: stretch;
        max-width: 100%;
    }

    .image-container {
        order: 2;
        width: 100%;
        height: auto;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0;
        overflow: visible; /* Show full image on mobile */
        border-radius: 16px 16px 0 0;
    }

    .hero-image {
        width: 100%;
        height: auto;
        object-fit: contain; /* Show full image without cropping */
        position: relative;
        display: block;
    }

    .content-area {
        order: 1;
        padding: 32px 24px;
        width: 100%;
    }

    .content-wrapper {
        gap: 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 15px;
    }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-container {
        padding: 180px 40px 80px;
        max-width: 900px;
    }

    .image-container {
        width: 280px;
        margin-right: 24px;
    }

    .content-area {
        padding: 32px 32px 32px 0;
    }

    .hero-title {
        font-size: 36px;
    }
}

/* Desktop: min-width 1024px */
@media (min-width: 1024px) {
    .main-container {
        padding: 200px 40px 80px;
    }
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Accessibility: Enhanced focus states */
.btn:focus-visible {
    outline: 3px solid #0072b1;
    outline-offset: 2px;
}

a:focus-visible {
    outline: 2px solid #0072b1;
    outline-offset: 2px;
    border-radius: 2px;
}

