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

@keyframes drawLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes aurora {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.2); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.5); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1.2); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glare {
    from { transform: translateX(-100%) skewX(-20deg); }
    to { transform: translateX(200%) skewX(-20deg); }
}

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


:root {
    --bg-color: #0d0d10;
    --text-color: #e0e0e0;
    --text-muted: #999;
    --border-color: #222;
    --primary-color: #00aeff;
    --secondary-color: #4CAF50;
    --card-bg-dark: #2d2d2d;
    --primary-glow: rgba(0, 174, 255, 0.4);
    --secondary-glow: rgba(76, 175, 80, 0.45);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before, body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vh;
    z-index: -1;
    filter: blur(100px);
}
body::before {
    background: radial-gradient(circle, var(--primary-color), transparent 40%);
    animation: aurora 25s linear infinite;
    opacity: 0.15;
}
body::after {
    background: radial-gradient(circle, var(--secondary-color), transparent 40%);
    animation: aurora 30s linear infinite reverse;
    opacity: 0.1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 90vh;
    margin-bottom: 100px;
}

.hero-content {
    text-align: left;
}

h1 {
    font-size: 5em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -3px;
    line-height: 1.05;
}
h1 span {
    display: inline-block;
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
h1 span:first-child { animation-delay: 0.2s; }
h1 span:last-child { animation-delay: 0.4s; }


h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 25px;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: drawLine 0.8s ease-out 1s forwards;
}

.tagline {
    font-size: 1.1em;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 400px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.2s forwards;
}

.hero-actions .button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.role-button {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    border: none;
    border-radius: 16px;
    text-decoration: none;
    background-color: var(--card-bg-dark);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.7s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.role-button.owner { animation-delay: 1.4s; }
.role-button.pet { animation-delay: 1.6s; }

.role-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%) skewX(-20deg);
}
.role-button:hover::before {
    animation: glare 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.role-icon, .role-title, .role-desc {
    transition: color 0.3s ease, opacity 0.3s ease;
}

.role-button.owner .role-icon { color: var(--primary-color); }
.role-button.pet .role-icon { color: var(--secondary-color); }
.role-title { color: var(--text-color); }
.role-desc { color: var(--text-muted); }

.role-button:hover {
    transform: translateY(-5px);
    color: #fff;
}
.role-button:active {
    transform: translateY(-2px);
}

.role-button.owner:hover {
    background-color: var(--primary-color);
    box-shadow: 0 5px 25px var(--primary-glow);
}

.role-button.pet:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 5px 25px var(--secondary-glow);
}

.role-button:hover .role-icon,
.role-button:hover .role-title,
.role-button:hover .role-desc {
    color: #fff;
}

.role-icon { font-size: 2.5em; margin-right: 25px; min-width: 40px; }
.role-text { text-align: left; }
.role-title { font-size: 1.4em; font-weight: 700; }
.role-desc { font-size: 0.9em; font-weight: 400; }


.features {
    text-align: center;
    margin-bottom: 100px;
}

h2 {
    font-size: 2.8em;
    color: #f0f0f0;
    margin-bottom: 60px;
    font-weight: 700;
    letter-spacing: -1px;
    opacity: 0;
    animation: slideInFromBottom linear;
    animation-timeline: view();
    animation-range-start: 100px;
    animation-range-end: 400px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(10,10,10,0.3);
    transition: all 0.3s ease;
    position: relative;

    opacity: 0;
    animation: slideInFromBottom linear forwards;
    animation-timeline: view();
    animation-range-start: 100px;
    animation-range-end: 400px;
}

.feature::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border: 1px solid transparent;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature:hover::after {
    opacity: 1;
}
.feature:nth-child(odd):hover::after { border-color: var(--primary-color); box-shadow: 0 0 15px var(--primary-glow); }
.feature:nth-child(even):hover::after { border-color: var(--secondary-color); box-shadow: 0 0 15px var(--secondary-glow); }

.feature:hover {
    transform: translateY(-5px);
    background: rgba(25,25,25,0.5);
}

.feature-icon {
    font-size: 1.8em;
    color: var(--primary-color);
    padding-top: 2px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature:hover .feature-icon {
    transform: rotate(-10deg) scale(1.2);
}
.feature:nth-child(even) .feature-icon { color: var(--secondary-color); }
h3 { font-size: 1.2em; color: #f0f0f0; font-weight: 500; margin: 0 0 5px 0; }
.feature-text p { color: var(--text-muted); margin: 0; font-size: 0.95em; line-height: 1.5; }


.footer {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9em;
    color: #666;
}
.footer p { margin-bottom: 8px; color: #666; font-weight: 300; }
.footer p:last-of-type { color: #888; }
.footer .fa-heart { color: var(--primary-color); transition: color 0.3s, transform 0.3s; }
.footer p:last-of-type:hover .fa-heart { color: #ff6b81; transform: scale(1.2); }


@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        margin-top: 40px;
        margin-bottom: 80px;
        gap: 50px;
    }
    .hero-content { text-align: center; }
    h1 { font-size: 3.5em; }
    h1::after { margin-left: auto; margin-right: auto; transform-origin: center; }
    .tagline { margin: 0 auto; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.8em; letter-spacing: -1.5px; }
    .tagline { font-size: 1.1em; }
    .features { margin-bottom: 60px; }
    h2 { font-size: 2.2em; }
    .feature { flex-direction: column; align-items: flex-start; }
    .feature-icon { padding-top: 0; margin-bottom: 10px; }
}