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

:root {
    --primary-color: #2A9D8F;
    --primary-dark: #238276;
    --accent-color: #E76F51;
    --background-light: #FAF7F2;
    --background-cream: #F5EFE6;
    --surface-white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-light: #E8E3D8;
    --border-medium: #D4CFC4;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-light);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Touch-friendly buttons */
.btn,
.social-link,
.copy-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

/* Improve touch target sizes on mobile */
@media (max-width: 768px) {
    .btn,
    .social-link,
    .copy-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-white);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 4rem;
    position: relative;
    background: var(--background-cream);
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
    max-width: 580px;
}

.ticker-badge {
    display: inline-block;
    background: var(--surface-white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -2px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface-white);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.contract-box {
    background: var(--surface-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.25rem;
    max-width: 600px;
}

.contract-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.contract-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contract-code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    background: var(--background-cream);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--background-cream);
    border-color: var(--border-medium);
}

.copy-btn svg {
    width: 18px;
    height: 18px;
}

.copy-btn.copied {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Dog Peeking Animation */
.dog-peek {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    overflow: hidden;
}

.dog-peek img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    transform: translateX(100%);
    animation: slideInFromRight 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes slideInFromRight {
    to {
        transform: translateX(0);
    }
}

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

/* Videos Section */
.videos-section {
    padding: 6rem 0;
    background: var(--background-light);
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: var(--surface-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile video optimization */
@media (max-width: 768px) {
    .video-card {
        min-height: 280px;
    }
    
    .video-card video {
        object-fit: contain;
        background: var(--background-cream);
    }
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--surface-white);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Responsive Design */

/* Large Desktop */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .dog-peek {
        height: 450px;
    }
    
    .dog-peek img {
        max-width: 400px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .dog-peek {
        height: 400px;
    }
    
    .dog-peek img {
        max-width: 350px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.35rem;
    }
    
    .social-links {
        gap: 0.4rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .contract-box {
        max-width: 100%;
    }
    
    .dog-peek {
        height: 350px;
    }
    
    .dog-peek img {
        max-width: 320px;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .videos-section {
        padding: 4rem 0;
    }
}

/* Mobile Large */
@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .hero {
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .ticker-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
        margin-bottom: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .contract-box {
        padding: 1rem;
    }
    
    .contract-label {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }
    
    .contract-content {
        gap: 0.5rem;
    }
    
    .contract-code {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
    
    .copy-btn {
        padding: 0.4rem;
    }
    
    .copy-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .dog-peek {
        height: 280px;
    }
    
    .dog-peek img {
        max-width: 260px;
    }
    
    .section-title {
        font-size: 1.875rem;
        margin-bottom: 2.5rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .videos-section {
        padding: 3rem 0;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer-text,
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 0.65rem 0;
    }
    
    .logo-text {
        font-size: 1.15rem;
    }
    
    .social-links {
        gap: 0.35rem;
    }
    
    .social-link {
        width: 34px;
        height: 34px;
    }
    
    .social-link svg {
        width: 15px;
        height: 15px;
    }
    
    .hero {
        padding-top: 75px;
    }
    
    .ticker-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.85rem;
    }
    
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    
    .btn svg {
        width: 16px;
        height: 16px;
    }
    
    .contract-box {
        padding: 0.875rem;
        border-radius: 10px;
    }
    
    .contract-code {
        font-size: 0.65rem;
    }
    
    .dog-peek {
        height: 240px;
    }
    
    .dog-peek img {
        max-width: 220px;
    }
    
    .section-title {
        font-size: 1.625rem;
        margin-bottom: 2rem;
    }
    
    .video-card {
        border-radius: 12px;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .dog-peek {
        height: 200px;
    }
    
    .dog-peek img {
        max-width: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .dog-peek {
        height: 250px;
    }
    
    .dog-peek img {
        max-width: 200px;
    }
}

/* Smooth Transitions */
* {
    transition-property: transform, box-shadow, background-color, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

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

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