
/* IKKF Website Styles */

:root {
    /* Colors */
    --vermillion: #d94a3a;
    --ink-black: #1a1a1a;
    --gold: #c9a436;
    --cream: #f5f0e8;
    --white: #ffffff;
    --gray: #6b6b6b;
    --light-gray: #e5e5e5;
    
    /* Typography */
    --font-serif: 'Noto Serif JP', 'Shippori Mincho', 'Noto Serif SC', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Animation */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    color: var(--cream);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-xl);
    z-index: 1000;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-tool {
    color: var(--cream);
}

.brand-ed {
    color: var(--vermillion);
}

.nav-links a {
    color: rgba(245, 240, 232, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cream);
}

.nav-active {
    color: var(--cream) !important;
    font-weight: 600;
}

.nav-manual {
    color: var(--vermillion) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--vermillion);
    color: var(--white);
}

.btn-primary:hover {
    background: #c43a2a;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245, 240, 232, 0.3);
}

.btn-secondary:hover {
    border-color: var(--cream);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-pricing {
    width: 100%;
    margin-top: var(--space-lg);
    padding: 0.875rem;
    background: var(--ink-black);
    color: var(--white);
}

.btn-pricing:hover {
    background: var(--vermillion);
}

.btn-featured {
    background: var(--vermillion);
}

.btn-featured:hover {
    background: #c43a2a;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-xl);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 720px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    margin-bottom: var(--space-lg);
    font-family: var(--font-serif);
}

.hero-title {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-md);
    letter-spacing: 0.1em;
    font-family: var(--font-serif);
}

.title-letter {
    display: inline-block;
    animation: letterZoom 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: scale(5);
    filter: blur(10px);
}

@keyframes letterZoom {
    0% {
        opacity: 0;
        transform: scale(5);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.title-tool {
    color: var(--cream);
}

.title-ed {
    color: var(--vermillion);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.hero-acronym {
    font-size: 1.5rem;
    color: rgba(245, 240, 232, 0.6);
    font-family: var(--font-serif);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.05em;
}

.acronym-full {
    color: var(--vermillion);
    font-weight: 700;
    font-size: 1.75rem;
}

.acronym-small {
    color: rgba(245, 240, 232, 0.8);
    font-weight: 400;
}

.acronym-know {
    color: rgba(245, 240, 232, 0.8);
    font-weight: 400;
}

.know-k {
    color: var(--vermillion);
    font-weight: 700;
    font-size: 1.75rem;
}

.hero-matrix-ref {
    font-size: 0.875rem;
    color: rgba(245, 240, 232, 0.4);
    font-style: italic;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease 1.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-tagline {
    font-size: 1.125rem;
    color: rgba(245, 240, 232, 0.7);
    max-width: 540px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-version {
    font-size: 0.75rem;
    color: rgba(245, 240, 232, 0.5);
    font-family: var(--font-mono);
    animation: fadeInUp 1s ease 1.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-seal {
    position: absolute;
    right: 10%;
    bottom: 20%;
    font-size: 20rem;
    color: rgba(217, 74, 58, 0.05);
    font-weight: 800;
    user-select: none;
    pointer-events: none;
}

/* Terminal Section */
.terminal-section {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--ink-black);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header.light {
    color: var(--white);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

.section-header p {
    color: var(--gray);
    font-size: 1.125rem;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.6);
}

.section-header.light h2 {
    color: var(--cream);
}

.terminal {
    max-width: 800px;
    margin: 0 auto;
    background: #0d0d0d;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.terminal-header {
    background: #1a1a1a;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid #333;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.terminal-dots span:nth-child(1) {
    background: #ff5f56;
}

.terminal-dots span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--gray);
    font-family: var(--font-mono);
    margin-left: auto;
}

.terminal-body {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    min-height: 400px;
}

.terminal-line {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.prompt {
    color: var(--vermillion);
    flex-shrink: 0;
}

.command {
    color: #fff;
}

.command.typing {
    animation: typing 0.05s steps(1, end);
}

@keyframes typing {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cursor {
    animation: blink 1s infinite;
    color: var(--vermillion);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal output items */
.terminal-output-item {
    margin: var(--space-md) 0;
    padding-left: var(--space-md);
}

.phase-line {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.phase-num {
    width: 20px;
    height: 20px;
    background: var(--vermillion);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    flex-shrink: 0;
}

.phase-name {
    color: #fff;
    font-weight: 600;
}

.phase-status {
    color: #27c93f;
    margin-left: auto;
}

.phase-desc {
    color: var(--gray);
    margin-bottom: var(--space-md);
    padding-left: 28px;
}

/* Terminal summary */
.terminal-summary {
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.3);
    border-radius: 8px;
}

.summary-line {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.summary-icon {
    font-size: 1.25rem;
}

.summary-text {
    color: #27c93f;
    font-weight: 500;
}

/* Terminal controls */
.terminal-controls {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Features Section */
.features {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-xl);
    border-radius: 12px;
    border: 2px solid;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card.white {
    background: rgba(245, 245, 245, 0.95);
    border-color: #ddd;
    color: var(--ink-black);
}

.feature-card.yellow {
    background: var(--belt-yellow);
    border-color: #e5c73a;
}

.feature-card.orange {
    background: var(--belt-orange);
    border-color: #d98a2a;
    color: var(--white);
}

.feature-card.green {
    background: var(--belt-green);
    border-color: #4a8c4a;
    color: var(--white);
}

.feature-card.blue {
    background: var(--belt-blue);
    border-color: #2a5aa5;
    color: var(--white);
}

.feature-card.brown {
    background: var(--belt-brown);
    border-color: #7b4a2c;
    color: var(--white);
}

.feature-card.black {
    background: rgba(26, 26, 26, 0.95);
    border-color: #444;
    color: var(--cream);
}

.belt-stripe {
    width: 40px;
    height: 4px;
    background: var(--vermillion);
    margin-bottom: var(--space-md);
    border-radius: 2px;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    font-family: var(--font-serif);
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
}

.feature-card p strong {
    font-weight: 600;
}

/* Phases Section */
.phases {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--ink-black);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-number {
    width: 48px;
    height: 48px;
    background: var(--vermillion);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.timeline-content h3 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: var(--space-3xl) var(--space-xl);
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--space-xl);
    border: 1px solid var(--light-gray);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--vermillion);
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--vermillion);
    color: var(--white);
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--light-gray);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    font-family: var(--font-serif);
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: var(--space-xs);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink-black);
    margin-top: 0.25rem;
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ink-black);
}

.price-custom {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink-black);
}

.pricing-note {
    color: var(--gray);
    font-size: 0.875rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: var(--space-xs) 0;
    color: var(--gray);
    font-size: 0.9375rem;
}

.pricing-features li:first-child {
    color: var(--cream);
    font-weight: 500;
}

.pricing-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #333;
}

.pricing-card.featured {
    border-color: var(--vermillion);
}

/* Footer */
.footer {
    background: var(--ink-black);
    padding: var(--space-2xl) var(--space-xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand p {
    color: var(--gold);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
