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

:root {
    --discord-blurple: #5865F2;
    --discord-green: #57F287;
    --discord-dark: #2C2F33;
    --discord-darker: #23272A;
    --discord-darkest: #1E2124;
    --discord-text: #DCDDDE;
    --discord-text-muted: #72767D;
    --discord-border: #40444B;
    --discord-hover: #36393F;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--discord-text);
    background: var(--discord-darkest);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--discord-darker);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--discord-border);
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo h2 {
    color: var(--discord-text);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--discord-text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--discord-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--discord-blurple);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--discord-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--discord-darkest) 0%, var(--discord-darker) 100%);
    color: var(--discord-text);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--discord-text);
}

.gradient-text {
    background: linear-gradient(45deg, var(--discord-blurple), #9B59B6, #E91E63, #00BCD4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--discord-text-muted);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--discord-blurple);
    color: white;
    border-color: var(--discord-blurple);
}

.btn-primary:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--discord-text);
    border-color: var(--discord-border);
}

.btn-secondary:hover {
    background: var(--discord-hover);
    border-color: var(--discord-blurple);
    transform: translateY(-2px);
}

/* Discord Window */
.hero-discord-window {
    display: flex;
    justify-content: center;
    align-items: center;
}

.discord-window {
    background: var(--discord-darker);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--discord-border);
}

.discord-header {
    background: var(--discord-dark);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--discord-border);
}

.discord-header-buttons {
    display: flex;
    gap: 8px;
}

.discord-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.discord-button.close {
    background: #FF5F57;
}

.discord-button.minimize {
    background: #FFBD2E;
}

.discord-button.maximize {
    background: #28C840;
}

.discord-title {
    color: var(--discord-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: auto;
}

.discord-content {
    padding: 16px;
    background: var(--discord-darker);
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.discord-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeInUp 0.5s ease-out;
}

.discord-message:last-child {
    margin-bottom: 0;
}

.discord-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.discord-message-content {
    flex: 1;
    min-width: 0;
}

.discord-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.discord-username {
    color: var(--discord-text);
    font-weight: 600;
    font-size: 0.9375rem;
}

.discord-timestamp {
    color: var(--discord-text-muted);
    font-size: 0.75rem;
}

.discord-message-text {
    color: var(--discord-text);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.discord-message-text .lang-ja {
    display: block;
    margin-bottom: 8px;
}

.discord-message-text .lang-en {
    display: block;
    color: var(--discord-text-muted);
    font-style: italic;
}

.discord-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.discord-typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--discord-text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.discord-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.discord-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--discord-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--discord-text);
}

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

.feature-card {
    background: var(--discord-darker);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--discord-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--discord-blurple);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--discord-blurple), #9B59B6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--discord-text);
}

.feature-card p {
    color: var(--discord-text-muted);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--discord-text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--discord-green);
    font-weight: bold;
}

/* Commands Preview */
.commands-preview {
    padding: 80px 0;
    background: var(--discord-darker);
}

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

.command-category {
    background: var(--discord-dark);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--discord-border);
}

.command-category:hover {
    transform: translateY(-5px);
    border-color: var(--discord-blurple);
}

.command-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--discord-text);
    font-size: 1.2rem;
}

.command-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.command {
    background: var(--discord-blurple);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

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

/* Commands Content */
.commands-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--discord-darkest) 0%, var(--discord-darker) 100%);
    color: var(--discord-text);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--discord-text);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--discord-text-muted);
}

.commands-content {
    padding: 60px 0;
    background: var(--discord-dark);
}

.command-section {
    margin-bottom: 4rem;
}

.command-section .section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--discord-text);
}

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

.command-card {
    background: var(--discord-darker);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--discord-blurple);
    transition: all 0.3s ease;
    border: 1px solid var(--discord-border);
    border-left: 4px solid var(--discord-blurple);
}

.command-card:hover {
    background: var(--discord-hover);
    transform: translateX(5px);
    border-color: var(--discord-blurple);
}

.command-card h3 {
    color: var(--discord-blurple);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.command-card p {
    color: var(--discord-text-muted);
    margin-bottom: 1rem;
}

.command-params {
    background: var(--discord-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--discord-border);
}

.command-params strong {
    color: var(--discord-text);
    display: block;
    margin-bottom: 0.5rem;
}

.command-params ul {
    list-style: none;
    padding: 0;
}

.command-params li {
    padding: 0.3rem 0;
    color: var(--discord-text-muted);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.command-params code {
    background: var(--discord-darkest);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--discord-blurple);
}

/* Setup Section */
.setup {
    padding: 80px 0;
    background: var(--discord-dark);
}

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

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--discord-blurple), #9B59B6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--discord-text);
}

.step-content p {
    color: var(--discord-text-muted);
}

.step-content code {
    background: var(--discord-darker);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--discord-blurple);
    font-family: 'Courier New', monospace;
}

.setup-info {
    background: var(--discord-darker);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--discord-blurple);
    border: 1px solid var(--discord-border);
    border-left: 4px solid var(--discord-blurple);
}

.setup-info h3 {
    margin-bottom: 1rem;
    color: var(--discord-text);
}

.setup-info p {
    color: var(--discord-text-muted);
}

.setup-info a {
    color: var(--discord-blurple);
    text-decoration: none;
}

.setup-info a:hover {
    text-decoration: underline;
}

.code-block {
    background: var(--discord-darkest);
    color: var(--discord-text);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    border: 1px solid var(--discord-border);
}

.code-block code {
    display: block;
    margin: 0.5rem 0;
    color: var(--discord-text);
}

/* Privacy Section */
.privacy {
    padding: 80px 0;
    background: var(--discord-darker);
}

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

.privacy-feature {
    text-align: center;
    padding: 2rem;
    background: var(--discord-dark);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--discord-border);
}

.privacy-feature i {
    font-size: 3rem;
    color: var(--discord-blurple);
    margin-bottom: 1rem;
}

.privacy-feature h3 {
    margin-bottom: 1rem;
    color: var(--discord-text);
}

.privacy-feature p {
    color: var(--discord-text-muted);
}

/* Footer */
.footer {
    background: var(--discord-darkest);
    color: var(--discord-text);
    padding: 60px 0 20px;
    border-top: 1px solid var(--discord-border);
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--discord-blurple);
}

.footer-section p {
    color: var(--discord-text-muted);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--discord-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--discord-blurple);
}

.footer-bottom {
    border-top: 1px solid var(--discord-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--discord-text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--discord-darker);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-bottom: 1px solid var(--discord-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .setup-content {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.command-card,
.command-category {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--discord-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--discord-blurple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4752C4;
}

/* Selection Styling */
::selection {
    background: var(--discord-blurple);
    color: white;
}

::-moz-selection {
    background: var(--discord-blurple);
    color: white;
}
