/* Main CSS for Candy AI */

/* ===== Base Styles ===== */
:root {
    --primary-color: #e91e63;
    --primary-light: #ff4081;
    --primary-dark: #c2185b;
    --accent-color: #ff6090;
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #141414;
    --card-bg: rgba(20, 20, 20, 0.8);
    --card-bg-hover: rgba(30, 30, 30, 0.9);
    --text-color: #ffffff;
    --text-color-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-pink: rgba(233, 30, 99, 0.3);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-hover: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    --shadow-pink: 0 0 30px rgba(233, 30, 99, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* ===== Navigation Styles ===== */

/* Desktop Navigation */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .candy {
    color: var(--text-color);
}

.logo .ai {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    gap: 12px;
}

.secondary-nav-btn {
    padding: 10px 20px;
    border-radius: 25px;
    background-color: transparent;
    border: 1px solid var(--border-pink);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-nav-btn:hover {
    background-color: rgba(233, 30, 99, 0.1);
    border-color: var(--primary-color);
}

.primary-nav-btn {
    padding: 10px 24px;
    border-radius: 25px;
    background: var(--gradient);
    border: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pink);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 16px;
}

.mobile-logo {
    font-size: 1.25rem;
    font-weight: bold;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    padding: 8px 18px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-pink);
}

.menu-btn {
    width: 28px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: transparent;
    padding: 2px;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
    padding: 16px;
}

.mobile-menu-content {
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-pink);
    padding: 8px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    color: var(--text-color-secondary);
    background: transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-menu-item:hover {
    background-color: rgba(233, 30, 99, 0.15);
    color: var(--primary-color);
}

.mobile-menu-item i {
    margin-right: 12px;
    width: 20px;
}

.join-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.join-btn:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-pink);
}

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

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(233, 30, 99, 0.15);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--border-pink);
}

.promo-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-title .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-color-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-description strong {
    color: var(--text-color);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-btn {
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.primary-btn.large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.secondary-btn {
    padding: 14px 32px;
    background-color: transparent;
    border: 1px solid var(--border-pink);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: rgba(233, 30, 99, 0.1);
    border-color: var(--primary-color);
}

.hero-image {
    flex: 1;
    max-width: 500px;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-pink);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

/* Background effects */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233, 30, 99, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* ===== Features Section ===== */
.features {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-pink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-color-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Companions Section ===== */
.companions {
    background: var(--dark-bg-secondary);
}

.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.companion-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.companion-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-pink);
    box-shadow: var(--shadow-pink);
}

.companion-image {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.companion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.companion-card:hover .companion-image img {
    transform: scale(1.08);
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.companion-info {
    padding: 20px;
}

.companion-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.companion-age {
    font-weight: 400;
    color: var(--text-color-secondary);
}

.companion-personality {
    display: inline-block;
    background: rgba(233, 30, 99, 0.15);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.companion-desc {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    margin: 12px 0;
    line-height: 1.5;
}

.companion-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-color-secondary);
}

.companion-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.companion-stats i {
    color: var(--primary-color);
}

.companions-cta {
    text-align: center;
}

/* ===== Customization Section ===== */
.customization {
    background: var(--dark-bg);
}

.custom-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.custom-text h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.custom-text p {
    color: var(--text-color-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

.custom-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.custom-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    color: white;
}

.custom-feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.custom-feature-text p {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.custom-visual {
    position: relative;
}

.custom-visual img {
    border-radius: 20px;
    box-shadow: var(--shadow-pink);
}

/* ===== Interactions Section ===== */
.interactions {
    background: var(--dark-bg-secondary);
}

.interactions-table {
    max-width: 900px;
    margin: 0 auto 50px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.interactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.interactions-table th {
    background: rgba(233, 30, 99, 0.1);
    padding: 18px 24px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.interactions-table td {
    padding: 18px 24px;
    color: var(--text-color-secondary);
    border-bottom: 1px solid var(--border-color);
}

.interactions-table tr:last-child td {
    border-bottom: none;
}

.interactions-table tr:hover td {
    background: rgba(233, 30, 99, 0.05);
}

/* ===== Privacy Section ===== */
.privacy {
    background: var(--dark-bg);
}

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

.privacy-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.privacy-card:hover {
    border-color: var(--border-pink);
    transform: translateY(-5px);
}

.privacy-card i {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    display: block;
}

.privacy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.privacy-card p {
    color: var(--text-color-secondary);
    line-height: 1.6;
}

/* ===== FAQ Section ===== */
.faq {
    background: var(--dark-bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-pink);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.05rem;
    font-weight: 600;
    padding-right: 20px;
}

.faq-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 28px 22px;
    color: var(--text-color-secondary);
    line-height: 1.7;
}

.faq-answer strong {
    color: var(--text-color);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(156, 39, 176, 0.1) 100%);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(233, 30, 99, 0.1) 0%, transparent 50%);
    animation: rotate-bg 20s linear infinite;
}

@keyframes rotate-bg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.15rem;
    color: var(--text-color-secondary);
    margin-bottom: 35px;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-color-secondary);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-bg);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-color-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.footer-links-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 12px;
}

.footer-links-column ul li a {
    color: var(--text-color-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: var(--primary-color);
}

.footer-links-column ul li a.active {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-legal a {
    color: var(--text-color-secondary);
    font-size: 0.85rem;
    margin-right: 20px;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* ===== Blockquote ===== */
.quote-block {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 16px 16px 0;
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-color-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}
