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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

nav a {
    color: #667eea;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #764ba2;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.tool-card h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tool-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-features {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.tool-features li {
    color: #555;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.tool-features li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.tool-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.tool-link:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    text-align: center;
    color: #666;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.footer p {
    font-size: 0.95rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    nav a {
        margin-left: 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.card-svg {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-txt {
    background: linear-gradient(135deg, #f59e0b15 0%, #ec4899 15%);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.about-section {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease;
}

.about-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-features {
    list-style: none;
    padding: 0;
}

.about-features li {
    color: #555;
    padding: 0.8rem 0;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.about-features li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    margin-right: 0.8rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.wrap {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hint {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

textarea {
    width: 100%;
    min-height: 220px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Consolas, monospace;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

textarea,
input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Consolas, monospace;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea {
    min-height: 220px;
    resize: vertical;
}

input {
    margin-bottom: 0;
}

textarea:focus,
input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    margin: 12px 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

#preview {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: auto;
    min-height: 120px;
}

#preview.prewrap {
    white-space: pre-wrap;
    font-family: Consolas, monospace;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    nav a {
        margin-left: 0;
    }

    .wrap {
        margin: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }
}

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

    .about-section {
        padding: 2rem;
        margin-top: 2rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }
}