/* ==========================================================
   tworks Official Website
   Version: 1.0
   Author : tworks
   ========================================================== */

/* ---------- Color Palette ---------- */

:root {
    --color-primary: #2e7d32;
    --color-primary-dark: #1b5e20;

    --color-text: #222222;
    --color-text-light: #666666;

    --color-background: #ffffff;
    --color-surface: #fafafa;

    --color-border: #e5e5e5;

    --container-width: 1000px;

    --radius: 12px;

    --shadow:
        0 2px 8px rgba(0,0,0,0.05);

    --transition: 0.2s ease;
}

/* ---------- Reset ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;

    color: var(--color-text);
    background: var(--color-background);

    line-height: 1.7;
}

/* ---------- Links ---------- */

a {
    color: var(--color-primary);
    text-decoration: none;

    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ---------- Images ---------- */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Layout ---------- */

.container {
    max-width: var(--container-width);

    margin: 0 auto;

    padding:
        0 24px;
}

/* ---------- Header ---------- */

header {
    border-bottom: 1px solid var(--color-border);

    background: white;
}

.header-inner {
    display: flex;

    justify-content: space-between;

    align-items: center;

    min-height: 72px;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
}

.site-title a {
    color: var(--color-text);
}

/* ---------- Navigation ---------- */

nav ul {

    display: flex;

    gap: 24px;

    list-style: none;

    padding: 0;
    margin: 0;
}

nav a {
    color: var(--color-text-light);

    font-weight: 500;
}

nav a:hover {
    color: var(--color-primary);
}

/* ---------- Hero ---------- */

.hero {

    text-align: center;

    padding:
        80px 0;
}

.hero h1 {

    font-size: 2.6rem;

    margin-bottom: 16px;
}

.hero p {

    font-size: 1.1rem;

    color: var(--color-text-light);

    max-width: 700px;

    margin: auto;
}

/* ---------- Sections ---------- */

section {
    padding: 56px 0;
}

section h2 {
    margin-top: 0;

    font-size: 2rem;
}

/* ---------- Cards ---------- */

.card-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 24px;
}

.card {

    background: white;

    border: 1px solid var(--color-border);

    border-radius: var(--radius);

    padding: 24px;

    box-shadow: var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 6px 18px rgba(0,0,0,.08);
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: var(--color-text-light);
}

/* ---------- Buttons ---------- */

.button {

    display: inline-block;

    padding:
        12px 22px;

    border-radius: 999px;

    background:
        var(--color-primary);

    color: white;

    font-weight: 600;

    transition:
        background var(--transition);
}

.button:hover {

    background:
        var(--color-primary-dark);

    color: white;
}

/* ---------- Footer ---------- */

footer {

    border-top:
        1px solid var(--color-border);

    margin-top: 64px;

    padding:
        32px 0;

    color:
        var(--color-text-light);

    text-align: center;

    font-size: .9rem;
}

/* ---------- Utilities ---------- */

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

.text-muted {
    color: var(--color-text-light);
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {

    .header-inner {

        flex-direction: column;

        justify-content: center;

        padding: 16px 0;
    }

    nav ul {

        flex-wrap: wrap;

        justify-content: center;

        gap: 16px;

        margin-top: 12px;
    }

    .hero {

        padding:
            56px 0;
    }

    .hero h1 {

        font-size: 2rem;
    }

    section {

        padding:
            40px 0;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .app-icon {
        width: 80px;
        height: 80px;
    }

    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .info-table tr {
        display: block;
        margin-bottom: 16px;
    }
}

/* ==========================================================
   Components (Version 1.1)
   ========================================================== */

/* ---------- Section Header ---------- */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- App Card ---------- */

.app-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ---------- Badge ---------- */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.badge-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* ---------- Feature List ---------- */

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

.feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

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

/* ---------- Screenshot Grid ---------- */

.screenshot-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.screenshot-grid img {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

/* ---------- Information Table ---------- */

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.info-table th {
    width: 180px;
    color: var(--color-text-light);
    font-weight: 600;
}

/* ---------- Notice ---------- */

.notice {
    padding: 18px 20px;
    border-left: 4px solid var(--color-primary);
    background: var(--color-surface);
    border-radius: var(--radius);
}

/* ---------- Coming Soon ---------- */

.coming-soon {
    text-align: center;
    padding: 48px 24px;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
}

.coming-soon h2,
.coming-soon h3 {
    margin-top: 0;
}

/* ---------- Contact ---------- */

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 12px;
}

/* ---------- Divider ---------- */

.divider {
    height: 1px;
    background: var(--color-border);
    margin: 48px 0;
}

/* ---------- Two Column Layout ---------- */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ---------- Hero Buttons ---------- */

.hero-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Small Text ---------- */

.small {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ---------- policy ---------- */

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    margin-bottom: 12px;
}

.policy-meta {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.language-block {
    margin-bottom: 64px;
}