"""Brand constants and identity for D.intelligence."""

# ── Brand Core ──────────────────────────────────────────────────
BRAND_NAME = "D.intelligence"
BRAND_CONCEPT = "SMART Marketing Clinic"
TAGLINE = "Analysis, Treatment & Growth"
MOTTO = "Think Forward"
MISSION = "데이터 기반 의사결정으로 기업의 지속가능한 성장을 실현하는 전문 파트너"
WEBSITE = "https://dintelligence.co.kr"

CORE_VALUES = {
    "Scientific": "과학적 방법론, 검증, 데이터 기반 판단",
    "Practical": "실행 가능하고 현실적인 해법",
    "Outcome": "측정 가능한 성과 중심",
    "Insights": "복잡한 문제를 분명한 인사이트로 전환",
}

# ── Brand Colors — 2025 Design System ───────────────────────────
# Source: D.intelligence_Design_System_2025.pdf

# Primary palette (RGB)
COLOR_D_BEIGE = (229, 225, 210)    # #E5E1D2 — Cover/Section BG (NEW primary BG)
COLOR_D_OLIVE = (206, 220, 0)      # #CEDC00 — Accent only (demoted from 2022 BG)
COLOR_D_BROWN = (35, 24, 21)       # #231815 — Primary text / Dark BG
COLOR_D_BLACK = (0, 0, 0)          # #000000 — Dark BG / Text

# Secondary palette (RGB)
COLOR_D_GRAY = (114, 113, 113)     # #727171 — Secondary text
COLOR_D_LIGHT_GRAY = (242, 242, 242)  # #F2F2F2 — Card / BG
COLOR_D_BLUE = (0, 117, 192)      # #0075C0 — Digital accent (diagrams, data viz)
COLOR_D_BORDER = (191, 191, 191)   # #BFBFBF — Border 0.5pt
COLOR_D_WARM_GRAY = (200, 196, 184)  # #C8C4B8 — Header bar, vertical line accent

COLOR_WHITE = (255, 255, 255)

# Hex versions
HEX_D_BEIGE = "#E5E1D2"
HEX_D_OLIVE = "#CEDC00"
HEX_D_BROWN = "#231815"
HEX_D_BLACK = "#000000"
HEX_D_GRAY = "#727171"
HEX_D_LIGHT_GRAY = "#F2F2F2"
HEX_D_BLUE = "#0075C0"
HEX_D_BORDER = "#BFBFBF"
HEX_D_WARM_GRAY = "#C8C4B8"

# Semantic aliases (for backward compatibility)
COLOR_PRIMARY = COLOR_D_BROWN      # Primary text color
COLOR_ACCENT = COLOR_D_OLIVE       # Accent (sparingly)
COLOR_TEXT = COLOR_D_BROWN         # Body text
COLOR_BG = COLOR_D_BEIGE           # Cover/section background
COLOR_SECONDARY = COLOR_D_GRAY     # Secondary text
HEX_PRIMARY = HEX_D_BROWN
HEX_ACCENT = HEX_D_OLIVE
HEX_TEXT = HEX_D_BROWN
HEX_BG = HEX_D_BEIGE
HEX_SECONDARY = HEX_D_GRAY

# ── Typography — 2025 Design System ─────────────────────────────
FONT_KR = "Apple SD Gothic Neo"
FONT_EN = "DM Sans"
FONT_FALLBACK_KR = "Apple SD Gothic Neo"
FONT_FALLBACK_EN = "DM Sans"

# Type Scale
TYPE_SCALE = {
    "display_title": {"size_pt": (54, 72), "weight": "Bold", "color": "D_BROWN"},
    "slide_title": {"size_pt": (28, 36), "weight": "Bold", "color": "D_BROWN"},
    "subtitle": {"size_pt": (14, 16), "weight": "Regular", "color": "D_GRAY"},
    "body": {"size_pt": (11, 14), "weight": "Regular", "color": "D_BROWN"},
    "footnote": {"size_pt": (8, 10), "weight": "Regular", "color": "D_GRAY"},
    "header_bar": {"size_pt": (10, 10), "weight": "Regular", "color": "WARM_GRAY"},
}

# ── Layout Motifs — 2025 Design System ──────────────────────────
LAYOUT = {
    "vertical_line_accent": {"color": "WARM_GRAY", "note": "Thin vertical line on left of section dividers"},
    "three_dot_motif": {"symbol": "• • •", "position": "upper-right corner of cover/featured slides"},
    "footer_tagline": "Analysis, Treatment & Growth",
    "min_margin": "0.5 inches",
    "border_weight": "0.5pt",
}

# ── Service Architecture ────────────────────────────────────────
SERVICE_PHASES = {
    "Analysis": {"kr": "진단", "modules": ["A1", "A2", "A3", "A4", "A5", "A6"]},
    "Treatment": {"kr": "처방", "modules": ["T1", "T2", "T3", "T4", "T5", "T6", "T7"]},
    "Growth": {"kr": "성장", "modules": ["G1", "G2", "G3", "G4"]},
}

SERVICE_MODULES = {
    "A1": "비즈니스·브랜드 진단",
    "A2": "고객·소비자 분석",
    "A3": "데이터 분석 — 웹·앱",
    "A4": "디지털 마케팅 진단",
    "A5": "퍼포먼스 마케팅 진단",
    "A6": "운영·관리 진단",
    "T1": "브랜드 스토리텔링 & 가이드",
    "T2": "고객 접점 경험 최적화",
    "T3": "디지털 자산 통합관리",
    "T4": "콘텐츠 마케팅",
    "T5": "광고·전환 최적화",
    "T6": "Brand Visibility Treatment",
    "T7": "운영 시스템·자동화",
    "G1": "퍼포먼스 마케팅",
    "G2": "콘텐츠 마케팅 대행",
    "G3": "모니터링·이슈관리",
    "G4": "연간 계약·운영",
}

SERVICE_CATEGORIES = {
    "DI": "Data Intelligence",
    "MD": "Measurement Design",
    "MPO": "Marketing Performance Optimization",
    "BVT": "Brand Visibility Treatment",
}

# ── Client Codes ────────────────────────────────────────────────
CLIENT_CODES = {
    "JHR": "조선호텔앤리조트",
    "JAM": "제이미성형외과",
    "SLA": "신라호텔",
    "SHR": "SHR",
    "OurDigital": "OurDigital",
}

# ── Prohibited Expressions ──────────────────────────────────────
PROHIBITED_WORDS = [
    "획기적", "혁신적", "놀라운", "독보적", "최고의",
    "반드시", "확실히", "무조건", "100%", "보장",
    "대행사", "에이전시", "바이럴",
]
