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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #1a365d;
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid #2c5282;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

nav a:hover,
nav a.active {
    background-color: #2c5282;
    color: #fff;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 4rem 3rem;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    max-width: 280px;
    height: auto;
}

.hero h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #2c5282;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.btn:hover {
    background-color: #1a365d;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #2c5282;
    color: #2c5282;
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: #2c5282;
    color: #fff;
}

/* App Store Badge */
.app-store-badge {
    margin-top: 1.5rem;
    display: inline-block;
}

.app-store-badge img {
    height: 44px;
    width: auto;
}

.hero-buttons {
    margin-top: 1.5rem;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card {
    background-color: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
    text-align: center;
}

.feature-card h3 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
}

/* Page Header */
.page-header {
    background-color: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
}

/* Send Form */
.send-container {
    background-color: #fff;
    padding: 2rem;
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5282;
}

.byte-counter {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
    text-align: right;
}

.byte-counter.warning {
    color: #d69e2e;
}

.byte-counter.error {
    color: #c53030;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background-color: #fff;
    border: 1px solid #ddd;
    text-align: center;
    padding: 2rem;
}

.pricing-card.featured {
    border: 2px solid #2c5282;
    position: relative;
}

.pricing-card.featured::before {
    content: "Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c5282;
    color: #fff;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
}

.pricing-card h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 1rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

.pricing-card ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    padding: 0 1rem;
}

.pricing-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

/* API Documentation */
.api-section {
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
}

.api-section h2 {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ddd;
    color: #1a365d;
}

.api-section-content {
    padding: 1.5rem;
}

.endpoint {
    background-color: #f9fafb;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #2c5282;
    font-family: "Courier New", Courier, monospace;
}

.method {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.method-get {
    background-color: #48bb78;
    color: #fff;
}

.method-post {
    background-color: #4299e1;
    color: #fff;
}

.method-put {
    background-color: #ed8936;
    color: #fff;
}

.method-delete {
    background-color: #f56565;
    color: #fff;
}

.code-block {
    background-color: #1a365d;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.875rem;
    margin: 1rem 0;
}

/* Code Tabs */
.code-tabs {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: #f9fafb;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
    color: #1a365d;
}

.tab-btn.active {
    color: #1a365d;
    border-bottom-color: #2c5282;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content .code-block {
    margin: 0;
    border-radius: 0;
    max-height: 500px;
    overflow-y: auto;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.api-table th,
.api-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

.api-table th {
    background-color: #f9fafb;
    color: #1a365d;
}

/* Footer */
footer {
    background-color: #1a365d;
    color: #e2e8f0;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #90cdf4;
}

footer a:hover {
    text-decoration: underline;
}

/* Input with button */
.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex: 1;
}

.btn-icon {
    padding: 0.75rem;
    background-color: #2c5282;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: #1a365d;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ddd;
}

.modal-header h3 {
    color: #1a365d;
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.btn-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

/* QR Scanner */
#qr-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

#qr-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-frame {
    width: 200px;
    height: 200px;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.qr-status {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.qr-status.success {
    color: #48bb78;
}

.qr-status.error {
    color: #f56565;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .features,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1a365d;
        border-top: 1px solid #2c5282;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    nav ul li {
        border-bottom: 1px solid #2c5282;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
    }

    .header-container {
        position: relative;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 1.5rem;
    }

    .hero-image img {
        max-width: 220px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}
