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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
    color: #1F2937;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative; /* Added for absolute positioning context if needed, though toggle uses absolute */
}

/* Language Toggle Switch */
.lang-toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-toggle {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 40px;
}

.lang-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    border: 2px solid #075E54;
    border-radius: 34px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-text {
    flex: 1;
    text-align: center;
    z-index: 2;
    font-weight: 600;
    font-size: 0.9rem;
    color: #075E54;
    transition: color 0.3s;
}

.toggle-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background-color: #075E54;
    border-radius: 30px;
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

input:checked + .toggle-label .toggle-pill {
    transform: translateX(100%);
}

input:not(:checked) + .toggle-label .lang-text.en {
    color: white;
}

input:checked + .toggle-label .lang-text.ms {
    color: white;
}

@media (max-width: 768px) {
    .lang-toggle-container {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0 20px 0;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

h1 {
    font-size: 3.5rem;
    color: #075E54;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.5rem;
    color: #B8860B;
    font-weight: 600;
    margin-bottom: 10px;
}

.free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #075E54;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(7, 94, 84, 0.1);
    border: 2px solid rgba(7, 94, 84, 0.1);
}

h2 {
    color: #075E54;
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: "✨";
    font-size: 1.5rem;
}

.usage-section {
    background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
    border-left: 5px solid #075E54;
}

.generator-section {
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 100%);
    border-left: 5px solid #059669;
}

.generator-form {
    margin-top: 20px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: #075E54;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #075E54;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #1F2937;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.output-group {
    margin-top: 30px;
}

.output-group label {
    display: block;
    color: #075E54;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.link-output {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F9FAFB;
    border: 2px solid #075E54;
    border-radius: 8px;
    padding: 4px;
}

.link-output input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #075E54;
    font-weight: 600;
}

.link-output input[type="text"]:focus {
    outline: none;
}

.copy-button {
    background: #075E54;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 48px;
    height: 48px;
}

.copy-button:hover {
    background: #059669;
    transform: scale(1.05);
}

.copy-button:active {
    transform: scale(0.95);
}

.example-box {
    background: #F9FAFB;
    border: 2px dashed #075E54;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    font-family: 'Monaco', 'Courier New', monospace;
}

.example-label {
    color: #B8860B;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.example-url {
    color: #075E54;
    font-size: 1.1rem;
    word-break: break-all;
    font-weight: 600;
}

.example-url .number {
    color: #059669;
}

.example-url .text {
    color: #B8860B;
}

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

.feature-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #075E54;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(7, 94, 84, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-title {
    color: #075E54;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    color: #4B5563;
    font-size: 1rem;
}

.highlight {
    color: #B8860B;
    font-weight: 700;
}

.viral-section {
    background: linear-gradient(135deg, #FFFBEB 0%, #FFFFFF 100%);
    border: 3px solid #FFD700;
    text-align: center;
}

.viral-section h2 {
    justify-content: center;
    color: #B8860B;
}

.viral-text {
    font-size: 1.3rem;
    color: #075E54;
    font-weight: 600;
    margin: 20px 0;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #075E54 0%, #059669 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(7, 94, 84, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(7, 94, 84, 0.4);
}

.speed-badge {
    display: inline-block;
    background: #075E54;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin: 0 5px;
}

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

    .tagline {
        font-size: 1.2rem;
    }

    section {
        padding: 25px;
    }

    .example-url {
        font-size: 0.9rem;
    }
}

