/* 
    SeroRest Custom Stylesheet
    Theme: Bright / Soft Lavender / Trustworthy
*/

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary: #818cf8;
    --accent: #f43f5e;
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --container-max: 1200px;
}

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

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* --- Navigation --- */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.2s;
}

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

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #ced4ff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* --- Hero Section --- */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    background-color: #fee2e2;
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid #fecaca;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.hero-content .accent {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* --- Benefits Section --- */
.benefits {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
}

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

.card {
    background-color: var(--bg-main);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* --- Science Section --- */
.science {
    padding: 6rem 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.science-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.check-list {
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.check-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 900;
}

.visual-abstract {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    border-radius: 2rem;
    position: relative;
    box-shadow: var(--shadow-lg);
}

/* --- CTA Section --- */
.cta {
    padding: 8rem 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

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

.cta .btn-primary:hover {
    background-color: var(--bg-main);
}

.subtext {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* --- Footer --- */
footer {
    padding: 5rem 0 2rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

footer h4 {
    font-weight: 800;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.socials {
    display: flex;
    gap: 1rem;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* --- Popup --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    animation: popupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.popup-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.popup-img {
    width: 100%;
    height: 200px;
    background: url('https://images.unsplash.com/photo-1584308666744-24d5c474f2ae?auto=format&fit=crop&q=80&w=800') center/cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.popup-content h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 800;
}

/* --- Testimonials --- */
.testimonials {
    padding: 6rem 0;
    background-color: var(--bg-main);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.review-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-weight: 800;
    font-size: 1.1rem;
}

.review-rating {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.review-text {
    color: var(--text-main);
    font-style: italic;
    line-height: 1.7;
}

/* --- Review Form --- */
.review-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.review-form-container h3 {
    margin-bottom: 2rem;
    font-weight: 800;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background-color: var(--bg-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
}

.w-full {
    width: 100%;
}

/* --- Mobile Responsive --- */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .split { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .socials { justify-content: center; }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .cta h2 { font-size: 2.25rem; }
}
