:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent: #e11d48;
    --accent-hover: #be123c;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
}

textarea, input {
    max-width: 100%;
    min-width: 0;
}

.btn-copy {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}
.btn-copy:hover {
    background: var(--glass-border);
}


body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

/* Mega Menu / Header Links */
.nav-links {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item:hover {
    color: var(--accent);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 0 0 1rem 1rem;
    padding: 2rem;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 900px;
    max-width: 95vw;
}

.nav-item:hover .mega-menu {
    display: grid;
}

.mega-column h4 {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.mega-column a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.mega-column a:hover {
    color: var(--accent);
}

/* Auth Buttons */
.auth-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Premium Hero Section */
.hero {
    text-align: left;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}
.hero-content {
    flex: 1;
}
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.05));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
}
.btn-primary-hero {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}
.btn-primary-hero:hover { background: var(--accent-hover); }
.btn-secondary-hero {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}
.btn-secondary-hero:hover { background: var(--glass-border); }

/* Pill Navigation */
.pills-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pill-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.pill-btn.active, .pill-btn:hover {
    background: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* -- Homepage Redesign Sections -- */
.features-section {
    padding: 6rem 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature-box i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.seo-section {
    padding: 6rem 1rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.seo-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.seo-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cta-section {
    padding: 6rem 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-section p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    color: #fff;
}

/* -- Premium Redesign Additions -- */
.tools-section {
    background: #ffffff;
    padding: 5rem 1rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.tools-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}
.tools-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.tools-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.security-section {
    padding: 6rem 1rem;
    background: var(--bg-primary);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}
.security-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.security-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.05));
    animation: float 7s ease-in-out infinite reverse;
}
.security-content {
    flex: 1;
}
.security-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.security-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.security-list {
    list-style: none;
    margin-top: 1.5rem;
}
.security-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}
.security-list i {
    color: #10b981;
    font-size: 1.5rem;
}

.faq-section {
    padding: 6rem 1rem;
    background: #ffffff;
    border-top: 1px solid var(--glass-border);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}
.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-question {
    padding: 1.5rem;
    background: var(--bg-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: 0.2s;
}
.faq-question:hover { background: #f1f5f9; }
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #ffffff;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
    border-top: 1px solid var(--glass-border);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .hero, .security-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-image { justify-content: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    .security-list li { justify-content: center; }
}

/* --- Shared Tool Page Styles --- */
.tool-page {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.tool-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-field {
    padding: 0.8rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s;
    width: 100%;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.result-box {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--glass-border);
}

