:root {
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #6C5CE7 100%);
    --primary-color: #FF6B6B;
    --secondary-color: #6C5CE7;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --white: #FFFFFF;
    --bg-light: #F9F9F9;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.9);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar.scrolled .logo {
    color: var(--primary-color);
}

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

.nav-links a:not(.btn) {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--text-dark);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.btn-glass {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.navbar.scrolled .btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    color: var(--white);
    max-width: 600px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Phone Mockup CSS */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    padding: 12px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.screen {
    background: #F2F2F2;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.status-bar {
    height: 30px;
    background: var(--primary-color);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    align-items: center;
    color: white;
    font-size: 10px;
}

.app-header {
    height: 50px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.profile-card {
    background: white;
    margin: 20px;
    border-radius: 20px;
    height: 320px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.profile-card .avatar {
    flex: 1;
    background-color: #ddd;
    background-image: url('photo.jpg');

    background-size: cover;
    background-position: center;
}

.profile-card .info {
    padding: 15px;
}

.profile-card .info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.profile-card .info p {
    font-size: 12px;
    color: #666;
}

.tags {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.tags span {
    background: #FFEDF0;
    color: #FF6B6B;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.action-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: auto;
    padding-bottom: 40px;
}

.btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 24px;
    cursor: pointer;
}

.btn-circle.like {
    color: #FF6B6B;
}

.btn-circle.pass {
    color: #ccc;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.waves .shape-fill {
    fill: var(--bg-light);
}

/* Stats Section */
.stats {
    padding: 40px 0;
    background: var(--bg-light);
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-item .label {
    color: var(--text-light);
    font-size: 14px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: #FFEDF0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* Footer */
footer {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

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

.footer-info .logo {
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.footer-info p {
    color: var(--text-light);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: 100px;
        padding-top: 120px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 50px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
/* Profile card refinement: compact, aligned details without awkward wrapping */
.profile-card {
    margin: 12px;
    height: 338px;
    flex: 0 0 auto;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(37, 23, 57, 0.13);
}
.profile-card .avatar {
    flex: 1 1 auto;
    min-height: 0;
    background-position: center 28%;
}
.profile-card .info {
    flex: 0 0 auto;
    padding: 12px 14px 14px;
    text-align: left;
    background: #fff;
}
.profile-card .info h3 {
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 4px;
    font-weight: 750;
    letter-spacing: -0.3px;
    color: #292536;
}
.profile-card .info .age { font-weight: 600; }
.profile-card .info .distance {
    font-size: 11px;
    color: #847d8d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}
.profile-card .tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0 0;
}
.profile-card .tags span {
    background: #fff1f5;
    border: 1px solid #ffe0e9;
    color: #dc5277;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .profile-card {
        margin: 10px;
        height: 300px;
    }
    .profile-card .info { padding: 10px 12px 12px; }
    .profile-card .info h3 { font-size: 17px; }
    .profile-card .tags { margin-top: 8px; gap: 5px; }
    .profile-card .tags span { padding: 4px 8px; font-size: 9px; }
}

/* Responsive layout overhaul — phone 320px through desktop */
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.navbar { padding: 16px 0; }
.navbar .container { gap: 16px; }
.nav-links { gap: 22px; flex-shrink: 0; }
.logo { white-space: nowrap; }
.btn { white-space: nowrap; text-align: center; }
.cta-mobile { display: none; }
.hero-text, .hero-visual { min-width: 0; }
.hero-text h1 { overflow-wrap: normal; text-wrap: balance; }
.hero-text p { overflow-wrap: break-word; }
.status-bar, .app-header { flex-shrink: 0; }
.status-bar .icons { display:flex; gap: 5px; align-items:center; white-space:nowrap; }
.phone-mockup { flex: 0 0 auto; }
.profile-card .tags span { max-width:100%; }

@media (max-width: 1024px) and (min-width: 769px) {
  .hero-content { gap: 30px; }
  .hero-text h1 { font-size: clamp(32px, 4vw, 44px); }
  .hero-text p { font-size: 16px; }
  .phone-mockup { width: 260px; height: 540px; }
  .navbar .container { gap: 20px; }
}

@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 14px 0;
  }
  .navbar .container { padding: 0 20px; gap: 10px; }
  .logo { font-size: clamp(20px, 5.6vw, 25px); letter-spacing: -0.6px; }
  .nav-links { margin-left: auto; gap: 10px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn {
    font-size: 13px;
    font-weight: 650;
    padding: 10px 17px;
    min-height: 40px;
    line-height: 1.1;
    box-shadow: 0 3px 12px rgba(48,29,68,.1);
  }
  .cta-desktop { display: none; }
  .cta-mobile { display: inline; }
  .hero {
    min-height: 0;
    display: block;
    padding: 112px 0 88px;
    overflow: hidden;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 100%;
    text-align: center;
  }
  .hero-text { width: 100%; max-width: 520px; margin: 0; }
  .hero-text h1 {
    font-size: clamp(29px, 7.4vw, 39px);
    line-height: 1.13;
    letter-spacing: -0.8px;
    margin: 0 auto 16px;
    max-width: 13.5em;
  }
  .hero-text p {
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 32em;
  }
  .cta-buttons { justify-content: center; }
  .btn-glass {
    min-height: 48px;
    max-width: 100%;
    padding: 12px 22px;
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.25;
  }
  .hero-visual { width: 100%; margin: 0; }
  .phone-mockup {
    width: min(282px, 83vw);
    height: 548px;
    border-radius: 36px;
    padding: 10px;
    animation: none;
  }
  .screen { border-radius: 27px; }
  .profile-card {
    margin: 12px;
    height: 335px;
  }
  .profile-card .info { padding: 12px 13px 13px; }
  .profile-card .info h3 { font-size: 17px; }
  .profile-card .tags span { padding: 5px 9px; font-size: 10px; }
  .action-bar {
    flex: 1 0 auto;
    align-items: center;
    padding: 10px 0 15px;
    gap: 26px;
    margin: 0;
  }
  .btn-circle { width: 52px; height: 52px; font-size: 22px; }
  .stats { padding: 42px 0; margin-top: 0; }
  .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .stat-item .number { font-size: clamp(19px, 5vw, 30px); }
  .stat-item .label { font-size: 11px; line-height: 1.4; }
  .features { padding: 60px 0; }
  .section-title { font-size: 27px; margin-bottom: 30px; }
  .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .feature-card { padding: 24px 16px; border-radius: 16px; }
  .feature-card h3 { font-size: 17px; }
  .feature-card p { font-size: 13px; }
  .icon-wrapper { width: 55px; height: 55px; font-size: 24px; }
  .footer-content { align-items: center; gap: 20px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
}

@media (max-width: 390px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .navbar .container { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 100px; }
  .hero-text h1 { font-size: clamp(27px, 7.6vw, 31px); }
  .hero-text p { font-size: 14px; }
  .phone-mockup { width: min(266px, 86vw); height: 525px; }
  .profile-card { height: 318px; margin: 10px; }
  .profile-card .info { padding: 10px 11px 11px; }
  .profile-card .tags { gap: 5px; }
  .profile-card .tags span { font-size: 9px; padding: 4px 7px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 25px 24px; }
  .stats-grid { grid-template-columns: 1fr; gap: 22px; }
  .stat-item .number { font-size: 28px; }
  .stat-item .label { font-size: 13px; }
}

@media (max-width: 340px) {
  .logo { font-size: 19px; }
  .nav-links .btn { padding: 9px 12px; font-size: 12px; }
  .hero-text h1 { font-size: 26px; }
  .phone-mockup { width: min(256px, 88vw); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-mockup, .feature-card, .btn { animation: none; transition: none; }
}
