body {
font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: #0a0a0a;
color: #fff;
min-height: 100vh;
display: flex;
flex-direction: column;
overflow-x: hidden;
overflow-y: auto;
position: relative;
}

body.staging-env {
    filter: hue-rotate(120deg);
}

body.staging-env .lang-switcher::after {
    content: '🚧 SUUPU';
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 255, 0, 0.9);
    color: #000;
    padding: 8px 16px;
    font-weight: 900;
    z-index: 10000;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    font-family: 'Noto Sans JP', sans-serif;
}


/* Background gradients */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: 
    radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    #0a0a0a;
z-index: -2;
}

/* Wave pattern overlay */
body::after {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: 
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(255, 107, 53, 0.02) 100px,
        rgba(255, 107, 53, 0.02) 101px
    );
z-index: -1;
opacity: 0.3;
}

/* Language Switcher (top-right) */
.lang-switcher {
position: fixed;
top: 16px;
right: 16px;
z-index: 100;
display: flex;
gap: 8px;
align-items: center;
}

.flag-btn {
background: rgba(255, 255, 255, 0.05);
border: 2px solid rgba(255, 255, 255, 0.1);
padding: 4px;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}

.flag-btn:hover {
background: rgba(255, 107, 53, 0.1);
border-color: #FF6B35;
transform: translateY(-2px);
}

.flag-btn.active {
border-color: #FF6B35;
background: rgba(255, 107, 53, 0.15);
box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.3);
}

.flag {
width: 28px;
height: 20px;
display: block;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}

/* Cherry blossom petals */
.petal {
position: fixed;
width: 8px;
height: 8px;
background: radial-gradient(ellipse at center, #ff6b80 0%, #ff4d6d 100%);
border-radius: 50% 0 50% 0;
pointer-events: none;
z-index: -1;
opacity: 0;
animation: fallAndSpin linear infinite;
}


@keyframes fallAndSpin {
0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
}
10% {
    opacity: 0.6;
}
90% {
    opacity: 0.4;
}
100% {
    transform: translateY(98vh) rotate(360deg);
    opacity: 0;
}
}

/* Main container */
.container {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.5rem;
position: relative;
z-index: 1;
}

/* Red sun accent */
.sun {
position: fixed;
top: -100px;
right: -100px;
width: 300px;
height: 300px;
background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
border-radius: 50%;
z-index: 0;
animation: sunPulse 8s ease-in-out infinite;
}

@keyframes sunPulse {
0%, 100% { transform: scale(1); opacity: 0.15; }
50% { transform: scale(1.1); opacity: 0.25; }
}

/* Logo section */
.logo-section {
text-align: center;
margin-bottom: 2.25rem;
animation: fadeInDown 0.8s ease;
position: relative;
}

@keyframes fadeInDown {
from {
    opacity: 0;
    transform: translateY(-30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

/* Hanko stamp */
.hanko-stamp {
width: 180px;
height: 180px;
margin: 0 auto 2rem;
position: relative;
animation: stampAppear 1s ease;
transition: transform 0.3s ease;
}

.hanko-stamp:hover {
transform: rotate(5deg) scale(1.05);
}

@keyframes stampAppear {
0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
}
60% {
    transform: scale(1.1) rotate(10deg);
}
100% {
    transform: scale(1) rotate(0);
    opacity: 1;
}
}

.hanko-stamp img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
}

.nodec a {
text-decoration: none !important;
}

.logo {
font-size: 4rem;
font-weight: 900;
letter-spacing: 3px;
margin-bottom: 0.5rem;
color: #fff;
text-shadow: 
    6px 6px 0 #000,
    7px 7px 0 #FF6B35;
}

.tagline {
font-size: 1rem;
color: #94a3b8;
font-weight: 300;
letter-spacing: 3px;
text-transform: uppercase;
}

.tagline-jp {
font-size: 0.8rem;
color: #64748b;
margin-top: 0.5rem;
letter-spacing: 2px;
}

/* Buttons container */
.buttons {
display: flex;
flex-direction: column;
gap: .75rem;
margin-bottom: 2.25rem;
animation: fadeInUp 0.8s ease 0.2s backwards;
flex-wrap: wrap;
justify-content: center;
}

@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(30px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

/* Neobrutalist buttons - EQUAL SIZE */
.btn {
width: 380px;  /* Fixed width for consistency */
padding: 1rem 1rem;
font-size: 1.5rem;
font-weight: 800;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 2px;
border: 5px solid #000;
background: #FF6B35;
color: #000;
position: relative;
transition: all 0.15s ease;
cursor: pointer;
box-shadow: 8px 8px 0 #000;
font-family: 'Noto Sans JP', sans-serif;
text-align: center;
display:flex;
align-items: center;
justify-content: center;
text-shadow: 2px 2px #DC2626 !important;
}

/* Japanese corner accents */
.btn::before {
content: '';
position: absolute;
top: -2px;
right: -2px;
width: 12px;
height: 12px;
background: #dc2626;
border: 2px solid #000;
}

.btn::after {
content: '';
position: absolute;
bottom: -2px;
left: -2px;
width: 12px;
height: 12px;
background: #dc2626;
border: 2px solid #000;
}

.btn:hover {
transform: translate(4px, 4px);
box-shadow: 4px 4px 0 #000;
background: #ff8c5a;
}

.btn:active {
transform: translate(8px, 8px);
box-shadow: 0 0 0 #000;
}

.btn-secondary {
background: #1a1a1a;
color: #fff;
border-color: #FF6B35;
box-shadow: 8px 8px 0 #FF6B35;
}

.btn-secondary::before,
.btn-secondary::after {
background: #fff;
border-color: #FF6B35;
}

.btn-secondary:hover {
background: #2a2a2a;
box-shadow: 4px 4px 0 #FF6B35;
}

.btn-disabled {
background: #1a1a1a;
color: #4a4a4a;
cursor: not-allowed;
opacity: 0.5;
border-color: #333;
box-shadow: 8px 8px 0 #333;
}

.btn-disabled::before,
.btn-disabled::after {
background: #333;
border-color: #333;
}

.btn-disabled:hover {
transform: none;
box-shadow: 8px 8px 0 #333;
background: #1a1a1a;
}

/* Coming soon stamp */
.coming-soon-stamp {
position: absolute;
top: -15px;
right: -15px;
background: #dc2626;
color: #fff;
padding: 0.3rem 0.8rem;
border: 3px solid #000;
font-size: 0.7rem;
font-weight: 900;
letter-spacing: 1px;
transform: rotate(15deg);
box-shadow: 3px 3px 0 #000;
z-index: 2;
}

/* Footer */
footer {
padding: 2rem;
text-align: center;
border-top: 3px solid rgba(255, 107, 53, 0.2);
background: rgba(0, 0, 0, 0.5);
animation: fadeIn 0.8s ease 0.4s backwards;
position: relative;
}

footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, 
    transparent 0%, 
    #FF6B35 20%, 
    #dc2626 40%, 
    #FF6B35 60%, 
    transparent 100%);
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.footer-content {
max-width: 800px;
margin: 0 auto;
}

.tech-stack {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}

.tech-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
background: rgba(255, 255, 255, 0.03);
border: 2px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
position: relative;
}

.tech-item::before {
content: '';
position: absolute;
top: -1px;
left: -1px;
width: 6px;
height: 6px;
background: #FF6B35;
border: 1px solid #000;
}

.tech-item:hover {
background: rgba(255, 107, 53, 0.1);
border-color: #FF6B35;
transform: translateY(-2px);
}

.tech-icon {
width: 24px;
height: 24px;
}

.tech-name {
font-size: 0.9rem;
color: #94a3b8;
font-weight: 500;
}

/* Remove link styling from tech names */
.tech-item .tech-name a {
color: inherit;  /* Inherit the gray color */
text-decoration: none;
border-bottom: none !important;
}

.tech-item:hover .tech-name,
.tech-item:hover .tech-name a {
color: #e5e7eb;  /* Lighter on hover */
}

.footer-links {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}

.footer-links a {
color: #FF6B35;
text-decoration: none;
font-weight: 600;
border-bottom: 2px solid transparent;
transition: all 0.2s;
font-size: 0.9rem;
letter-spacing: 0.5px;
}

.footer-links a:hover {
color: #ff8c5a;
border-bottom-color: #FF6B35;
}

.credits {
color: #64748b;
font-size: 0.9rem;
margin-top: 1rem;
}

.credits a {
color: #FF6B35;
text-decoration: none;
font-weight: 600;
transition: color 0.2s;
border-bottom: 2px solid transparent;
}

.credits a:hover {
color: #ff8c5a;
border-bottom-color: #FF6B35;
}

.heart {
color: #dc2626;
animation: heartbeat 1.5s ease infinite;
display: inline-block;
}

@keyframes heartbeat {
0%, 100% { transform: scale(1); }
10%, 30% { transform: scale(1.2); }
20%, 40% { transform: scale(1); }
}

/* Modal styling */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(4px);
z-index: 1000;
animation: modalFadeIn 0.3s ease;
}

.modal.active {
display: flex;
align-items: center;
justify-content: center;
}

@keyframes modalFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.modal-content {
background: #1a1a1a;
border: 5px solid #FF6B35;
box-shadow: 12px 12px 0 #000;
max-width: 75%;
width: 50%;
max-height: 80vh;
overflow: hidden auto;
position: relative;
animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
from {
    transform: translateY(-50px);
    opacity: 0;
}
to {
    transform: translateY(0);
    opacity: 1;
}
}

/* Japanese corner accent on modal */
.modal-content::before {
content: '';
position: absolute;
top: -2px;
right: -2px;
width: 20px;
height: 20px;
background: #dc2626;
border: 3px solid #000;
z-index: 2;
}

.modal-header {
padding: 1.5rem;
border-bottom: 3px solid rgba(255, 107, 53, 0.3);
display: flex;
justify-content: space-between;
align-items: center;
}

.modal-header h2 {
margin: 0;
color: #FF6B35;
font-size: 1.5rem;
text-shadow: 3px 3px 0 #000;
}

.modal-close {
background: #fff;
color: #dc2626;
border: 3px solid #dc2626;
width: 36px;
height: 36px;
font-size: 1.5rem;
font-weight: bold;
cursor: pointer;
transition: all 0.2s;
line-height: 1;
padding: 0;
}

.modal-close:hover {
background: #fee2e2;
transform: rotate(90deg);
}

.modal-body {
padding: 2rem;
color: #e5e7eb;
line-height: 1.6;
}

.modal-body h3 {
color: #FF6B35;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
}

.modal-body a {
color: #FF6B35;
text-decoration: none;
border-bottom: 1px solid #FF6B35;
}

.modal-body a:hover {
color: #ff8c5a;
border-bottom-color: #ff8c5a;
}

/* Responsive */
@media (max-width: 768px) {
.hanko-stamp {
    width: 140px;
    height: 140px;
}

.logo {
    font-size: 2.5rem;
}

.tagline {
    font-size: 0.8rem;
}

.buttons {
    flex-direction: column;
    gap: 1.5rem;
}

.btn {
    width: 100%;
    max-width: 300px;
}

.tech-stack {
    gap: 1rem;
}

.footer-links {
    flex-direction: column;
    gap: 0.5rem;
}

.sun {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -80px;
}

.lang-switcher {
    top: 12px;
    right: 12px;
}
}