/* ============================================
   CoachMate — Global Stylesheet
   Breakpoints: 1068px (tablet), 735px (mobile)
   Units: px (Apple style)
   ============================================ */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    background: #ffffff;
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* ============================================
   Navigation
   ============================================ */
nav {
    background: #f5f5f7;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #d2d2d7;
}
nav.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.nav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}
.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    color: #1d1d1f;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 20px 0;
    background: #f5f5f7;
    border-top: 1px solid #d2d2d7;
}
.footer-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    font-size: 13px;
    color: #86868b;
}
.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.footer-links a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #1d1d1f;
}

/* ============================================
   Index — Hero
   ============================================ */
.main-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 22px 40px;
    max-width: 980px;
    margin: 0 auto;
}
.hero {
    text-align: center;
    margin-bottom: 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero h1 {
    font-size: 72px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #1d1d1f;
    margin-bottom: 16px;
}
.hero h2 {
    font-size: 24px;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 24px;
}
.hero-btn {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 980px;
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    will-change: transform;
    max-width: 320px;
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
}
.hero-btn:hover {
    background: #1d1d1f;
    transform: scale(1.02);
}
.hero-slogan {
    font-size: 18px;
    color: #86868b;
    letter-spacing: 0.02em;
}

/* ============================================
   Index — Sections
   ============================================ */
.section {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 22px;
    text-decoration: none;
    scroll-margin-top: 44px;
}
.section-black {
    background: #000000;
}
.section-black h2 {
    color: #ffffff;
}
.section-black h3 {
    color: #86868b;
}
.section-black .section-btn {
    background: #ffffff;
    color: #000000;
}
.section-black .section-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}
.section-gray {
    background: #ffffff;
}
.section-gray h2 {
    color: #1d1d1f;
}
.section-gray h3 {
    color: #86868b;
}
.section-gray .section-btn {
    background: #000000;
    color: #ffffff;
}
.section-gray .section-btn:hover {
    background: #1d1d1f;
}
.section h2 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.section h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 24px;
}
.section-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
    will-change: transform;
    min-width: 140px;
    text-align: center;
}
.section-btn:hover {
    transform: scale(1.02);
}

/* ============================================
   Page Header (Smarter, Better, Coaching Log)
   ============================================ */
.page-header {
    text-align: center;
    padding: 60px 0;
    background: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    min-height: 200px;
}
.page-header .container {
    width: 100%;
}
.page-header h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: #ffffff;
}
.page-header p {
    font-size: 22px;
    color: #86868b;
}

/* ============================================
   Tool Cards (Smarter, Better)
   ============================================ */
.tools-section {
    padding: 60px 0;
}
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.tool-card {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}
.tool-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.tool-card h2 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
}
.tool-card p {
    font-size: 15px;
    color: #86868b;
    margin-bottom: 16px;
}
.tool-tag {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}
.tool-tag.coming-soon {
    background: #d2d2d7;
    color: #000000;
}

/* ============================================
   About — Hero
   ============================================ */
.about-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    min-height: 80dvh;
    background: #000000;
    color: #ffffff;
}
.about-hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.about-hero p {
    font-size: 22px;
    color: #86868b;
    margin-bottom: 32px;
}
.about-hero .slogan {
    font-size: 18px;
    color: #86868b;
    letter-spacing: 0.02em;
}

/* ============================================
   Coaching Log — Form
   ============================================ */
.form-section {
    padding: 60px 0;
}
.form-container {
    max-width: 600px;
    margin: 0 auto;
}
.card {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 24px;
}
.card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d2d2d7;
}
.form-group {
    margin-bottom: 20px;
}
.form-group:last-child {
    margin-bottom: 0;
}
label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    margin-bottom: 8px;
}
input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    color: #000000;
    transition: box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}
textarea {
    resize: vertical;
    min-height: 100px;
}
select {
    cursor: pointer;
}

/* Exercise List */
.exercise-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.exercise-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
}
.exercise-row input {
    padding: 12px;
    background: #f5f5f7;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    will-change: transform;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    width: 100%;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.01);
}
.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #d2d2d7;
}
.btn-secondary:hover {
    background: #f5f5f7;
}

/* Result */
#result {
    display: none;
    background: #f5f5f7;
    border-radius: 18px;
    padding: 32px;
    margin-top: 24px;
}
#result h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}
#result pre {
    background: #ffffff;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    overflow-x: auto;
    color: #86868b;
}

/* Ad Banner */
.ad-banner {
    background: #f5f5f7;
    border: 1px dashed #d2d2d7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
}
.ad-banner p {
    font-size: 14px;
    color: #86868b;
}

/* ============================================
   Tablet (max-width: 1068px)
   ============================================ */
@media (max-width: 1068px) {
    .main-container {
        padding: 56px 22px 32px;
    }
    .hero {
        min-height: 320px;
    }
    .hero h1 {
        font-size: 56px;
    }
    .hero h2 {
        font-size: 21px;
    }
    .hero-btn {
        padding: 14px 28px;
        font-size: 18px;
    }
    .hero-slogan {
        font-size: 16px;
    }
    .section {
        min-height: 400px;
        padding: 60px 22px;
    }
    .section h2 {
        font-size: 45px;
    }
    .section h3 {
        font-size: 19px;
    }
    .section-btn {
        padding: 12px 24px;
    }
    .page-header {
        padding: 50px 0;
        min-height: 175px;
    }
    .page-header h1 {
        font-size: 45px;
    }
    .page-header p {
        font-size: 19px;
    }
    .tools-section {
        padding: 50px 0;
    }
    .tool-card {
        border-radius: 16px;
        padding: 26px;
    }
    .about-hero h1 {
        font-size: 45px;
    }
    .about-hero p {
        font-size: 19px;
    }
    .about-hero .slogan {
        font-size: 16px;
    }
    .form-section {
        padding: 50px 0;
    }
    .card {
        border-radius: 16px;
        padding: 26px;
        margin-bottom: 20px;
    }
    .card h2 {
        margin-bottom: 20px;
    }
    input, select, textarea {
        padding: 12px 16px;
    }
    .exercise-item {
        padding: 14px;
    }
    .exercise-row {
        gap: 10px;
    }
    .btn {
        padding: 12px 20px;
    }
    #result {
        border-radius: 16px;
        padding: 26px;
    }
}

/* ============================================
   Mobile (max-width: 735px)
   ============================================ */
@media (max-width: 735px) {
    .nav-links {
        gap: 16px;
    }
    .main-container {
        padding: 48px 22px 24px;
    }
    .hero {
        min-height: 250px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero h2 {
        font-size: 18px;
    }
    .hero-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    .hero-slogan {
        font-size: 14px;
    }
    .section {
        min-height: 300px;
        padding: 40px 22px;
    }
    .section h2 {
        font-size: 35px;
    }
    .section h3 {
        font-size: 16px;
    }
    .section-btn {
        padding: 10px 20px;
    }
    .page-header {
        padding: 40px 0;
        min-height: 150px;
    }
    .page-header h1 {
        font-size: 35px;
    }
    .page-header p {
        font-size: 16px;
    }
    .tools-section {
        padding: 40px 0;
    }
    .tool-card {
        border-radius: 12px;
        padding: 20px;
    }
    .tool-card h2 {
        font-size: 18px;
    }
    .tool-card p {
        font-size: 14px;
    }
    .about-hero h1 {
        font-size: 35px;
    }
    .about-hero p {
        font-size: 16px;
    }
    .about-hero .slogan {
        font-size: 14px;
    }
    .form-section {
        padding: 40px 0;
    }
    .card {
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 16px;
    }
    .card h2 {
        margin-bottom: 16px;
    }
    input, select, textarea {
        padding: 10px 16px;
    }
    .exercise-item {
        padding: 12px;
    }
    .exercise-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .btn {
        padding: 10px 16px;
    }
    #result {
        border-radius: 12px;
        padding: 20px;
    }
}
