/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 40px;
   color: #663399;
}

.logo .logo-icon {
     width: 45px; /* 이미지의 너비 */
    height: auto;/* 이미지의 높이 */
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.decoration-1 {
    width: 400px;
    height: 400px;
    background: white;
    top: -200px;
    right: -100px;
}

.decoration-2 {
    width: 300px;
    height: 300px;
    background: white;
    bottom: -150px;
    left: -100px;
}

/* Smaller hero for subpages like Expense Tracker */
.hero-small {
  padding: 60px 0;
  text-align: center;
}

.hero-small .hero-title {
  font-size: 42px;
  font-weight: 700;
}

.hero-small .hero-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 14px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Sections */
.tools-section, .features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gradient-6 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }

.tool-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-description {
    color: var(--text-secondary);
}



.ad-placeholder {
    text-align: center;
    padding: 20px;
}

.ad-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ad-space {
    background: white;
    border: 2px dashed var(--border);
    padding: 40px;
    border-radius: 8px;
    color: var(--text-secondary);
    max-width: 728px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* === Footer === */
.footer {
  background: var(--text);
  color: white;
  padding: 60px 0 20px;
}

/* 1. grid를 flex로 변경하여 전체 레이아웃을 좌우로 나눔 */
.footer-grid {
  display: flex;
  justify-content: space-between; /* 양쪽 끝으로 요소를 배치 */
  align-items: flex-start; /* 상단 정렬 */
  gap: 40px; /* 좌우 섹션 사이의 최소 간격 */
  margin-bottom: 40px;
  flex-wrap: wrap; /* 화면이 작아지면 아래로 떨어지도록 설정 */
}

/* 2. 왼쪽 영역(소개글, 소셜 아이콘)의 너비 설정 */
.footer-grid > div:first-child {
    flex: 1; /* 너비 비율 */
    min-width: 300px; /* 최소 너비 보장 */
}

/* 3. 오른쪽 영역(Tools, Company, Legal 링크)을 감싸는 컨테이너 설정 */
.footer-links-container {
    display: flex;
    flex: 2; /* 너비 비율을 더 크게 설정 */
    justify-content: space-around; /* 링크 목록들을 균등하게 배치 */
    gap: 30px; /* 각 링크 목록 사이의 간격 */
    flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
footer .logo-icon {
  width: 30px;  /* 아이콘 크기 (원하면 40px로 늘려도 돼요) */
  height: auto;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 25px;     /* 글씨 크기 (현재보다 약간 큼) */
  font-weight: 600;    /* 두께 살짝 강조 */
  color: #ffffff;      /* 배경색이 어두우면 흰색 유지 */
  text-transform: capitalize; /* Fixlo 처럼 첫 글자만 대문자로 */
}

.footer-description {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px; /* 소셜 아이콘과의 간격을 위해 조정 */
}

.footer-title {
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}
/* --- 하단 영역 --- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* 소셜 아이콘 */
.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 20px; /* 사이트 설명과의 간격 */
  justify-content: flex-start; /* 좌측 정렬 */
}

.footer-social .social-link {
 width: 30px; height: 30px;
  color: #fff;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social .social-link:hover {
  color: #fff;   /* hover 시 색상 유지 */
  opacity: 0.8;  /* 약간의 투명도 효과 */
}

/* 저작권 문구 */
.footer-tagline {
  font-size: 12px;
  color: #999;
  margin: 0;
  text-align: center;
}

/* 반응형 */
@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Page Content */
.page-content {
    padding: 40px 0;
    min-height: calc(100vh - 400px);
}

.breadcrumb {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Tool Layout */
.tool-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
}

.tool-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
}

.card-content {
    padding: 24px;
}

.card-accent {
    border-left: 4px solid var(--primary);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.label-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Tips & Features Lists */
.tips-list, .features-list {
    list-style: none;
    padding: 0;
}

.tips-list li, .features-list li {
    padding: 8px 0 8px 28px;
    position: relative;
}

.tips-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Steps & Use Cases */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.step-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 16px;
}

.step-card h3 {
    margin-bottom: 8px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.use-case {
    background: white;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
}

.use-case-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.use-case h3 {
    margin-bottom: 8px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 32px auto 0;
}

.faq-item {
    background: white;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.faq-item h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Info Sections */
.info-section {
    margin-top: 60px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

/* Specific Tool Styles */
.mic-status {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 24px;
}

.mic-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.status-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-hint {
    color: var(--text-secondary);
}

.transcript-box {
    min-height: 200px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    background: var(--bg-secondary);
}

.transcript-placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

.summary-output {
    min-height: 150px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    background: var(--bg-secondary);
    white-space: pre-wrap;
}

.summary-placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

.timer-display {
    text-align: center;
    padding: 48px;
}

.session-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.timer-value {
    font-size: 72px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 24px;
}

.timer-progress {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 0.3s;
}

.settings-panel {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
}

.progress-stat {
    text-align: center;
}

.progress-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.progress-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Memo Pad */
.memo-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.memo-sidebar .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.search-box {
    margin-bottom: 16px;
}

.search-box input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.memos-list {
    max-height: 500px;
    overflow-y: auto;
}

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 32px 16px;
    font-style: italic;
}

.memo-title-input {
    width: 100%;
    border: none;
    font-size: 24px;
    font-weight: 600;
    font-family: inherit;
}

.memo-title-input:focus {
    outline: none;
}

.memo-actions {
    display: flex;
    gap: 8px;
}

.auto-save-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

.welcome-content {
    text-align: center;
    padding: 80px 24px;
}

.welcome-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.expenses-list {
    min-height: 300px;
}

/* About & Legal Pages */
.hero-about {
    text-align: center;
    margin-bottom: 48px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.value-item {
    text-align: center;
}

.value-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.tools-list-about {
    display: grid;
    gap: 16px;
}

.tool-about-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 16px;
    margin-top: 60px;
}

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

.update-date {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    margin-bottom: 16px;
}

.legal-section p, .legal-section li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-section ul {
    margin-left: 24px;
    margin-top: 12px;
}

.legal-section a {
    color: var(--primary);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
}

.faq-compact {
    margin-bottom: 20px;
}

.faq-compact h4 {
    margin-bottom: 8px;
}

.faq-compact p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .tool-layout, .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .tool-sidebar, .contact-sidebar {
        order: -1;
    }
    
    .memo-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-social .social-link {
  font-size: 18px;
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-social .social-link:hover {
  color: #007bff;
}
/* 하단 문구 중앙 정렬 */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-tagline {
  font-size: 12px; /* 이전보다 약간 작게 */
  color: #999;
  margin: 0;
}


    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timer-value {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}
