/* ==========================================================================
   INK SOCIETY — Coming Soon Page
   ========================================================================== */

/* --- VARIABLES --- */
:root {
    --color-bg: #0a0a0a;
    --color-text-main: #ffffff;
    --color-text-muted: #888888;
    --color-accent: #c5a880; /* Das edle Gold */
    --font-heading: 'Noto Serif', serif;
    --font-body: 'Open Sans', sans-serif;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* fluid spacing tokens */
    --space-page-y: clamp(1.5rem, 5vh, 3rem);
    --space-page-x: clamp(1.25rem, 5vw, 2rem);
    --space-section: clamp(2rem, 6vh, 4rem);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* stops iOS auto-zoom on inputs & keeps rem scaling predictable */
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);

    /* dvh = "dynamic viewport height", updates as mobile browser chrome
       shows/hides (fixes iOS/Android address-bar jump & double-scrollbar).
       100vh stays as a fallback for older browsers that don't know dvh. */
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-section);

    padding: var(--space-page-y) var(--space-page-x);
    /* iPhone notch / home-indicator safe areas */
    padding-top: max(var(--space-page-y), env(safe-area-inset-top));
    padding-bottom: max(var(--space-page-y), env(safe-area-inset-bottom));
    padding-left: max(var(--space-page-x), env(safe-area-inset-left));
    padding-right: max(var(--space-page-x), env(safe-area-inset-right));

    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* --- BACKGROUND GLOW EFFECT --- */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 90vw);
    height: min(600px, 90vw);
    background: radial-gradient(circle, rgba(197, 168, 128, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* --- HEADER (LOGO) --- */
header {
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
    flex-shrink: 0;
}

.logo-circle {
    display: block;
    width: clamp(52px, 12vw, 65px);
    height: clamp(52px, 12vw, 65px);
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.1);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    letter-spacing: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-text small {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.6rem;
    letter-spacing: 3px;
    margin-top: 2px;
    font-family: var(--font-body);
    font-weight: 300;
    white-space: normal;
}

/* --- MAIN CONTENT --- */
main {
    max-width: 650px;
    width: 100%;
    text-align: center;
    z-index: 2;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 0;
    animation: slideUp 1s ease-out 0.3s forwards;
}

h1 {
    font-family: var(--font-heading);
    /* fluid type: never smaller than 2rem, never bigger than 3.5rem,
       scales smoothly with viewport width in between */
    font-size: clamp(2rem, 6vw + 0.5rem, 3.5rem);
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-wrap: balance;
    opacity: 0;
    animation: slideUp 1s ease-out 0.5s forwards;
}

h1 span {
    font-weight: 300;
}

p {
    color: #b3b3b3;
    font-size: clamp(0.95rem, 2vw + 0.3rem, 1.05rem);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 55ch;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: slideUp 1s ease-out 0.7s forwards;
}

/* --- BUTTONS --- */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: slideUp 1s ease-out 0.9s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 320px;
}

.btn-whatsapp {
    background: transparent;
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #25D366;
    color: #000000;
    border-color: #25D366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
    transform: translateY(-2px);
}

.btn-whatsapp:focus-visible,
.social-links a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

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

/* --- FOOTER --- */
footer {
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 1.2s forwards;
    flex-shrink: 0;
}

.social-title {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-links a {
    color: var(--color-text-main);
    font-size: 1.3rem;
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.info-snippet {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    line-height: 1.6;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect users who've asked the OS to reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    header,
    .badge,
    h1,
    p,
    .cta-group,
    footer {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* --- BREAKPOINTS --- */

/* Small phones (narrow width) */
@media (max-width: 380px) {
    .logo-text {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.78rem;
        letter-spacing: 1.5px;
    }
}

/* Short viewports: landscape phones, small laptops with the window
   half-height — the layout is vertically centered/spaced, so short
   screens need tighter rhythm or content collides/clips */
@media (max-height: 700px) {
    body {
        justify-content: flex-start;
        gap: clamp(1.5rem, 4vh, 2.5rem);
        padding-top: clamp(1.5rem, 4vh, 2rem);
        padding-bottom: clamp(1.5rem, 4vh, 2rem);
    }

    main {
        margin: 0 auto;
    }

    p {
        margin-bottom: 1.75rem;
    }

    .social-links {
        margin-bottom: 1.5rem;
    }
}

@media (max-height: 500px) {
    header {
        display: none;
    }

    .badge {
        margin-bottom: 1rem;
    }

    h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 1rem;
    }

    p {
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }
}

/* Larger screens: keep the composition from feeling lost/oversized */
@media (min-width: 1400px) {
    main {
        max-width: 720px;
    }
}

/* Print (just in case) */
@media print {
    body::before {
        display: none;
    }
}
