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

body {
    font-family: 'Manrope', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }
.w-full { width: 100%; }
.h-auto { height: auto; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* Colors */
:root {
    --brand-color: #e4412e;
    --bg-gray: #f7f7f7;
    --text-gray: #656565;
    --border-gray: #e1e1e1;
}

.text-brand { color: var(--brand-color); }
.bg-brand { background-color: var(--brand-color); }
.bg-gray { background-color: var(--bg-gray); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

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

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--brand-color);
    color: var(--brand-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--brand-color);
    color: white;
}

.btn-disabled {
    background-color: #d1d5db;
    border: 1px solid #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

/* Header */
header {
    border-bottom: 1px solid #f3f3f3;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 50;
    height: 80px;
    display: flex;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

header .logo img {
    width: 40px;
    height: 40px;
}

header .logo span {
    font-size: 24px;
    color: var(--brand-color);
    font-weight: 700;
}

header nav {
    display: flex;
    gap: 32px;
}

header nav a {
    font-size: 16px;
    font-weight: 500;
}

header nav a:hover {
    color: var(--brand-color);
}

header .actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    header nav {
        display: none;
    }
    header nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        border-bottom: 1px solid #f3f3f3;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* Footer */
footer {
    background-color: var(--bg-gray);
    border-top: 1px solid #f3f3f3;
    padding: 32px 0;
    margin-top: auto;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

footer .logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

footer .logo img {
    width: 40px;
    height: 40px;
}

footer .logo span {
    font-size: 24px;
    color: var(--brand-color);
    font-weight: 700;
}

footer nav {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

footer nav a:hover {
    color: var(--brand-color);
}

footer .credits {
    border-top: 1px solid #e8e8e8;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: 'Assistant', sans-serif;
    font-size: 14px;
}

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

footer .credits-links a {
    text-decoration: underline;
}

@media (max-width: 768px) {
    footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    footer .credits {
        flex-direction: column;
        text-align: center;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px auto;
}

.section-header h1, .section-header h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-header p {
    font-size: 24px;
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .section-header h1, .section-header h2 { font-size: 32px; }
    .section-header p { font-size: 18px; }
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-text p {
    font-size: 24px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    max-width: 683px;
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-text {
        align-items: center;
    }
    .hero-text h1 {
        font-size: 40px;
    }
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

/* Feature Cards */
.feature-card {
    background-color: var(--bg-gray);
    border-radius: 4px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.feature-card img {
    width: 64px;
    height: 64px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
}

.feature-card p {
    font-size: 20px;
}

/* Steps */
.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.step-text {
    text-align: center;
    max-width: 600px;
}

.step-text h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-text p {
    font-size: 16px;
}

.step-image {
    width: 100%;
    max-width: 880px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Reviews */
.review-card {
    background-color: var(--bg-gray);
    border-radius: 4px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.review-card .stars {
    width: 116px;
}

.review-card .quote {
    font-family: 'Epilogue', sans-serif;
    font-size: 20px;
    line-height: 1.4;
}

.review-card .author {
    margin-top: auto;
}

.review-card .name {
    font-family: 'Assistant', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.review-card .role {
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    color: var(--text-gray);
}

/* Subscription Page */
.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 48px auto 0;
}

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

.plan-card {
    background-color: var(--bg-gray);
    border-radius: 4px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.plan-card.pro {
    border: 2px solid var(--brand-color);
}

.plan-card h3 {
    font-size: 24px;
    font-weight: 700;
}

.plan-card .price {
    font-size: 24px;
    font-weight: 700;
}

.plan-card .features p {
    margin-bottom: 8px;
    font-size: 16px;
}

.plan-card .features .disabled {
    color: #9ca3af;
    text-decoration: line-through;
}

.plan-card .plan-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-card .badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--brand-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-bottom-left-radius: 4px;
}

.plan-card .guarantee {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Signup Page */
.signup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 0;
}

.signup-form {
    width: 100%;
    max-width: 448px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    padding-left: 8px;
}

.input-wrapper {
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    outline: none;
    border: none;
    font-size: 16px;
    font-family: inherit;
}

.input-wrapper input::placeholder {
    color: #cbcbcb;
}

.divider {
    text-align: center;
    font-size: 16px;
}

.btn-google {
    background-color: #ededed;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    transition: background-color 0.3s;
}

.btn-google:hover {
    background-color: #e5e5e5;
}

.btn-google img {
    width: 24px;
    height: 24px;
}

/* Profile Page */
.profile-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .profile-layout {
        flex-direction: column;
    }
}

.profile-sidebar {
    width: 100%;
    max-width: 350px;
    background-color: var(--bg-gray);
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (max-width: 1024px) {
    .profile-sidebar {
        max-width: 100%;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-info .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.user-info .user-details {
    display: flex;
    flex-direction: column;
}

.user-info .name {
    font-weight: 700;
    font-size: 16px;
}

.user-info .email {
    font-size: 12px;
    color: var(--text-gray);
}

.subscription-status {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.logout-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    cursor: pointer;
}

.logout-section:hover {
    color: black;
}

.logout-icon {
    width: 16px;
    height: 16px;
}

.profile-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-content h2 {
    font-size: 26px;
    font-weight: 700;
}

.billing-table {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: flex;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-weight: 700;
}

.table-row {
    display: flex;
    border-bottom: 1px solid var(--border-gray);
    padding: 12px 0;
}

.table-row:last-child {
    border-bottom: none;
}

.col {
    flex: 1;
    font-size: 16px;
}
