/* =========================================================
   ATP GAME STUDIO
   Shared Stylesheet
   Pages: Contact, About, Privacy Policy, Terms & Conditions
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {
    color-scheme: dark;

    --bg: #050713;
    --bg-secondary: #080d1d;
    --surface: #0b1124;
    --surface-light: #101a32;
    --surface-hover: #14203b;

    --text: #f4f7ff;
    --text-secondary: #c3cce0;
    --muted: #8996b2;

    --primary: #53e6ff;
    --primary-dark: #16b8e0;
    --secondary: #9a7bff;
    --accent: #b6a2ff;

    --border: rgba(151, 177, 226, 0.16);
    --border-hover: rgba(83, 230, 255, 0.42);

    --gradient: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    --gradient-soft: linear-gradient(
        135deg,
        rgba(83, 230, 255, 0.12),
        rgba(154, 123, 255, 0.12)
    );

    --shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    --shadow-glow:
        0 0 35px rgba(83, 230, 255, 0.08);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1120px;

    --transition: 220ms ease;
}


/* =========================================================
   2. RESET AND BASE STYLES
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-width: 320px;
    margin: 0;

    background-color: var(--bg);
    background-image:
        linear-gradient(
            rgba(83, 230, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(83, 230, 255, 0.025) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 15% 10%,
            rgba(83, 230, 255, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 35%,
            rgba(154, 123, 255, 0.07),
            transparent 32%
        );

    background-size:
        48px 48px,
        48px 48px,
        auto,
        auto;

    color: var(--text);

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

p {
    margin: 0 0 18px;
    color: var(--text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 750;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

::selection {
    color: #050713;
    background: var(--primary);
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}


/* =========================================================
   3. SHARED LAYOUT
   ========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: 80px;
}

.section + .section {
    padding-top: 20px;
}

.gradient {
    color: transparent;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: var(--primary);

    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.kicker::before {
    width: 24px;
    height: 2px;

    border-radius: 10px;
    background: var(--gradient);

    content: "";
}

.section-head {
    max-width: 720px;
    margin-bottom: 42px;
}

.section-head h2 {
    margin-bottom: 16px;
}

.section-head p {
    max-width: 650px;
    font-size: 1.02rem;
}


/* =========================================================
   4. HEADER AND NAVIGATION
   ========================================================= */

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;

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

    background: rgba(5, 7, 19, 0.88);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header .container {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 82px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;

    color: var(--text);

    font-size: 0.94rem;
    font-weight: 850;
    letter-spacing: 0.055em;
}

.brand img {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    object-fit: contain;
}

.brand span {
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    position: relative;

    padding: 10px 14px;

    border-radius: var(--radius-sm);

    color: var(--text-secondary);

    font-size: 0.91rem;
    font-weight: 600;

    transition:
        color var(--transition),
        background var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--primary);
    background: rgba(83, 230, 255, 0.07);
}

.menu-btn {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    background: var(--surface);

    color: var(--text);

    font-size: 1.45rem;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.menu-btn:hover {
    border-color: var(--border-hover);
    background: var(--surface-light);
}


/* =========================================================
   5. PAGE INTRO / HERO
   ========================================================= */

.page-hero {
    position: relative;
    overflow: hidden;

    padding-block: 100px 76px;

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

    background:
        radial-gradient(
            ellipse at 15% 20%,
            rgba(83, 230, 255, 0.09),
            transparent 45%
        ),
        radial-gradient(
            ellipse at 85% 80%,
            rgba(154, 123, 255, 0.10),
            transparent 45%
        );
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    max-width: 900px;
    margin-bottom: 24px;
}

.page-hero h1 span {
    color: transparent;

    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
}

.page-hero p {
    max-width: 720px;
    font-size: 1.08rem;
    line-height: 1.85;
}

/*
   The contact.html markup uses class="hero" on its
   introductory paragraph. Limit these rules to the
   page-hero section to avoid affecting other hero layouts.
*/

.page-hero p.hero {
    max-width: 720px;
    margin-bottom: 0;

    color: var(--text-secondary);

    font-size: 1.08rem;
    line-height: 1.85;
}


/* =========================================================
   6. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    min-height: 48px;

    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 12px 22px;

    border: 1px solid transparent;
    border-radius: 12px;

    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;

    cursor: pointer;

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

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary,
.btn-primary {
    border-color: transparent;

    background: var(--gradient);

    color: #050713;

    box-shadow:
        0 8px 24px rgba(83, 230, 255, 0.12);
}

.btn.primary:hover,
.btn-primary:hover {
    box-shadow:
        0 12px 32px rgba(83, 230, 255, 0.22);
}

.btn.secondary,
.btn-secondary {
    border-color: var(--border);

    background: rgba(255, 255, 255, 0.025);

    color: var(--text);
}

.btn.secondary:hover,
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(83, 230, 255, 0.06);
}


/* =========================================================
   7. GENERAL CARDS
   ========================================================= */

.card {
    min-width: 0;
    padding: 32px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(16, 26, 50, 0.94),
            rgba(8, 13, 29, 0.96)
        );

    box-shadow: var(--shadow);

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

.card h2 {
    margin-bottom: 26px;
    font-size: 1.55rem;
    letter-spacing: -0.025em;
}

.card h3 {
    margin-bottom: 12px;
}

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

.card a:not(.btn) {
    overflow-wrap: anywhere;
}

.card a:not(.btn):hover {
    color: var(--primary);
}


/* =========================================================
   8. CONTACT PAGE
   ========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    align-items: start;
    gap: 28px;
}

.contact-grid > .card {
    height: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    padding-block: 22px;

    border-bottom: 1px solid var(--border);
}

.contact-item:first-of-type {
    padding-top: 0;
}

.contact-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-item strong {
    display: block;

    margin-bottom: 2px;

    color: var(--text);

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-item a,
.contact-item > span {
    display: inline-flex;
    max-width: 100%;

    align-items: flex-start;
    gap: 12px;

    color: var(--text-secondary);

    font-size: 0.94rem;
    line-height: 1.7;

    overflow-wrap: anywhere;

    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-item i {
    width: 20px;
    flex-shrink: 0;

    margin-top: 5px;

    color: var(--primary);

    font-size: 1rem;
    text-align: center;
}

.contact-item a:hover i {
    color: var(--secondary);
}


/* =========================================================
   9. FORMS
   ========================================================= */

form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

form > div {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

label {
    color: var(--text);

    font-size: 0.9rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-width: 0;

    border: 1px solid rgba(151, 177, 226, 0.22);
    border-radius: 12px;

    background: rgba(5, 7, 19, 0.72);

    color: var(--text);

    font-size: 1rem;
    line-height: 1.5;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

input,
select {
    min-height: 50px;
    padding: 12px 15px;
}

textarea {
    min-height: 170px;
    padding: 14px 15px;

    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

input:hover,
textarea:hover,
select:hover {
    border-color: rgba(151, 177, 226, 0.4);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);

    outline: none;

    background: rgba(5, 7, 19, 0.95);

    box-shadow:
        0 0 0 4px rgba(83, 230, 255, 0.08);
}

input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

form .btn {
    align-self: flex-start;
    margin-top: 2px;
}


/* =========================================================
   10. ABOUT PAGE
   ========================================================= */

.about-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: stretch;
    gap: 24px;
}

.about-card {
    min-width: 0;
    padding: 26px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(16, 26, 50, 0.92),
            rgba(8, 13, 29, 0.96)
        );

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

.about-card:hover {
    transform: translateY(-5px);

    border-color: var(--border-hover);

    box-shadow:
        var(--shadow),
        var(--shadow-glow);
}

.about-card h3 {
    margin-bottom: 14px;
}

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

/*
   Large About-page illustrations.

   Supports either:
   1. An image inside .about-card-icon.
   2. An image that itself has class="about-card-icon".

   These styles intentionally avoid the small icon treatment.
*/

.about-card-icon {
    display: block;

    width: 100%;
    height: clamp(240px, 25vw, 340px);

    margin: 0 0 26px;

    border: 0;
    border-radius: 14px;

    background: transparent;

    object-fit: contain;
    object-position: center;
}

.about-card-icon img {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
    border-radius: inherit;

    background: transparent;

    object-fit: contain;
    object-position: center;
}

/*
   Optional image class for About-page markup that uses
   a plain <img> directly inside .about-card.
*/

.about-card > img:not(.about-card-icon) {
    display: block;

    width: 100%;
    height: clamp(240px, 25vw, 340px);

    margin-bottom: 26px;

    border-radius: 14px;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   11. LONG-FORM CONTENT
   About, Privacy Policy and Terms & Conditions
   ========================================================= */

/*
   Use .content-card around long-form text if your HTML
   has a dedicated content wrapper.

   The following styles also support common semantic
   elements used in policy and terms pages.
*/

.content-card {
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(24px, 5vw, 48px);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(16, 26, 50, 0.90),
            rgba(8, 13, 29, 0.96)
        );

    box-shadow: var(--shadow);
}

.content-card h2 {
    margin-top: 38px;
    margin-bottom: 16px;

    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    margin-top: 28px;
    margin-bottom: 12px;

    font-size: 1.15rem;
}

.content-card p {
    margin-bottom: 18px;

    color: var(--text-secondary);

    line-height: 1.9;
}

.content-card ul,
.content-card ol {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin: 0 0 24px;
    padding-left: 26px;

    color: var(--text-secondary);
}

.content-card li {
    padding-left: 4px;
    line-height: 1.85;
}

.content-card li::marker {
    color: var(--primary);
}

.content-card a {
    color: var(--primary);

    text-decoration: underline;
    text-decoration-color: rgba(83, 230, 255, 0.35);
    text-underline-offset: 4px;

    overflow-wrap: anywhere;

    transition:
        color var(--transition),
        text-decoration-color var(--transition);
}

.content-card a:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
}

.content-card strong {
    color: var(--text);
    font-weight: 750;
}

.content-card blockquote {
    margin: 24px 0;
    padding: 18px 22px;

    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;

    background: rgba(83, 230, 255, 0.05);

    color: var(--text-secondary);
}

.content-card hr {
    height: 1px;
    margin-block: 32px;

    border: 0;

    background: var(--border);
}

.content-card table {
    display: block;
    width: 100%;

    margin-block: 24px;

    border-collapse: collapse;

    overflow-x: auto;
}

.content-card th,
.content-card td {
    padding: 13px 15px;

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

    text-align: left;
    vertical-align: top;
}

.content-card th {
    background: rgba(83, 230, 255, 0.07);
    color: var(--text);
}

.content-card td {
    color: var(--text-secondary);
}

.content-card .last-updated {
    display: inline-block;

    margin-bottom: 26px;

    color: var(--muted);

    font-size: 0.88rem;
}


/* =========================================================
   12. FOOTER
   ========================================================= */

footer {
    margin-top: 40px;

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

    background: rgba(5, 7, 19, 0.82);
}

footer .container {
    padding-block: 38px 24px;
}

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;

    padding-bottom: 32px;
}

.footer-brand {
    max-width: 390px;
}

.footer-brand strong {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--text);

    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: 0.015em;
}

.footer-brand p {
    margin-bottom: 0;

    color: var(--muted);

    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 22px;
}

.footer-links a {
    color: var(--text-secondary);

    font-size: 0.88rem;
    font-weight: 600;

    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    padding-top: 22px;

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

    color: var(--muted);

    font-size: 0.82rem;
    line-height: 1.7;
}


/* =========================================================
   13. RESPONSIVE LAYOUT — TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .section {
        padding-block: 64px;
    }

    .page-hero {
        padding-block: 80px 60px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-card {
        padding: 28px;
    }

    .about-card-icon,
    .about-card > img:not(.about-card-icon) {
        height: clamp(280px, 48vw, 420px);
    }

    .footer-grid {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}


/* =========================================================
   14. RESPONSIVE LAYOUT — MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 32px);
    }

    .site-header .container {
        min-height: 72px;
        gap: 12px;
    }

    .brand {
        gap: 9px;
        font-size: 0.78rem;
        letter-spacing: 0.025em;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .menu-btn {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        padding: 14px;

        border: 1px solid var(--border);
        border-top: 0;
        border-radius: 0 0 var(--radius-md) var(--radius-md);

        background: rgba(8, 13, 29, 0.98);

        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 13px 14px;
    }

    .page-hero {
        padding-block: 62px 46px;
    }

    .page-hero h1 {
        font-size: clamp(2.15rem, 10vw, 3.1rem);
    }

    .page-hero p,
    .page-hero p.hero {
        font-size: 1rem;
        line-height: 1.8;
    }

    .section {
        padding-block: 48px;
    }

    .card {
        padding: 23px;
        border-radius: var(--radius-md);
    }

    .card h2 {
        margin-bottom: 22px;
        font-size: 1.4rem;
    }

    .contact-item {
        padding-block: 19px;
    }

    .about-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .about-card-icon,
    .about-card > img:not(.about-card-icon) {
        height: 280px;
        margin-bottom: 22px;
    }

    .content-card {
        padding: 23px;
        border-radius: var(--radius-md);
    }

    .content-card h2 {
        margin-top: 30px;
    }

    .content-card th,
    .content-card td {
        padding: 10px;
        font-size: 0.88rem;
    }

    .btn {
        max-width: 100%;
    }

    form .btn {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    footer .container {
        padding-top: 30px;
    }
}


/* =========================================================
   15. REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}