/* landing.css — turningcircle.pro landing page: hover, focus and scroll motion (the layout is inline in index.html) */
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: #07060F; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid #9B8CFF; outline-offset: 3px;
}
#beta-form input:focus, #beta-form select:focus { border-color: #9B8CFF !important; outline: none; }
#beta-form [aria-invalid="true"] { border-color: #E5484D !important; }

/* Primary buttons: outer glow and a 2 px lift on hover */
a[style*="linear-gradient"], #beta-send { transition: transform 150ms ease, box-shadow 150ms ease; }
a[style*="linear-gradient"]:hover, #beta-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 0 24px rgba(123,61,255,0.55) !important;
}
#beta-send:disabled { opacity: 0.6; cursor: progress; }

/* "Request beta access" pills (not the nav's): dark fill and a white line all the way round
   (so it holds over the hero trace); a highlight travels slowly round it, where the line
   thickens and brightens, with a glow outside it */
@property --tc-a { syntax: '<angle>'; inherits: false; initial-value: 300deg; }
@keyframes tc-trace { to { --tc-a: 660deg; } }
.tc-shine {
    position: relative;
    border: 1.5px solid rgba(255,255,255,0.72);
    background: linear-gradient(180deg, #1A1733, #0D0B1C);
    color: #FFFFFF;
    transition: transform 150ms ease, border-color 150ms ease;
}
.tc-shine::before, .tc-shine::after {
    content: ''; position: absolute; border-radius: inherit; pointer-events: none;
    background: conic-gradient(from var(--tc-a), transparent 0deg, transparent 250deg, #FFFFFF 315deg, transparent 355deg);
    animation: tc-trace 7s linear infinite;
}
/* the thicker, brighter run of line: a 3.5 px ring over the 1.5 px border */
.tc-shine::before {
    inset: -2px; padding: 3.5px;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* its glow, outside the pill */
.tc-shine::after {
    inset: -3px; z-index: -1;
    filter: blur(9px); opacity: 0.7;
    transition: opacity 150ms ease;
}
.tc-shine:hover { transform: translateY(-1px); border-color: #FFFFFF; }
.tc-shine:hover::after { opacity: 0.95; }

/* Sections fade up 16 px once, when about 20% is in view (landing.js adds the classes) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    a[style*="linear-gradient"]:hover, #beta-send:hover:not(:disabled), .tc-shine:hover { transform: none; }
    .tc-shine::before, .tc-shine::after { animation: none; }
}
